From 9bc00d6463d7504425dabff856a08a996bba18384f9166cb7b954fe020e9de5a Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Fri, 7 Sep 2012 06:52:19 +0000 Subject: [PATCH] Accepting request 133119 from home:jengelh:branches:devel:libraries:c_c++ - Avoid unnecessary complex install line on Redhatish - Compact file list, add helpful URLs to specfile OBS-URL: https://build.opensuse.org/request/show/133119 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbsd?expand=0&rev=11 --- libbsd.changes | 6 ++++++ libbsd.spec | 34 +++++++++++++++------------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/libbsd.changes b/libbsd.changes index b1617f9..c8971e9 100644 --- a/libbsd.changes +++ b/libbsd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 6 19:14:04 UTC 2012 - jengelh@inai.de + +- Avoid unnecessary complex install line on Redhatish +- Compact file list, add helpful URLs to specfile + ------------------------------------------------------------------- Thu Sep 6 13:44:20 UTC 2012 - idonmez@suse.com diff --git a/libbsd.spec b/libbsd.spec index 7d79243..9fb5bfc 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -17,66 +17,62 @@ Name: libbsd +%define lname libbsd0 Version: 0.4.2 Release: 0 Summary: Provides useful functions commonly found on BSD systems License: BSD-3-Clause Group: System Environment/Libraries Url: http://libbsd.freedesktop.org/ -Source: %{name}-%{version}.tar.gz + +#Git-Clone: git://anongit.freedesktop.org/git/libbsd +#Git-Web: http://cgit.freedesktop.org/libbsd/ +Source: http://libbsd.freedesktop.org/releases/%name-%version.tar.gz BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. -%package -n libbsd0 +%package -n %lname Summary: Provides useful functions commonly found on BSD systems Group: Development/Libraries -%description -n libbsd0 - +%description -n %lname This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %package devel Summary: Development headers and files for libbsd Group: Development/Libraries Requires: glibc-devel -Requires: libbsd0 = %{version} +Requires: %lname = %{version} %description devel - This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. %prep - %setup -q + %build %configure --disable-static --with-pic make %{?_smp_mflags} %install -%makeinstall +make install DESTDIR=%{buildroot} +rm -f "%buildroot/%_libdir"/*.la -rm -rf %{buildroot}%{_libdir}/libbsd.la +%post -n %lname -p /sbin/ldconfig -%post -n libbsd0 -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%postun -n libbsd0 -p /sbin/ldconfig - -%files -n libbsd0 +%files -n %lname %defattr(-, root, root) %{_libdir}/libbsd.so.0* %files devel %defattr(-,root,root) %doc ChangeLog -%dir %{_includedir}/bsd -%dir %{_includedir}/bsd/netinet -%dir %{_includedir}/bsd/sys -%{_includedir}/bsd/*.h -%{_includedir}/bsd/netinet/*.h -%{_includedir}/bsd/sys/*.h +%{_includedir}/bsd %{_libdir}/libbsd.so %{_mandir}/man3/* %{_libdir}/pkgconfig/*.pc