Blame SPECS/zziplib.spec

f76a33
Summary: Lightweight library to easily extract data from zip files
f76a33
Name: zziplib
f76a33
Version: 0.13.71
f76a33
Release: 9%{?dist}
f76a33
License: LGPLv2+ or MPLv1.1
f76a33
URL: http://zziplib.sourceforge.net/
f76a33
#Source: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
f76a33
f76a33
#Using the pruned version of the upstream archive. The archive does not contain the Source1 and Source2 files. Their github version is used instead (the original ones had licensing issues)
f76a33
#rhbz#1982241
f76a33
Source0: v%{version}-pruned.tar.gz
f76a33
#https://raw.githubusercontent.com/gdraheim/zziplib/465450c86c930026664329876e5350d21a7527db/docs/zzipdoc/match.py
f76a33
Source1: match.py
f76a33
#https://raw.githubusercontent.com/gdraheim/zziplib/465450c86c930026664329876e5350d21a7527db/docs/zzipdoc/options.py
f76a33
Source2: options.py
f76a33
f76a33
Patch1: CVE-2020-18442.patch 
f76a33
Patch100: multilib-32.patch
f76a33
Patch101: multilib-64.patch
f76a33
f76a33
BuildRequires: make
f76a33
BuildRequires:  gcc
f76a33
BuildRequires: perl-interpreter
f76a33
BuildRequires: python3
f76a33
BuildRequires: python3-rpm-macros
f76a33
BuildRequires: zip
f76a33
BuildRequires: xmlto
f76a33
BuildRequires: zlib-devel
f76a33
BuildRequires: SDL-devel
f76a33
BuildRequires: pkgconfig
f76a33
#BuildRequires: autoconf
f76a33
#BuildRequires: automake
f76a33
f76a33
%description
f76a33
The zziplib library is intentionally lightweight, it offers the ability to
f76a33
easily extract data from files archived in a single zip file. Applications
f76a33
can bundle files into a single zip archive and access them. The implementation
f76a33
is based only on the (free) subset of compression with the zlib algorithm
f76a33
which is actually used by the zip/unzip tools.
f76a33
f76a33
%package utils
f76a33
Summary: Utilities for the zziplib library
f76a33
Requires: %{name}%{?_isa} = %{version}-%{release}
f76a33
f76a33
%description utils
f76a33
The zziplib library is intentionally lightweight, it offers the ability to
f76a33
easily extract data from files archived in a single zip file. Applications
f76a33
can bundle files into a single zip archive and access them. The implementation
f76a33
is based only on the (free) subset of compression with the zlib algorithm
f76a33
which is actually used by the zip/unzip tools.
f76a33
f76a33
This packages contains all the utilities that come with the zziplib library.
f76a33
f76a33
%package devel
f76a33
Summary: Development files for the zziplib library
f76a33
Requires: %{name}%{?_isa} = %{version}-%{release}
f76a33
Requires: pkgconfig
f76a33
Requires: zlib-devel
f76a33
Requires: SDL-devel
f76a33
f76a33
%description devel
f76a33
The zziplib library is intentionally lightweight, it offers the ability to
f76a33
easily extract data from files archived in a single zip file. Applications
f76a33
can bundle files into a single zip archive and access them. The implementation
f76a33
is based only on the (free) subset of compression with the zlib algorithm
f76a33
which is actually used by the zip/unzip tools.
f76a33
f76a33
This package contains files required to build applications that will use the
f76a33
zziplib library.
f76a33
f76a33
%prep
f76a33
%setup -q
f76a33
cp %{SOURCE1} docs/zzipdoc/
f76a33
cp %{SOURCE2} docs/zzipdoc/
f76a33
f76a33
%patch1 -p1
f76a33
f76a33
f76a33
%build
f76a33
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
f76a33
%configure \
f76a33
    --disable-static \
f76a33
    --enable-sdl \
f76a33
    --enable-frame-pointer 
f76a33
# Remove rpath on 64bit archs
f76a33
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
f76a33
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
f76a33
# Only patch generated _config.h on non-i686 and armv7hl
f76a33
# These platforms have a correct _config.h already
f76a33
f76a33
pushd %{_builddir}/zziplib-%{version}
f76a33
%ifarch i686 armv7hl
f76a33
 patch -p2 < %{PATCH100}
f76a33
%endif
f76a33
%ifnarch i686 armv7hl
f76a33
 patch -p2 < %{PATCH101}
f76a33
%endif
f76a33
popd
f76a33
f76a33
%make_build
f76a33
f76a33
f76a33
%install
f76a33
%make_install
f76a33
f76a33
%ldconfig_scriptlets
f76a33
f76a33
%files
f76a33
%doc docs/COPYING* ChangeLog README TODO
f76a33
%{_libdir}/*.so.*
f76a33
f76a33
%files utils
f76a33
%{_bindir}/*
f76a33
f76a33
%files devel
f76a33
%doc docs/README.SDL docs/*.htm
f76a33
%{_includedir}/*
f76a33
%exclude %{_libdir}/*.la
f76a33
%{_libdir}/*.so
f76a33
%{_libdir}/pkgconfig/*.pc
f76a33
%{_datadir}/aclocal/*.m4
f76a33
%{_mandir}/man3/*
f76a33
f76a33
%changelog
f76a33
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.13.71-9
f76a33
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f76a33
  Related: rhbz#1991688
f76a33
f76a33
* Tue Jul 27 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-8
f76a33
- Add gating tests
f76a33
Resolves: rhbz#1986332
f76a33
f76a33
* Fri Jul 23 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-7
f76a33
- Remove the doc/zzipdoc/{options,match}.py scritps from the original tar
f76a33
- Replace them with a current github version
f76a33
- The original version of the files contains autogenerated header with incompatible license
f76a33
- This build thus uses modified tar archive
f76a33
Resolves: rhbz#1982241
f76a33
f76a33
* Thu Jul 22 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-6
f76a33
- Fix CVE-2020-18442
f76a33
Resolves: CVE-2020-18442
f76a33
Resolves: 1977964
f76a33
f76a33
* Thu Jul 22 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-5
f76a33
- Refresh the multilib patch
f76a33
Resolves: rhbz#1915747
f76a33
f76a33
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.13.71-4
f76a33
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f76a33
f76a33
* Mon Feb 01 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-3
f76a33
- Use python3 (versioned) as buildrequires
f76a33
f76a33
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.71-2
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f76a33
f76a33
* Thu Jan 21 2021 Jakub Martisko <jamartis@redhat.com> - 0.13.71-1
f76a33
- Rebase to 0.13.71
f76a33
- Drop the CVE patches, they are now part of the upstream package
f76a33
- Build no longer requires python2
f76a33
- Resolves: 1807565
f76a33
f76a33
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.69-9
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f76a33
f76a33
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 0.13.69-8
f76a33
- Use make macros
f76a33
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
f76a33
f76a33
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.69-7
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f76a33
f76a33
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.69-6
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f76a33
f76a33
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.69-5
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f76a33
f76a33
* Thu Jan 24 2019 Jakub Martisko <jamartis@redhat.com> - 0.13.69-4
f76a33
- Add the missing CVE-2018-17828.part2.patch file
f76a33
- Fix Formating of the previous 2 changelog entries
f76a33
f76a33
* Thu Jan 24 2019 Jakub Martisko <jamartis@redhat.com> - 0.13.69-3
f76a33
- Related: #1626202
f76a33
- Resolves: CVE-2018-16548
f76a33
f76a33
* Thu Jan 24 2019 Jakub Martisko <jamartis@redhat.com> - 0.13.69-2
f76a33
- Related: 1635890
f76a33
- Resolves: CVE-2018-17828
f76a33
f76a33
* Mon Jul 23 2018 Alexander Bokovoy <abokovoy@redhat.com> - 0.13.69-1
f76a33
- Update to 0.13.69 release
f76a33
- Fixes: #1598246 (CVE-2018-6541)
f76a33
- Fixes: #1554673 (CVE-2018-7727)
f76a33
- Use versioned python executables everywhere
f76a33
f76a33
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.68-3
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f76a33
f76a33
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.68-2
f76a33
- Update Python 2 dependency declarations to new packaging standards
f76a33
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f76a33
f76a33
* Wed Feb 14 2018 Alexander Bokovoy <abokovoy@redhat.com> - 0.13.68-1
f76a33
- 0.13.68
f76a33
- Fixes: #1543942 (CVE-2018-6484)
f76a33
f76a33
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.67-2
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f76a33
f76a33
* Thu Feb 01 2018 Alexander Bokovoy <abokovoy@redhat.com> - 0.13.67-1
f76a33
- Update release
f76a33
- CVE-2018-6381
f76a33
f76a33
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.62-10
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f76a33
f76a33
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.62-9
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f76a33
f76a33
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.62-8
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f76a33
f76a33
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.62-7
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f76a33
f76a33
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.62-6
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f76a33
f76a33
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.62-5
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f76a33
f76a33
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.62-4
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f76a33
f76a33
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.62-3
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f76a33
f76a33
* Wed Jan 30 2013 Jindrich Novy <jnovy@redhat.com> 0.13.62-2
f76a33
- rebuild with -fno-strict-aliasing
f76a33
f76a33
* Wed Oct 10 2012 Matthias Saou <matthias@saou.eu> 0.13.62-1
f76a33
- Update to 0.13.62.
f76a33
- Remove no longer needed -Wl patch.
f76a33
f76a33
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.60-2
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f76a33
f76a33
* Thu Mar  8 2012 Tom Callaway <spot@fedoraproject.org> - 0.13.60-1
f76a33
- update to 0.13.60
f76a33
f76a33
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.59-4
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f76a33
f76a33
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.59-3
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f76a33
f76a33
* Thu Dec  9 2010 Hans de Goede <hdegoede@redhat.com> 0.13.59-2
f76a33
- Fix broken zzip/_config.h which causes apps using zziplib to fail to compile
f76a33
f76a33
* Sat Dec  4 2010 Matthias Saou <http://freshrpms.net/> 0.13.59-1
f76a33
- Update to 0.13.59.
f76a33
- Remove no longer needed 'open' patch.
f76a33
- Rebase the multilib patch, still required.
f76a33
- Re-enable _smp_mflags, build works again with it apparently.
f76a33
f76a33
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-8
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f76a33
f76a33
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-7
f76a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f76a33
f76a33
* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 0.13.49-6
f76a33
- Patch _config.h to make it identical for 32bit and 64bit archs (#343521).
f76a33
f76a33
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
f76a33
- Autorebuild for GCC 4.3
f76a33
f76a33
* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-4
f76a33
- Include patch to fix fd.open calls with recent glibc.
f76a33
- Disable _smp_mflags since the docs fail to build.
f76a33
f76a33
* Fri Aug  3 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-3
f76a33
- Update License field.
f76a33
f76a33
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-2
f76a33
- Disable static lib build instead of excluding it later.
f76a33
- Remove rpath on 64bit archs.
f76a33
- Switch to using DESTDIR install method.
f76a33
f76a33
* Mon Mar 26 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-1
f76a33
- Update to 0.13.49 to fix CVE-2007-1614 (rhbz #233700).
f76a33
- Include new man3 pages to the devel sub-package.
f76a33
f76a33
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 0.13.47-1
f76a33
- Update to 0.13.47.
f76a33
- FC6 rebuild.
f76a33
f76a33
* Mon Jul 24 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-3
f76a33
- Split off -utils sub-package (#199467). Could have been plain "zzip"?
f76a33
- Have sub-packages require exact release too.
f76a33
- Build require automake to make the aclocal-1.9 check happy.
f76a33
- Use --enable-frame-pointer otherwise -g gets removed from the CFLAGS.
f76a33
f76a33
* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-2
f76a33
- FC5 rebuild.
f76a33
f76a33
* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-1
f76a33
- Update to 0.13.45.
f76a33
- Exclude static library.
f76a33
f76a33
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.13.38-2
f76a33
- rebuild on all arches
f76a33
f76a33
* Tue Apr  5 2005 Matthias Saou <http://freshrpms.net/> 0.13.38-1
f76a33
- Update to 0.13.38, fixes gcc4 compile issues (Adrian Reber).
f76a33
f76a33
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-2
f76a33
- Bump release to provide Extras upgrade path.
f76a33
f76a33
* Tue Jun  8 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-1
f76a33
- Initial RPM release.
f76a33