diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-07-31 14:18:41 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-07-31 14:18:41 +0000 |
commit | e774e8ef3467e81ed502e19b1719b4ab384d0083 (patch) | |
tree | 8eb9ee6196c383347cb2be00ec389d5c177b5d17 /libdaemon.spec.in |
Moved to trunk
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@38 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
Diffstat (limited to 'libdaemon.spec.in')
-rw-r--r-- | libdaemon.spec.in | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/libdaemon.spec.in b/libdaemon.spec.in new file mode 100644 index 0000000..1ef3a63 --- /dev/null +++ b/libdaemon.spec.in @@ -0,0 +1,73 @@ +%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: GPL +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 + +%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 |