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:
parent
865f893b2a
commit
9bc00d6463
@ -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
|
Thu Sep 6 13:44:20 UTC 2012 - idonmez@suse.com
|
||||||
|
|
||||||
|
34
libbsd.spec
34
libbsd.spec
@ -17,66 +17,62 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libbsd
|
Name: libbsd
|
||||||
|
%define lname libbsd0
|
||||||
Version: 0.4.2
|
Version: 0.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Provides useful functions commonly found on BSD systems
|
Summary: Provides useful functions commonly found on BSD systems
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Url: http://libbsd.freedesktop.org/
|
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
|
BuildRequires: pkgconfig
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%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.
|
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
|
Summary: Provides useful functions commonly found on BSD systems
|
||||||
Group: Development/Libraries
|
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.
|
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
|
%package devel
|
||||||
Summary: Development headers and files for libbsd
|
Summary: Development headers and files for libbsd
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Requires: libbsd0 = %{version}
|
Requires: %lname = %{version}
|
||||||
|
|
||||||
%description devel
|
%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.
|
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
|
%prep
|
||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --with-pic
|
%configure --disable-static --with-pic
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%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 %lname
|
||||||
|
|
||||||
%files -n libbsd0
|
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libbsd.so.0*
|
%{_libdir}/libbsd.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%dir %{_includedir}/bsd
|
%{_includedir}/bsd
|
||||||
%dir %{_includedir}/bsd/netinet
|
|
||||||
%dir %{_includedir}/bsd/sys
|
|
||||||
%{_includedir}/bsd/*.h
|
|
||||||
%{_includedir}/bsd/netinet/*.h
|
|
||||||
%{_includedir}/bsd/sys/*.h
|
|
||||||
%{_libdir}/libbsd.so
|
%{_libdir}/libbsd.so
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user