This commit is contained in:
parent
fe484fcc7e
commit
ea647dba15
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 28 04:05:04 CET 2007 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- libdaemon --> libdaemon0
|
||||||
|
- remove static libraries
|
||||||
|
- remove "la" files
|
||||||
|
- fix -devel package dependencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 13 22:37:06 CEST 2007 - mauro@suse.de
|
Thu Sep 13 22:37:06 CEST 2007 - mauro@suse.de
|
||||||
|
|
||||||
|
@ -14,20 +14,53 @@ Name: libdaemon
|
|||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
Url: http://0pointer.de/lennart/projects/libdaemon/
|
Url: http://0pointer.de/lennart/projects/libdaemon/
|
||||||
Version: 0.12
|
Version: 0.12
|
||||||
Release: 15
|
Release: 27
|
||||||
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
||||||
License: LGPL v2 or later
|
License: LGPL v2.1 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Patch0: libdaemon-0.10-testd-fix-FD_SET.diff
|
Patch0: libdaemon-0.10-testd-fix-FD_SET.diff
|
||||||
Patch1: bnc-309132.patch
|
Patch1: bnc-309132.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Prefix: /usr
|
|
||||||
|
%package -n libdaemon0
|
||||||
|
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>
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: libdaemon is a lightweight C library that eases the writing of UNIX daemons.
|
Summary: libdaemon is a lightweight C library that eases the writing of UNIX daemons.
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name} = %{version}
|
Requires: libdaemon0 = %{version} glibc-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libdaemon is a lightweight C library that eases the writing of UNIX
|
libdaemon is a lightweight C library that eases the writing of UNIX
|
||||||
@ -84,40 +117,43 @@ Authors:
|
|||||||
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
|
Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
./configure --prefix=/usr --libdir=%{_libdir} --disable-lynx
|
%configure --disable-lynx --disable-static --with-pic
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
rm -f %{buildroot}%{_libdir}/libdaemon.la
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post -n libdaemon0 -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%postun
|
%postun -n libdaemon0 -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%files
|
%files -n libdaemon0
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
%{_libdir}/libdaemon.so.*
|
%{_libdir}/libdaemon.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
%{_libdir}/libdaemon.so
|
%{_libdir}/libdaemon.so
|
||||||
%{_libdir}/libdaemon.la
|
|
||||||
%{_libdir}/libdaemon.a
|
|
||||||
%{_libdir}/pkgconfig/libdaemon.pc
|
%{_libdir}/pkgconfig/libdaemon.pc
|
||||||
/usr/include/libdaemon
|
%dir %{_includedir}/libdaemon
|
||||||
|
%{_includedir}/libdaemon/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 28 2007 - crrodriguez@suse.de
|
||||||
|
- libdaemon --> libdaemon0
|
||||||
|
- remove static libraries
|
||||||
|
- remove "la" files
|
||||||
|
- fix -devel package dependencies
|
||||||
* Thu Sep 13 2007 - mauro@suse.de
|
* Thu Sep 13 2007 - mauro@suse.de
|
||||||
- Applied a patch from upstream, to fix bnc #309132.
|
- Applied a patch from upstream, to fix bnc #309132.
|
||||||
* Sun Jul 22 2007 - coolo@suse.de
|
* Sun Jul 22 2007 - coolo@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user