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
This commit is contained in:
Michal Vyskocil 2012-09-07 06:52:19 +00:00 committed by Git OBS Bridge
parent 865f893b2a
commit 9bc00d6463
2 changed files with 21 additions and 19 deletions

View File

@ -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

View File

@ -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