File: libdaemon.spec.in

package info (click to toggle)
libdaemon 0.10-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,640 kB
  • ctags: 94
  • sloc: sh: 8,486; ansic: 861; makefile: 130
file content (74 lines) | stat: -rw-r--r-- 1,771 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%define debug_package %{nil}

Summary: lightweight C library which eases the writing of UNIX daemons.
Name: libdaemon
Version: @PACKAGE_VERSION@
Release: 1
URL: http://www.stud.uni-hamburg.de/users/lennart/projects/libdaemon
Source: %{name}-%{version}.tar.gz
License: LGPL 
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
libdaemon is a lightweight C library which eases the writing of UNIX daemons.
It consists of the following parts:

    * A wrapper around fork() which does the correct daemonization
      procedure of a process
    * A wrapper around syslog() for simpler and compatible log output to
      Syslog or STDERR
    * An API for writing PID files
    * An API for serializing UNIX signals into a pipe for usage with
      select() or poll()

Routines like these are included in most of the daemon software available. It
is not that simple to get it done right and code duplication cannot be a goal.

%package devel
Summary: Static libraries and header files for libdaemon development.
Group: Development/Libraries
Requires: libdaemon = %{version}

%description devel

The libdaemon-devel package contains the header files and static libraries
necessary for developing programs using libdaemon.

%prep
%setup -q

%build
%configure
make

%install
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENSE README
%{_libdir}/*so.*
%{_libdir}/*.la

%files devel
%defattr(-,root,root)
%doc LICENSE README
%doc doc/*
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon Jul 21 2003 Lennart Poettering 0.3
- fixes
* Wed Jul 16 2003 Diego Santa Cruz <Diego.SantaCruz@epfl.ch> 0.2
- initial RPM