diff --git a/libdaemon-0.14.tar.gz b/libdaemon-0.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0be2174feb442669d3c5d86605553c582c94108b Binary files /dev/null and b/libdaemon-0.14.tar.gz differ diff --git a/libdaemon.spec b/libdaemon.spec new file mode 100644 index 0000000000000000000000000000000000000000..de8a8ec7090d2b9be83ba24268ead736d0bc1806 --- /dev/null +++ b/libdaemon.spec @@ -0,0 +1,70 @@ +%define anolis_release 1 +Name: libdaemon +Version: 0.14 +Release: %{anolis_release}%{?dist} +Summary: Library for writing UNIX daemons +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://0pointer.de/lennart/projects/libdaemon/ +Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz + +# Requires lynx to build the docs +BuildRequires: lynx + +%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() +* An API for running subprocesses with STDOUT and STDERR redirected + to syslog. + +%package devel +Group: Development/Libraries +Summary: Libraries and header files for libdaemon development +Requires: libdaemon = %{version}-%{release} + +%description devel +The libdaemon-devel package contains the header files and libraries +necessary for developing programs using libdaemon. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \; + +rm $RPM_BUILD_ROOT/%{_datadir}/doc/libdaemon/README +rm $RPM_BUILD_ROOT/%{_datadir}/doc/libdaemon/README.html +rm $RPM_BUILD_ROOT/%{_datadir}/doc/libdaemon/style.css + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc LICENSE README +%{_libdir}/*so.* + +%files devel +%defattr(-,root,root,-) +%doc doc/README.html doc/style.css +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Thu Mar 10 2022 mgb01105731 - 0.14-1 +- Init from upstream version 0.14 +