diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..13a4466 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,7 @@ +# Obsoletes added in 0.13.58; change to "<" starting with 0.13.59 +libzzip-0-13 + obsoletes "zziplib- <= " + provides "zziplib- = " +zziplib-devel + requires -zziplib- + requires "libzzip-0-13- = " diff --git a/zziplib.changes b/zziplib.changes index d8e2223..8716447 100644 --- a/zziplib.changes +++ b/zziplib.changes @@ -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 diff --git a/zziplib.spec b/zziplib.spec index 59f9bb7..2efa55b 100644 --- a/zziplib.spec +++ b/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)