# # spec file for package zziplib # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: zziplib %define lname libzzip-0-13 Summary: Free Zip Compression Library with an Easy-to-Use API License: LGPL-2.1+ Group: System/Libraries Version: 0.13.62 Release: 8.4 Url: http://zziplib.sourceforge.net Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2 Source2: baselibs.conf Patch: zziplib-0.13.62.patch Patch1: zziplib-0.13.62-wronglinking.patch Patch2: zziplib-largefile.patch BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: python BuildRequires: 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: 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 Summary: Free zip compression library with easy to use API Group: Development/Libraries/C and C++ Requires: %lname = %version Requires: zlib-devel %description devel That are the header files needed for developing applications using ZZipLib. %prep %setup -q %patch %patch1 %patch2 # Fix wrong encoding dos2unix docs/README.MSVC6 dos2unix docs/sdocbook.css %build autoreconf -fiv # build the compability version without largefile %configure --enable-frame-pointer --disable-static --with-pic make %{?_smp_mflags} all; %install %makeinstall find "%buildroot" -name "*.la" -type f -delete %fdupes %buildroot # clean up make distclean # build the version with largefile %configure --with-largefile --enable-frame-pointer --enable-static --with-pic make %{?_smp_mflags} all; make doc; %makeinstall %{__rm} -f docs/Make* docs/zziplib-manpages.ar find "%buildroot" -name "*.la" -type f -delete %fdupes %buildroot %check %{__make} check || exit 0 %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %{_libdir}/libzzip*.so.* %files devel %defattr(-,root,root) %doc docs/README* docs/* ChangeLog README TODO %{_bindir}/unzzip* %{_bindir}/zz* %{_bindir}/unzip-mem %{_libdir}/libzzip*.so %{_libdir}/libzzip*.a %{_includedir}/* %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/* %{_datadir}/aclocal/*.m4 %changelog * Sat Mar 16 2013 schwab@linux-m68k.org - zziplib-largefile.patch: Enable largefile support - Enable debug information * Sat Dec 15 2012 p.drouand@gmail.com - Update to 0.13.62 version: * configure.ac: fallback to libtool -export-dynamic unless being sure to use gnu-ld --export-dynamic. The darwin case is a bit special here as the c-compiler and linker might be from different worlds. * Makefile.am: allow nonstaic build * wrap fd.open like in the Fedora patch - Remove the package name on summary - Add dos2unix as build dependencie to fix a wrong file encoding * Sat Nov 19 2011 coolo@suse.com - add libtool as buildrequire to avoid implicit dependency * Fri Sep 16 2011 jengelh@medozas.de - Implement shlib policy/packaging for package, add baselibs.conf and resolve redundant constructs * Sat Apr 30 2011 crrodriguez@opensuse.org - Fix build with gcc 4.6 * Mon Feb 15 2010 dimstar@opensuse.org - Update to version 0.13.58: + Some bugs fixed, see ChangeLog * Mon Jul 27 2009 coolo@novell.com - update to version 0.13.56 - fixes many smaller issues (see Changelog) * Wed Jun 17 2009 coolo@novell.com - fix build with automake 1.11 * Mon Jan 26 2009 crrodriguez@suse.de - remove "la" files * Fri Oct 24 2008 wgottwalt@suse.de - removed ./msvc7/pkzip.exe and ./msvc8/zip.exe to avoid license problems * Wed Aug 15 2007 crrodriguez@suse.de - update to version 0.13.49 fixes #260734 buffer overflow due to wrong usage of strcpy() * Thu Mar 29 2007 dmueller@suse.de - adjust buildrequires * Mon Dec 4 2006 dmueller@suse.de - don't build as root * Tue Oct 3 2006 aj@suse.de - Fix build. * Fri Aug 18 2006 aj@suse.de - Fix build. * Mon May 22 2006 wgottwalt@suse.de - initial release - still problems with the "make check" build option