# # spec file for package libdaemon (Version 0.14) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libdaemon Url: http://0pointer.de/lennart/projects/libdaemon/ Version: 0.14 Release: 1 Summary: Lightweight C library That Eases the Writing of UNIX Daemons License: LGPL-2.1+ Group: System/Libraries Source: %{name}-%{version}.tar.bz2 BuildRequires: doxygen BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libdaemon is a lightweight C library that eases the writing of UNIX daemons. %package -n libdaemon0 License: LGPL-2.1+ 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. %package devel License: GPL-2.0+ Summary: Lightweight C library That Eases the Writing of UNIX Daemons Group: Development/Libraries/C and C++ Requires: libdaemon0 = %{version} Requires: glibc-devel %description devel libdaemon is a lightweight C library that eases the writing of UNIX daemons. %prep %setup -q %build %configure \ --disable-static --with-pic \ --libdir=/%{_lib} \ --disable-lynx %{__make} %{?jobs:-j%jobs} %install %makeinstall rm -f %{buildroot}/%{_lib}/libdaemon.la # We don't care about the HTML README rm %{buildroot}%{_datadir}/doc/libdaemon/{README.html,style.css} # Move back some files to /usr %{__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 %clean rm -rf $RPM_BUILD_ROOT %post -n libdaemon0 -p /sbin/ldconfig %postun -n libdaemon0 -p /sbin/ldconfig %files -n libdaemon0 %defattr (-,root,root) %doc LICENSE README /%{_lib}/libdaemon.so.0* %files devel %defattr (-,root,root) %{_libdir}/libdaemon.so %{_libdir}/pkgconfig/libdaemon.pc %dir %{_includedir}/libdaemon %{_includedir}/libdaemon/*.h %changelog