diff --git a/README.md b/README.md index 51a3b17..fbdc24e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # libdaemon +libdaemon is a lightweight C library that 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() +An API for running subprocesses with STDOUT and STDERR redirected to syslog. + diff --git a/libdaemon.spec b/libdaemon.spec new file mode 100644 index 0000000..1745755 --- /dev/null +++ b/libdaemon.spec @@ -0,0 +1,78 @@ +Name: libdaemon +Version: 0.14 +Release: 1mamba +Summary: A lightweight C library that eases the writing of UNIX daemons +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://0pointer.de/lennart/projects/libdaemon/ +Source: http://0pointer.de/lennart/projects/libdaemon/libdaemon-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libdaemon is a lightweight C library that 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() +An API for running subprocesses with STDOUT and STDERR redirected to syslog. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +libdaemon is a lightweight C library that 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() +An API for running subprocesses with STDOUT and STDERR redirected to syslog. + +This package contains static libraries and header files need for development. + +%prep + +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libdaemon.so.* +%doc LICENSE README + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libdaemon +%{_includedir}/libdaemon/*.h +%{_libdir}/libdaemon.so +%{_libdir}/libdaemon.a +%{_libdir}/libdaemon.la +%{_libdir}/pkgconfig/*.pc +%{_docdir}/libdaemon/* + +%changelog +* Wed Oct 21 2009 Automatic Build System 0.14-1mamba +- automatic update by autodist + +* Wed Jan 07 2009 Silvan Calarco 0.13-1mamba +- automatic update by autodist + +* Thu Jun 12 2008 Silvan Calarco 0.12-1mamba +- package created by autospec