2006-12-14 17:54:19 +01:00
|
|
|
#
|
2012-02-15 16:15:48 +01:00
|
|
|
# spec file for package libdaemon
|
2006-12-14 17:54:19 +01:00
|
|
|
#
|
2015-03-13 12:22:41 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-14 17:54:19 +01:00
|
|
|
#
|
2008-11-28 15:25:53 +01: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 17:54:19 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-11-28 15:25:53 +01:00
|
|
|
|
2006-12-14 17:54:19 +01:00
|
|
|
Name: libdaemon
|
2010-10-08 01:20:38 +02:00
|
|
|
Version: 0.14
|
2012-02-15 16:15:48 +01:00
|
|
|
Release: 0
|
2006-12-14 17:54:19 +01:00
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
2011-12-06 18:23:01 +01:00
|
|
|
License: LGPL-2.1+
|
2006-12-14 17:54:19 +01:00
|
|
|
Group: System/Libraries
|
2015-03-13 12:22:41 +01:00
|
|
|
Url: http://0pointer.de/lennart/projects/libdaemon
|
|
|
|
Source: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
|
2010-10-08 01:20:38 +02:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: pkg-config
|
2006-12-14 17:54:19 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-06 01:06:18 +01:00
|
|
|
|
2010-10-08 01:20:38 +02:00
|
|
|
%description
|
|
|
|
libdaemon is a lightweight C library that eases the writing of UNIX
|
|
|
|
daemons.
|
|
|
|
|
2007-12-06 01:06:18 +01:00
|
|
|
%package -n libdaemon0
|
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
2012-02-15 16:15:48 +01:00
|
|
|
License: LGPL-2.1+
|
2007-12-06 01:06:18 +01:00
|
|
|
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
|
2010-10-08 01:20:38 +02:00
|
|
|
daemons.
|
2007-09-14 00:44:45 +02:00
|
|
|
|
2006-12-14 17:54:19 +01:00
|
|
|
%package devel
|
2010-10-08 01:20:38 +02:00
|
|
|
Summary: Lightweight C library That Eases the Writing of UNIX Daemons
|
2012-02-15 16:15:48 +01:00
|
|
|
License: GPL-2.0+
|
2006-12-14 17:54:19 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-10-08 01:20:38 +02:00
|
|
|
Requires: glibc-devel
|
2015-03-13 12:22:41 +01:00
|
|
|
Requires: libdaemon0 = %{version}
|
2006-12-14 17:54:19 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libdaemon is a lightweight C library that eases the writing of UNIX
|
2010-10-08 01:20:38 +02:00
|
|
|
daemons.
|
2006-12-14 17:54:19 +01:00
|
|
|
|
|
|
|
%prep
|
2007-12-06 01:06:18 +01:00
|
|
|
%setup -q
|
2006-12-14 17:54:19 +01:00
|
|
|
|
|
|
|
%build
|
2010-10-08 01:20:38 +02:00
|
|
|
%configure \
|
2015-03-13 12:22:41 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
2010-10-08 01:20:38 +02:00
|
|
|
--disable-lynx
|
2012-02-15 16:15:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-14 17:54:19 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-13 12:22:41 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2012-02-15 16:15:48 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/libdaemon.la
|
2010-10-08 01:20:38 +02:00
|
|
|
# We don't care about the HTML README
|
|
|
|
rm %{buildroot}%{_datadir}/doc/libdaemon/{README.html,style.css}
|
2006-12-14 17:54:19 +01:00
|
|
|
|
2007-12-06 01:06:18 +01:00
|
|
|
%post -n libdaemon0 -p /sbin/ldconfig
|
2006-12-14 17:54:19 +01:00
|
|
|
|
2007-12-06 01:06:18 +01:00
|
|
|
%postun -n libdaemon0 -p /sbin/ldconfig
|
2006-12-14 17:54:19 +01:00
|
|
|
|
2007-12-06 01:06:18 +01:00
|
|
|
%files -n libdaemon0
|
2006-12-14 17:54:19 +01:00
|
|
|
%defattr (-,root,root)
|
2010-10-08 01:20:38 +02:00
|
|
|
%doc LICENSE README
|
2012-02-15 16:15:48 +01:00
|
|
|
%{_libdir}/libdaemon.so.0*
|
2006-12-14 17:54:19 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%{_libdir}/libdaemon.so
|
|
|
|
%{_libdir}/pkgconfig/libdaemon.pc
|
2007-12-06 01:06:18 +01:00
|
|
|
%dir %{_includedir}/libdaemon
|
|
|
|
%{_includedir}/libdaemon/*.h
|
2006-12-14 17:54:19 +01:00
|
|
|
|
2007-07-05 00:43:19 +02:00
|
|
|
%changelog
|