|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
|
|
# Settings for EL <= 7
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
|
|
|
|
@ -6,8 +7,8 @@
|
|
|
|
|
Summary: A utility for unpacking zip files
|
|
|
|
|
Name: unzip
|
|
|
|
|
Version: 6.0
|
|
|
|
|
Release: 64%{?dist}
|
|
|
|
|
License: Info-ZIP
|
|
|
|
|
Release: 56%{?dist}
|
|
|
|
|
License: BSD
|
|
|
|
|
Source: http://downloads.sourceforge.net/infozip/unzip60.tar.gz
|
|
|
|
|
|
|
|
|
|
# Not sent to upstream.
|
|
|
|
@ -71,10 +72,8 @@ Patch30: unzip-zipbomb-part4.patch
|
|
|
|
|
Patch31: unzip-zipbomb-part5.patch
|
|
|
|
|
Patch32: unzip-zipbomb-part6.patch
|
|
|
|
|
Patch33: unzip-zipbomb-switch.patch
|
|
|
|
|
Patch34: unzip-gnu89-build.patch
|
|
|
|
|
Patch35: unzip-6.0-wcstombs-fortify.patch
|
|
|
|
|
|
|
|
|
|
URL: http://infozip.sourceforge.net
|
|
|
|
|
URL: http://www.info-zip.org/UnZip.html
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: bzip2-devel, gcc
|
|
|
|
|
|
|
|
|
@ -125,18 +124,21 @@ a zip archive.
|
|
|
|
|
%patch31 -p1
|
|
|
|
|
%patch32 -p1
|
|
|
|
|
%patch33 -p1
|
|
|
|
|
%patch34 -p1
|
|
|
|
|
%patch35 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Use the C implementation of CRC instead of assembly (only on i386, other architectures use C by default)
|
|
|
|
|
sed -i -e 's:-DASM_CRC::g' unix/configure
|
|
|
|
|
sed -i -e 's:CRC32OA="crc_gcc.o":CRC32OA="":g' unix/configure
|
|
|
|
|
|
|
|
|
|
# IZ_HAVE_UXUIDGID is needed for right functionality of unzip -X
|
|
|
|
|
# NOMEMCPY solve problem with memory overlapping - decompression is slowly,
|
|
|
|
|
# NOMEMCPY solve problem with memory overlapping - decomression is slowly,
|
|
|
|
|
# but successfull.
|
|
|
|
|
%make_build -f unix/Makefile CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS -DNOMEMCPY -DIZ_HAVE_UXUIDGID -DNO_LCHMOD" \
|
|
|
|
|
LFLAGS2="%{?__global_ldflags}" generic_gcc
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 INSTALL="cp -p" install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE COPYING.OLD
|
|
|
|
@ -145,57 +147,28 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 6.0-64
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 6.0-64
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-63
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-62
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 13 2023 Lukáš Zaoral <lzaoral@redhat.com> - 6.0-61
|
|
|
|
|
- migrate to SPDX license format
|
|
|
|
|
|
|
|
|
|
* Wed Jan 25 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 6.0-60
|
|
|
|
|
- Fix length passed to wcstombs call (#2164068)
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-59
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 09 2022 Jakub Martisko <jamartis@redhat.com> - 6.0-59
|
|
|
|
|
- Rebuild with the -std=gnu89 flag
|
|
|
|
|
Resolves: rhbz#1750694
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-58
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-57
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Dec 16 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-56
|
|
|
|
|
- Update the manpage regarding the 6.0-55
|
|
|
|
|
* Wed Jan 26 2022 Jakub Martisko <jamartis@redhat.com> - 6.0-56
|
|
|
|
|
- Use the C crc implementation instead of the asm (i686 only, other arches already use C)
|
|
|
|
|
Related: rhbz#2045075
|
|
|
|
|
|
|
|
|
|
* Mon Dec 13 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-55
|
|
|
|
|
- Allow to opt-out of the zipbomb detection
|
|
|
|
|
* Wed Jan 05 2022 Jakub Martisko <jamartis@redhat.com> - 6.0-55
|
|
|
|
|
- Rebuild with the gating tests enabled
|
|
|
|
|
Related: rhbz#2036946
|
|
|
|
|
|
|
|
|
|
* Tue Nov 09 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-54
|
|
|
|
|
- Update the URL
|
|
|
|
|
* Mon Dec 20 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-54
|
|
|
|
|
- Add an environment variable that disables the zipbomb detection
|
|
|
|
|
Resolves: rhbz#2031730
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-53
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 6.0-53
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Apr 29 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-52
|
|
|
|
|
- Sync the zipbomb false postives fixes with rhel
|
|
|
|
|
- zipbomb-part4 patch introduced in 6.0-51 has been renamed to part6 and part4 and part5 have been ported from rhel
|
|
|
|
|
Resolves: 1953565
|
|
|
|
|
* Fri Apr 30 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-52
|
|
|
|
|
- Add several patches dealing with false positice zipbomb detection
|
|
|
|
|
Resolves: #1954651
|
|
|
|
|
|
|
|
|
|
* Thu Mar 25 2021 Jakub Martisko <jamartis@redhat.com> - 6.0-51
|
|
|
|
|
- Fix false positive in the zipbomb detection
|
|
|
|
|
Related: 1920632
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.0-51
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-50
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|