2008-10-25 02:54:35 +00:00
|
|
|
#
|
2011-05-02 10:24:03 +00:00
|
|
|
# spec file for package zziplib
|
2008-10-25 02:54:35 +00:00
|
|
|
#
|
2020-03-06 11:15:10 +00:00
|
|
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-10-25 02:54:35 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-28 10:09:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-10-25 02:54:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-09-10 07:43:27 +00:00
|
|
|
%define lname libzzip-0-13
|
2017-11-06 12:37:57 +00:00
|
|
|
Name: zziplib
|
2018-03-19 07:59:20 +00:00
|
|
|
Version: 0.13.69
|
2017-11-06 12:37:57 +00:00
|
|
|
Release: 0
|
2018-02-19 12:54:55 +00:00
|
|
|
Summary: ZIP Compression Library
|
2019-10-28 10:09:10 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2018-02-19 12:54:55 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-11-19 20:13:40 +00:00
|
|
|
Url: http://zziplib.sourceforge.net
|
2018-02-19 09:26:53 +00:00
|
|
|
Source0: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2011-09-21 07:28:59 +00:00
|
|
|
Source2: baselibs.conf
|
2017-11-06 12:37:57 +00:00
|
|
|
Patch0: zziplib-0.13.62.patch
|
2012-12-15 19:01:02 +00:00
|
|
|
Patch1: zziplib-0.13.62-wronglinking.patch
|
2013-03-19 09:04:02 +00:00
|
|
|
Patch2: zziplib-largefile.patch
|
2018-03-19 17:24:00 +00:00
|
|
|
Patch3: CVE-2018-7726.patch
|
|
|
|
Patch4: CVE-2018-7725.patch
|
2018-09-10 07:41:57 +00:00
|
|
|
Patch5: CVE-2018-16548.patch
|
2018-10-04 11:08:27 +00:00
|
|
|
Patch6: CVE-2018-17828.patch
|
2019-06-14 06:11:56 +00:00
|
|
|
Patch7: bsc1129403-prevent-division-by-zero.patch
|
2019-12-13 17:11:29 +00:00
|
|
|
Patch8: bsc1154002-prevent-unnecessary-perror.patch
|
2017-11-06 12:37:57 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-12-15 19:01:02 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2017-11-06 12:37:57 +00:00
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2008-10-25 02:54:35 +00:00
|
|
|
|
|
|
|
%description
|
2018-02-19 12:54:55 +00:00
|
|
|
ZZipLib is a library for dealing with ZIP and ZIP-like archives by
|
|
|
|
using algorithms of zlib.
|
2008-10-25 02:54:35 +00:00
|
|
|
|
2017-11-06 12:37:57 +00:00
|
|
|
%package -n %{lname}
|
2018-02-19 12:54:55 +00:00
|
|
|
Summary: ZIP compression library
|
2011-09-21 07:28:59 +00:00
|
|
|
Group: System/Libraries
|
2017-11-06 12:37:57 +00:00
|
|
|
Obsoletes: zziplib < %{version}-%{release}
|
|
|
|
Provides: zziplib = %{version}-%{release}
|
2011-09-21 07:28:59 +00:00
|
|
|
|
2017-11-06 12:37:57 +00:00
|
|
|
%description -n %{lname}
|
2018-02-19 12:54:55 +00:00
|
|
|
ZZipLib is a library for dealing with ZIP and ZIP-like archives by
|
|
|
|
using algorithms of zlib.
|
2011-09-21 07:28:59 +00:00
|
|
|
|
2008-10-25 02:54:35 +00:00
|
|
|
%package devel
|
2018-02-19 12:54:55 +00:00
|
|
|
Summary: Development files for zziplib, a ZIP compression library
|
2008-10-25 02:54:35 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-11-06 12:37:57 +00:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Requires: pkgconfig(zlib)
|
2008-10-25 02:54:35 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
That are the header files needed for developing applications using
|
|
|
|
ZZipLib.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-11-06 12:37:57 +00:00
|
|
|
%patch0
|
2011-04-30 19:06:06 +00:00
|
|
|
%patch1
|
2013-03-19 09:04:02 +00:00
|
|
|
%patch2
|
2018-03-19 17:24:00 +00:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2018-09-10 07:41:57 +00:00
|
|
|
%patch5 -p1
|
2018-10-04 11:08:27 +00:00
|
|
|
%patch6 -p1
|
2019-06-14 06:11:56 +00:00
|
|
|
%patch7 -p1
|
2019-12-13 17:11:29 +00:00
|
|
|
%patch8 -p1
|
2018-01-26 16:23:16 +00:00
|
|
|
# do not bother with html docs saving us python2 dependency
|
|
|
|
sed -i -e 's:docs ::g' Makefile.am
|
2017-03-23 13:33:15 +00:00
|
|
|
|
2008-10-25 02:54:35 +00:00
|
|
|
%build
|
2009-01-27 01:29:32 +00:00
|
|
|
autoreconf -fiv
|
2017-11-06 12:37:57 +00:00
|
|
|
%configure \
|
|
|
|
--with-largefile \
|
|
|
|
--enable-frame-pointer \
|
2018-02-19 12:54:55 +00:00
|
|
|
--disable-static
|
2017-11-06 12:37:57 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-10-25 02:54:35 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-06 12:37:57 +00:00
|
|
|
%make_install
|
|
|
|
rm -f docs/Make* docs/zziplib-manpages.ar
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-10-25 02:54:35 +00:00
|
|
|
|
2017-11-06 12:37:57 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2008-10-25 02:54:35 +00:00
|
|
|
|
2017-11-06 12:37:57 +00:00
|
|
|
%files -n %{lname}
|
2018-03-19 07:59:20 +00:00
|
|
|
%license COPYING.LIB
|
2011-09-21 07:28:59 +00:00
|
|
|
%{_libdir}/libzzip*.so.*
|
2008-10-25 02:54:35 +00:00
|
|
|
|
|
|
|
%files devel
|
2018-03-19 07:59:20 +00:00
|
|
|
%doc docs/README.SDL ChangeLog README TODO
|
2008-10-25 02:54:35 +00:00
|
|
|
%{_bindir}/unzzip*
|
|
|
|
%{_bindir}/zz*
|
|
|
|
%{_bindir}/unzip-mem
|
|
|
|
%{_libdir}/libzzip*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
|
|
|
|
%changelog
|