2006-12-14 16:54:19 +00:00
|
|
|
#
|
2007-07-13 16:12:12 +00:00
|
|
|
# spec file for package libdaemon (Version 0.12)
|
2006-12-14 16:54:19 +00:00
|
|
|
#
|
2007-07-04 22:43:19 +00:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-14 16:54:19 +00:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: libdaemon
|
2007-07-23 00:19:10 +00:00
|
|
|
BuildRequires: doxygen
|
2007-09-13 22:44:45 +00:00
|
|
|
Url: http://0pointer.de/lennart/projects/libdaemon/
|
2007-07-13 16:12:12 +00:00
|
|
|
Version: 0.12
|
2007-09-13 22:44:45 +00:00
|
|
|
Release: 15
|
2006-12-14 16:54:19 +00:00
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
2007-07-04 22:43:19 +00:00
|
|
|
License: LGPL v2 or later
|
2006-12-14 16:54:19 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-07-04 22:43:19 +00:00
|
|
|
Patch0: libdaemon-0.10-testd-fix-FD_SET.diff
|
2007-09-13 22:44:45 +00:00
|
|
|
Patch1: bnc-309132.patch
|
2006-12-14 16:54:19 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Prefix: /usr
|
2007-09-13 22:44:45 +00:00
|
|
|
|
2006-12-14 16:54:19 +00:00
|
|
|
%package devel
|
|
|
|
Summary: libdaemon is a lightweight C library that eases the writing of UNIX daemons.
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
libdaemon is a lightweight C library that eases the writing of UNIX
|
|
|
|
daemons. It consists of the following parts:
|
|
|
|
|
|
|
|
* A wrapper around fork() that does the correct daemonization
|
|
|
|
procedure of a process
|
|
|
|
|
|
|
|
* A wrapper around syslog() for simpler log output compatible with
|
|
|
|
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
|
|
|
|
|
|
|
|
APIs like these are used in most daemon software available. It is not
|
|
|
|
that simple to get it done right and code duplication is not a goal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
APIs like these are used in most daemon software available. It is not
|
|
|
|
that simple to get it done right and code duplication is not a goal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2007-07-04 22:43:19 +00:00
|
|
|
%patch0 -p0
|
2007-09-13 22:44:45 +00:00
|
|
|
%patch1 -p1
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-07-23 00:19:10 +00:00
|
|
|
./configure --prefix=/usr --libdir=%{_libdir} --disable-lynx
|
2006-12-14 16:54:19 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/libdaemon.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/libdaemon.so
|
|
|
|
%{_libdir}/libdaemon.la
|
|
|
|
%{_libdir}/libdaemon.a
|
|
|
|
%{_libdir}/pkgconfig/libdaemon.pc
|
|
|
|
/usr/include/libdaemon
|
|
|
|
|
2007-07-04 22:43:19 +00:00
|
|
|
%changelog
|
2007-09-13 22:44:45 +00:00
|
|
|
* Thu Sep 13 2007 - mauro@suse.de
|
|
|
|
- Applied a patch from upstream, to fix bnc #309132.
|
2007-07-23 00:19:10 +00:00
|
|
|
* Sun Jul 22 2007 - coolo@suse.de
|
|
|
|
- disable lynx as it adds little featurewise (the README is packaged
|
|
|
|
in the tar), but make libdaemon build pretty late and we need it
|
2007-07-13 16:12:12 +00:00
|
|
|
* Wed Jul 11 2007 - seife@suse.de
|
|
|
|
- Update to version 0.12
|
|
|
|
+ make daemon_close_all() actually work properly
|
2007-07-04 22:43:19 +00:00
|
|
|
* Tue Jul 03 2007 - maw@suse.de
|
|
|
|
- Update to version 0.11
|
|
|
|
+ automatically detect whether lynx is installed
|
|
|
|
+ properly set errno on every error condition
|
|
|
|
+ add new function daemon_close_all() to close all open file
|
|
|
|
descriptors except a given set
|
|
|
|
+ add daemon_logv(), which is identical to daemon_log(), but
|
|
|
|
takes a va_list argument
|
|
|
|
+ add daemon_execv() in similar style
|
|
|
|
+ other fixes
|
|
|
|
- Remove upstreamed libdaemon-attributes.patch.
|
2006-12-14 16:54:19 +00:00
|
|
|
* Thu Dec 14 2006 - seife@suse.de
|
|
|
|
- fix testd build
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Sun Jan 22 2006 - cthiel@suse.de
|
|
|
|
- update to version 0.10
|
|
|
|
* Mon Oct 31 2005 - dmueller@suse.de
|
|
|
|
- don't build as root
|
|
|
|
* Fri Sep 23 2005 - sbrabec@suse.cz
|
|
|
|
- Fixed devel dependencies.
|
|
|
|
* Tue May 31 2005 - ro@suse.de
|
|
|
|
- fix libdir in pkgconfig file
|
|
|
|
* Sat Feb 05 2005 - meissner@suse.de
|
|
|
|
- added attributes
|
|
|
|
* Wed Jan 19 2005 - seife@suse.de
|
|
|
|
- update to version 0.7
|
|
|
|
* Thu Aug 12 2004 - seife@suse.de
|
|
|
|
- add libpng to neededforbuild (now required by doxygen)
|
|
|
|
* Mon Jun 21 2004 - seife@suse.de
|
|
|
|
- initial package submission
|