Accepting request 84008 from home:jengelh:bl
Resubmit of #82503 after adding Obsoletes/Provides (cf. thread on -packaging ML; "<=" is ok with notice) - Implement shlib policy/packaging for package, add baselibs.conf and resolve redundant constructs OBS-URL: https://build.opensuse.org/request/show/84008 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zziplib?expand=0&rev=9
This commit is contained in:
parent
db329faa4f
commit
b9f3b36569
7
baselibs.conf
Normal file
7
baselibs.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# Obsoletes added in 0.13.58; change to "<" starting with 0.13.59
|
||||
libzzip-0-13
|
||||
obsoletes "zziplib-<targettype> <= <version>"
|
||||
provides "zziplib-<targettype> = <version>"
|
||||
zziplib-devel
|
||||
requires -zziplib-<targettype>
|
||||
requires "libzzip-0-13-<targettype> = <version>"
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 16 16:02:33 UTC 2011 - jengelh@medozas.de
|
||||
|
||||
- Implement shlib policy/packaging for package, add baselibs.conf
|
||||
and resolve redundant constructs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 30 15:22:39 UTC 2011 - crrodriguez@opensuse.org
|
||||
|
||||
|
40
zziplib.spec
40
zziplib.spec
@ -15,32 +15,42 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: zziplib
|
||||
%define lname libzzip-0-13
|
||||
Summary: ZZipLib: Free Zip Compression Library with an Easy-to-Use API
|
||||
Version: 0.13.58
|
||||
Release: 9
|
||||
License: LGPLv2.1+
|
||||
Group: System/Libraries
|
||||
AutoReqProv: on
|
||||
Url: http://zziplib.sourceforge.net
|
||||
URL: http://zziplib.sourceforge.net
|
||||
Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Patch: zziplib-0.13.49.patch
|
||||
Patch1: zziplib-0.13.58-wronglinking.patch
|
||||
BuildRequires: pkgconfig python zlib-devel
|
||||
BuildRequires: fdupes pkgconfig python zlib-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
ZZipLib is a library for dealing with zip and zip-like archives by
|
||||
using free algorithms of zlib.
|
||||
|
||||
%package -n %lname
|
||||
Summary: ZZipLib: free zip compression library with easy to use API
|
||||
Group: System/Libraries
|
||||
Obsoletes: zziplib < %version-%release
|
||||
Provides: zziplib = %version-%release
|
||||
|
||||
%description -n %lname
|
||||
ZZipLib is a library for dealing with zip and zip-like archives by
|
||||
using free algorithms of zlib.
|
||||
|
||||
%package devel
|
||||
License: LGPLv2.1+
|
||||
Summary: ZZipLib: free zip compression library with easy to use API
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version} zlib-devel
|
||||
Requires: %lname = %version, zlib-devel
|
||||
|
||||
%description devel
|
||||
That are the header files needed for developing applications using
|
||||
@ -54,27 +64,25 @@ ZZipLib.
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --enable-largefile --disable-static --with-pic
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
make doc
|
||||
make %{?_smp_mflags} all;
|
||||
make doc;
|
||||
|
||||
%install
|
||||
%{__make} DESTDIR=%{buildroot} install
|
||||
%makeinstall
|
||||
%{__rm} -f docs/Make* docs/zziplib-manpages.ar
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
find "%buildroot" -name "*.la" -type f -delete
|
||||
%fdupes %buildroot
|
||||
|
||||
%check
|
||||
%{__make} check || exit 0
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libzzip*-*.so.*
|
||||
%{_libdir}/libzzip*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user