zziplib/zziplib.spec
Marcus Meissner d31eba1de7 Accepting request 568759 from home:scarabeus_iv:branches:devel:libraries:c_c++
- Drop tests as they fail completely anyway, not finding lib needing
  zip command, this should allow us to kill python dependency
- Also drop docs subdir avoiding python dependency for it
  * The generated xmls were used for mans too but we shipped those
    only in devel pkg and as such we will live without them

- Version update to 0.13.67:
  * Various fixes found by fuzzing
  * Merged bellow patches
- Remove merged patches:
  * zziplib-CVE-2017-5974.patch
  * zziplib-CVE-2017-5975.patch
  * zziplib-CVE-2017-5976.patch
  * zziplib-CVE-2017-5978.patch
  * zziplib-CVE-2017-5979.patch
  * zziplib-CVE-2017-5981.patch
- Switch to github tarball as upstream seem no longer pull it to
  sourceforge
- Remove no longer applying patch zziplib-unzipcat-NULL-name.patch
  * The sourcecode was quite changed for this to work this way
    anymore, lets hope this is fixed too

OBS-URL: https://build.opensuse.org/request/show/568759
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/zziplib?expand=0&rev=21
2018-01-26 16:23:16 +00:00

105 lines
2.9 KiB
RPMSpec

#
# spec file for package zziplib
#
# Copyright (c) 2018 SUSE LINUX 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
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
# 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