2006-12-14 16:54:19 +00:00
|
|
|
#
|
2009-01-12 17:05:59 +00:00
|
|
|
# spec file for package libdaemon (Version 0.13)
|
2006-12-14 16:54:19 +00:00
|
|
|
#
|
2010-04-24 14:57:18 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-14 16:54:19 +00:00
|
|
|
#
|
2008-11-28 14:25:53 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-14 16:54:19 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-11-28 14:25:53 +00:00
|
|
|
|
2006-12-14 16:54:19 +00:00
|
|
|
Name: libdaemon
|
2010-04-24 14:57:18 +00:00
|
|
|
BuildRequires: doxygen pkg-config
|
2007-09-13 22:44:45 +00:00
|
|
|
Url: http://0pointer.de/lennart/projects/libdaemon/
|
2009-01-12 17:05:59 +00:00
|
|
|
Version: 0.13
|
2010-04-24 14:57:18 +00:00
|
|
|
Release: 4
|
2006-12-14 16:54:19 +00:00
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
2010-04-24 14:57:18 +00:00
|
|
|
License: LGPLv2.1+
|
2006-12-14 16:54:19 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2008-11-28 14:25:53 +00:00
|
|
|
Patch2: libdaemon-0.12-bnc449728.diff
|
2009-01-29 22:33:25 +00:00
|
|
|
Patch3: libdaemon-0.13-bnc469342.diff
|
2006-12-14 16:54:19 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-06 00:06:18 +00:00
|
|
|
|
|
|
|
%package -n libdaemon0
|
2010-04-24 14:57:18 +00:00
|
|
|
License: LGPLv2.1+
|
2007-12-06 00:06:18 +00:00
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
#opensuse 10.3
|
|
|
|
Obsoletes: %{name} <= 0.12
|
|
|
|
|
|
|
|
%description -n libdaemon0
|
|
|
|
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>
|
2007-09-13 22:44:45 +00:00
|
|
|
|
2006-12-14 16:54:19 +00:00
|
|
|
%package devel
|
2010-04-24 14:57:18 +00:00
|
|
|
License: GPLv2+
|
2006-12-14 16:54:19 +00:00
|
|
|
Summary: libdaemon is a lightweight C library that eases the writing of UNIX daemons.
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-12-06 00:06:18 +00:00
|
|
|
Requires: libdaemon0 = %{version} glibc-devel
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%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
|
2007-12-06 00:06:18 +00:00
|
|
|
%setup -q
|
2008-11-28 14:25:53 +00:00
|
|
|
%patch2 -p1
|
2009-01-29 22:33:25 +00:00
|
|
|
%patch3 -p1
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-02-06 16:11:30 +00:00
|
|
|
%configure --libdir=/%{_lib} --disable-lynx --disable-static --with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2009-02-06 16:11:30 +00:00
|
|
|
rm -f %{buildroot}/%{_lib}/libdaemon.la
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
|
|
|
|
%{__mv} -v %{buildroot}/%{_lib}/pkgconfig/%{name}.pc %{buildroot}%{_libdir}/pkgconfig
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-12-06 00:06:18 +00:00
|
|
|
%post -n libdaemon0 -p /sbin/ldconfig
|
2006-12-14 16:54:19 +00:00
|
|
|
|
2007-12-06 00:06:18 +00:00
|
|
|
%postun -n libdaemon0 -p /sbin/ldconfig
|
2006-12-14 16:54:19 +00:00
|
|
|
|
2007-12-06 00:06:18 +00:00
|
|
|
%files -n libdaemon0
|
2006-12-14 16:54:19 +00:00
|
|
|
%defattr (-,root,root)
|
2009-02-06 16:11:30 +00:00
|
|
|
/%{_lib}/libdaemon.so.0*
|
2006-12-14 16:54:19 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/libdaemon.so
|
|
|
|
%{_libdir}/pkgconfig/libdaemon.pc
|
2007-12-06 00:06:18 +00:00
|
|
|
%dir %{_includedir}/libdaemon
|
|
|
|
%{_includedir}/libdaemon/*.h
|
2006-12-14 16:54:19 +00:00
|
|
|
|
2007-07-04 22:43:19 +00:00
|
|
|
%changelog
|