OBS-URL: https://build.opensuse.org/request/show/576008 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zziplib?expand=0&rev=26
113 lines
3.1 KiB
RPMSpec
113 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package zziplib
|
|
#
|
|
# Copyright (c) 2018 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/
|
|
#
|
|
|
|
|
|
%define lname libzzip-0-13
|
|
Name: zziplib
|
|
Version: 0.13.67
|
|
Release: 0
|
|
Summary: Free Zip Compression Library with an Easy-to-Use API
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Url: http://zziplib.sourceforge.net
|
|
Source0: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
|
|
Source2: baselibs.conf
|
|
Patch0: zziplib-0.13.62.patch
|
|
Patch1: zziplib-0.13.62-wronglinking.patch
|
|
Patch2: zziplib-largefile.patch
|
|
Patch3: CVE-2018-6381.patch
|
|
Patch4: CVE-2018-6484.patch
|
|
Patch5: CVE-2018-6540.patch
|
|
Patch6: CVE-2018-6542.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: fdupes
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: xmlto
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%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: pkgconfig(zlib)
|
|
|
|
%description devel
|
|
That are the header files needed for developing applications using
|
|
ZZipLib.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
# do not bother with html docs saving us python2 dependency
|
|
sed -i -e 's:docs ::g' Makefile.am
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure \
|
|
--with-largefile \
|
|
--enable-frame-pointer \
|
|
--disable-static \
|
|
--with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -f docs/Make* docs/zziplib-manpages.ar
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%fdupes %{buildroot}
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%files -n %{lname}
|
|
%license COPYING.LIB
|
|
%{_libdir}/libzzip*.so.*
|
|
|
|
%files devel
|
|
%doc docs/README* ChangeLog README TODO
|
|
%{_bindir}/unzzip*
|
|
%{_bindir}/zz*
|
|
%{_bindir}/unzip-mem
|
|
%{_libdir}/libzzip*.so
|
|
%{_includedir}/*
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%changelog
|