ead5c7
Summary: Lightweight library to easily extract data from zip files
ead5c7
Name: zziplib
ead5c7
Version: 0.13.62
ead5c7
Release: 9%{?dist}
ead5c7
License: LGPLv2+ or MPLv1.1
ead5c7
Group: Applications/Archiving
ead5c7
URL: http://zziplib.sourceforge.net/
ead5c7
Source: http://switch.dl.sourceforge.net/project/zziplib/zziplib13/%{version}/zziplib-%{version}.tar.bz2
ead5c7
Patch0: zziplib-0.13.59-multilib.patch
ead5c7
Patch1: 0001-fix-CVE-2018-7725.patch
ead5c7
Patch2: 0001-fix-CVE-2018-7726.patch
ead5c7
Patch3: 0001-fix-CVE-2018-7727.patch
ead5c7
ead5c7
BuildRequires: perl
ead5c7
BuildRequires: python
ead5c7
BuildRequires: zip
ead5c7
BuildRequires: xmlto
ead5c7
BuildRequires: zlib-devel
ead5c7
BuildRequires: SDL-devel
ead5c7
BuildRequires: pkgconfig
ead5c7
#BuildRequires: autoconf
ead5c7
#BuildRequires: automake
ead5c7
ead5c7
%description
ead5c7
The zziplib library is intentionally lightweight, it offers the ability to
ead5c7
easily extract data from files archived in a single zip file. Applications
ead5c7
can bundle files into a single zip archive and access them. The implementation
ead5c7
is based only on the (free) subset of compression with the zlib algorithm
ead5c7
which is actually used by the zip/unzip tools.
ead5c7
ead5c7
%package utils
ead5c7
Summary: Utilities for the zziplib library
ead5c7
Group: Applications/Archiving
ead5c7
Requires: %{name}%{?_isa} = %{version}-%{release}
ead5c7
ead5c7
%description utils
ead5c7
The zziplib library is intentionally lightweight, it offers the ability to
ead5c7
easily extract data from files archived in a single zip file. Applications
ead5c7
can bundle files into a single zip archive and access them. The implementation
ead5c7
is based only on the (free) subset of compression with the zlib algorithm
ead5c7
which is actually used by the zip/unzip tools.
ead5c7
ead5c7
This packages contains all the utilities that come with the zziplib library.
ead5c7
ead5c7
%package devel
ead5c7
Summary: Development files for the zziplib library
ead5c7
Group: Development/Libraries
ead5c7
Requires: %{name}%{?_isa} = %{version}-%{release}
ead5c7
Requires: pkgconfig
ead5c7
Requires: zlib-devel
ead5c7
Requires: SDL-devel
ead5c7
ead5c7
%description devel
ead5c7
The zziplib library is intentionally lightweight, it offers the ability to
ead5c7
easily extract data from files archived in a single zip file. Applications
ead5c7
can bundle files into a single zip archive and access them. The implementation
ead5c7
is based only on the (free) subset of compression with the zlib algorithm
ead5c7
which is actually used by the zip/unzip tools.
ead5c7
ead5c7
This package contains files required to build applications that will use the
ead5c7
zziplib library.
ead5c7
ead5c7
%prep
ead5c7
%setup -q
ead5c7
%patch0 -p1
ead5c7
%patch1 -p1
ead5c7
%patch2 -p1
ead5c7
%patch3 -p1
ead5c7
# Save the common patched _config.h file to overwrite the generated one
ead5c7
cp -a zzip/_config.h _config.h
ead5c7
ead5c7
%build
ead5c7
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
ead5c7
%configure \
ead5c7
    --disable-static \
ead5c7
    --enable-sdl \
ead5c7
    --enable-frame-pointer
ead5c7
# Remove rpath on 64bit archs
ead5c7
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool
ead5c7
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
ead5c7
%{__make} %{?_smp_mflags}
ead5c7
ead5c7
%install
ead5c7
make install DESTDIR=%{buildroot}
ead5c7
# Overwrite the platform specific _config.h with our own modified common one
ead5c7
rm -f %{buildroot}%{_includedir}/zzip/_config.h
ead5c7
install -p -m 0644 _config.h %{buildroot}%{_includedir}/zzip/_config.h
ead5c7
ead5c7
%post -p /sbin/ldconfig
ead5c7
ead5c7
%postun -p /sbin/ldconfig
ead5c7
ead5c7
%files
ead5c7
%doc docs/COPYING* ChangeLog README TODO
ead5c7
%{_libdir}/*.so.*
ead5c7
ead5c7
%files utils
ead5c7
%{_bindir}/*
ead5c7
ead5c7
%files devel
ead5c7
%doc docs/README.SDL docs/*.htm
ead5c7
%{_includedir}/*
ead5c7
%exclude %{_libdir}/*.la
ead5c7
%{_libdir}/*.so
ead5c7
%{_libdir}/pkgconfig/*.pc
ead5c7
%{_datadir}/aclocal/*.m4
ead5c7
%{_mandir}/man3/*
ead5c7
ead5c7
%changelog
ead5c7
* Wed Jun 20 2018 Jakub Martisko <jamartis@redhat.com> - 0.13.62-9
ead5c7
- Fix covscan warning
ead5c7
- "Variable "file" going out of scope leaks the storage it points to."
ead5c7
  has been introduced by the original version of 0001-fix-CVE-2018-7725.patch
ead5c7
- Related: 1558596
ead5c7
ead5c7
* Thu Jun 14 2018 Jakub Martisko <jamartis@redhat.com> - 0.13.62-8
ead5c7
- Fix CVE-2018-7727
ead5c7
- Resolves: 1558891
ead5c7
ead5c7
* Wed Jun 13 2018 Jakub Martisko <jamartis@redhat.com> - 0.13.62-7
ead5c7
- Fix CVE-2018-7726
ead5c7
- Resolves: 1558623
ead5c7
ead5c7
* Wed Jun 13 2018 Jakub Martisko <jamartis@redhat.com> - 0.13.62-6
ead5c7
- Fix CVE-2018-7725
ead5c7
- Resolves: 1558596
ead5c7
ead5c7
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.13.62-5
ead5c7
- Mass rebuild 2014-01-24
ead5c7
ead5c7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.13.62-4
ead5c7
- Mass rebuild 2013-12-27
ead5c7
ead5c7
* Thu Jul 4 2013 Michal Luscon <mluscon@redhat.com> 0.13.62-3
ead5c7
- Fix source address
ead5c7
ead5c7
* Wed Jan 30 2013 Jindrich Novy <jnovy@redhat.com> 0.13.62-2
ead5c7
- rebuild with -fno-strict-aliasing
ead5c7
ead5c7
* Wed Oct 10 2012 Matthias Saou <matthias@saou.eu> 0.13.62-1
ead5c7
- Update to 0.13.62.
ead5c7
- Remove no longer needed -Wl patch.
ead5c7
ead5c7
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.60-2
ead5c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ead5c7
ead5c7
* Thu Mar  8 2012 Tom Callaway <spot@fedoraproject.org> - 0.13.60-1
ead5c7
- update to 0.13.60
ead5c7
ead5c7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.59-4
ead5c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ead5c7
ead5c7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.59-3
ead5c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ead5c7
ead5c7
* Thu Dec  9 2010 Hans de Goede <hdegoede@redhat.com> 0.13.59-2
ead5c7
- Fix broken zzip/_config.h which causes apps using zziplib to fail to compile
ead5c7
ead5c7
* Sat Dec  4 2010 Matthias Saou <http://freshrpms.net/> 0.13.59-1
ead5c7
- Update to 0.13.59.
ead5c7
- Remove no longer needed 'open' patch.
ead5c7
- Rebase the multilib patch, still required.
ead5c7
- Re-enable _smp_mflags, build works again with it apparently.
ead5c7
ead5c7
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-8
ead5c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ead5c7
ead5c7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-7
ead5c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ead5c7
ead5c7
* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 0.13.49-6
ead5c7
- Patch _config.h to make it identical for 32bit and 64bit archs (#343521).
ead5c7
ead5c7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
ead5c7
- Autorebuild for GCC 4.3
ead5c7
ead5c7
* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-4
ead5c7
- Include patch to fix fd.open calls with recent glibc.
ead5c7
- Disable _smp_mflags since the docs fail to build.
ead5c7
ead5c7
* Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-3
ead5c7
- Update License field.
ead5c7
ead5c7
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-2
ead5c7
- Disable static lib build instead of excluding it later.
ead5c7
- Remove rpath on 64bit archs.
ead5c7
- Switch to using DESTDIR install method.
ead5c7
ead5c7
* Mon Mar 26 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-1
ead5c7
- Update to 0.13.49 to fix CVE-2007-1614 (rhbz #233700).
ead5c7
- Include new man3 pages to the devel sub-package.
ead5c7
ead5c7
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 0.13.47-1
ead5c7
- Update to 0.13.47.
ead5c7
- FC6 rebuild.
ead5c7
ead5c7
* Mon Jul 24 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-3
ead5c7
- Split off -utils sub-package (#199467). Could have been plain "zzip"?
ead5c7
- Have sub-packages require exact release too.
ead5c7
- Build require automake to make the aclocal-1.9 check happy.
ead5c7
- Use --enable-frame-pointer otherwise -g gets removed from the CFLAGS.
ead5c7
ead5c7
* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-2
ead5c7
- FC5 rebuild.
ead5c7
ead5c7
* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-1
ead5c7
- Update to 0.13.45.
ead5c7
- Exclude static library.
ead5c7
ead5c7
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.13.38-2
ead5c7
- rebuild on all arches
ead5c7
ead5c7
* Tue Apr  5 2005 Matthias Saou <http://freshrpms.net/> 0.13.38-1
ead5c7
- Update to 0.13.38, fixes gcc4 compile issues (Adrian Reber).
ead5c7
ead5c7
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-2
ead5c7
- Bump release to provide Extras upgrade path.
ead5c7
ead5c7
* Tue Jun  8 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-1
ead5c7
- Initial RPM release.
ead5c7