libdaemon.spec revision 18615
10139N/A#
10139N/A# spec file for package libdaemon
10139N/A#
12197N/A# Copyright (c) 2010 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner padraig
10139N/A#
10139N/A
10139N/A%define OSR 6984:0.12
10139N/A
10139N/AName: libdaemon
13420N/ALicense: LGPLv2.1
10139N/AGroup: System/Libraries
10139N/AVersion: 0.14
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
13420N/AVendor: 0pointer.de
10142N/ASummary: Lightweight C library for writing Unix daemons
10139N/ASource: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
10139N/APatch1: libdaemon-01-configure.diff
10139N/AURL: http://0pointer.de/lennart/projects/libdaemon/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/A
10139N/A%description
10139N/Alibdaemon is a lightweight C library which eases the writing of UNIX daemons.
10139N/AIt consists of the following parts:
10139N/A
10139N/A- A wrapper around fork() which does the correct daemonization procedure of
10139N/A a process
10139N/A- A wrappeer around syslog() for simpler and compatible log output to Syslog
10139N/A or STDERR
10139N/A- An API for writing PID files
10139N/A- An API for serializing UNIX signals into a pipe for usage with select()
10139N/A or poll()
10139N/A- an API for running subprocesses with STDOUT and STDERR redirected to syslog
10139N/A
10139N/A%package devel
10139N/ASummary: A lightweight C library for writing UNXI daemons.
10139N/AGroup: Development/Libraries
10139N/ARequires: %{name} = %{version}
10139N/A
10139N/A%description devel
10139N/Alibdaemon is a lightweight C library which eases the writing of UNIX daemons.
10139N/AIt consists of the following parts:
10142N/A
10139N/A- A wrapper around fork() which does the correct daemonization procedure of
10139N/A a process
10139N/A- A wrappeer around syslog() for simpler and compatible log output to Syslog
10139N/A or STDERR
10139N/A- An API for writing PID files
10139N/A- An API for serializing UNIX signals into a pipe for usage with select()
10139N/A or poll()
10139N/A- an API for running subprocesses with STDOUT and STDERR redirected to syslog
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A%patch1 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
13423N/A CPUS=`getconf _NPROCESSORS_ONLN`
13423N/Afi
12583N/A%else
12583N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/ACONFLAGS="--prefix=%{_prefix} --disable-lynx"
10139N/Aaclocal $ACLOCAL_FLAGS -I ./m4
10139N/Aautoconf
10139N/Aautomake -a -c -f
10139N/ACFLAGS="$RPM_OPT_FLAGS"
10139N/A./configure $CONFLAGS
10139N/A
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/A
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/Arm -rf $RPM_BUILD_ROOT%{_libdir}/libdaemon*a
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
10139N/A/sbin/ldconfig
10139N/A
10139N/A%postun
10139N/A/sbin/ldconfig
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/libdaemon*.so*
10139N/A
10139N/A%files devel
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/*.so
10139N/A%{_includedir}/libdaemon/*
10139N/A%{_libdir}/pkgconfig/*
10139N/A
10139N/A%changelog
10139N/A* Thu Jan 28 2010 - brian.cameron@sun.com
10139N/A- Bump to 0.14.
10139N/A* Tue Jul 28 2009 - christian.kelly@sun.com
10139N/A- Bump to 0.13.
10139N/A- Add patch to fix build issue.
10139N/A* Wed Aug 22 2006 - damien.carbery@sun.com
13420N/A- Bump to 0.12.
13423N/A* Mon May 29 2006 - padraig.obriain@sun.com
13420N/A- Initial spec file for libdaemon.
12583N/A