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