f7f987
Summary: A file compression and packaging utility compatible with PKZIP
f7f987
Name: zip
f7f987
Version: 3.0
dc9ccf
Release: 35%{?dist}
f7f987
License: BSD
f7f987
Source: http://downloads.sourceforge.net/infozip/zip30.tar.gz
f7f987
URL: http://www.info-zip.org/Zip.html
f7f987
f7f987
# This patch will probably be merged to zip 3.1
f7f987
# http://www.info-zip.org/board/board.pl?m-1249408491/
f7f987
Patch1: zip-3.0-exec-shield.patch
f7f987
# Not upstreamed.
f7f987
Patch2: zip-3.0-currdir.patch
f7f987
# Not upstreamed.
f7f987
Patch3: zip-3.0-time.patch
f7f987
Patch4: man.patch
f7f987
Patch5: zip-3.0-format-security.patch
f7f987
Patch6: zipnote.patch
da34ea
Patch7: zip-3.0-configure.patch
f7f987
BuildRequires: make
f7f987
BuildRequires: bzip2-devel, gcc
f7f987
Requires: unzip
f7f987
f7f987
%description
f7f987
The zip program is a compression and file packaging utility.  Zip is
f7f987
analogous to a combination of the UNIX tar and compress commands and
f7f987
is compatible with PKZIP (a compression and file packaging utility for
f7f987
MS-DOS systems).
f7f987
f7f987
Install the zip package if you need to compress files using the zip
f7f987
program.
f7f987
f7f987
%prep
f7f987
%setup -q -n zip30
f7f987
%patch1 -p1 -b .exec-shield
f7f987
%patch2 -p1 -b .currdir
f7f987
%patch3 -p1 -b .time
f7f987
%patch4 -p1 -b .man
f7f987
%patch5 -p1 -b .format-security
f7f987
%patch6 -p1 -b .zipnote
da34ea
%patch7 -p1 
f7f987
f7f987
%build
dc9ccf
#Remove assembly file to force the c implementation of the crc functions
dc9ccf
#Related to 3.0-33 and 3.0-34
dc9ccf
rm crc_i386.S
dc9ccf
rm match.S
da34ea
da34ea
make -f unix/Makefile prefix=%{_prefix} CFLAGS_NOOPT="-I. -DUNIX -DNO_ASM $RPM_OPT_FLAGS" LFLAGS2="%{?__global_ldflags}"  generic_gcc  %{?_smp_mflags}
f7f987
f7f987
%install
f7f987
mkdir -p $RPM_BUILD_ROOT%{_bindir}
f7f987
mkdir -p $RPM_BULD_ROOT%{_mandir}/man1
f7f987
f7f987
make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} \
f7f987
        MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install
f7f987
f7f987
%files
f7f987
%license LICENSE
f7f987
%doc README CHANGES TODO WHATSNEW WHERE README.CR
f7f987
%doc proginfo/algorith.txt
f7f987
%{_bindir}/zipnote
f7f987
%{_bindir}/zipsplit
f7f987
%{_bindir}/zip
f7f987
%{_bindir}/zipcloak
f7f987
%{_mandir}/man1/zip.1*
f7f987
%{_mandir}/man1/zipcloak.1*
f7f987
%{_mandir}/man1/zipnote.1*
f7f987
%{_mandir}/man1/zipsplit.1*
f7f987
f7f987
%changelog
dc9ccf
* Tue Feb 14 2023 Jakub Martisko <jamartis@redhat.com> - 3.0-35
dc9ccf
- Fix the annocheck issus from 3-0-33 without reintroducing the regression from 3.0-34
dc9ccf
Related: rhbz#2162688
dc9ccf
dc9ccf
* Tue Jan 31 2023 Jakub Martisko <jamartis@redhat.com> - 3.0-34
dc9ccf
- Fix the regression introduced in 3.0-33 that caused some of the zip build flags to be dropped
dc9ccf
Resolves: rhbz#2162688
dc9ccf
da34ea
* Tue Feb 15 2022 Jakub Martisko <jamartis@redhat.com> - 3.0-33
da34ea
- Disable the asm implementation of some functions and use the C instead
da34ea
- This should fix some of the annocheck issues
da34ea
  Related: rhbz#2044902
da34ea
da34ea
* Thu Feb 03 2022 Jakub Martisko <jamartis@redhat.com> - 3.0-32
da34ea
- Enable gating tests
da34ea
  Related: rhbz#2049738
da34ea
da34ea
* Wed Feb 02 2022 Jakub Martisko <jamartis@redhat.com> - 3.0-31
da34ea
- Add the missing linker flags
da34ea
- Add the patch that allows to configure the linker flags from the spec file
da34ea
  Resolves: rhbz #2044902
da34ea
f7f987
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.0-30
f7f987
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f7f987
  Related: rhbz#1991688
f7f987
f7f987
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.0-29
f7f987
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
f7f987
f7f987
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-28
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f7f987
f7f987
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-27
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f7f987
f7f987
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-26
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f7f987
f7f987
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-25
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f7f987
f7f987
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-24
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f7f987
f7f987
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-23
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f7f987
f7f987
* Thu Mar 01 2018 Jakub Martisko <jamartis@redhat.com> - 3.0-22
f7f987
- Add gcc to buildrequires
f7f987
f7f987
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-21
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f7f987
f7f987
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-20
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f7f987
f7f987
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-19
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f7f987
f7f987
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-18
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f7f987
f7f987
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 3.0-17
f7f987
- Add missing %%license macro
f7f987
f7f987
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-16
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f7f987
f7f987
* Fri Jun 26 2015 Petr Stodulka <pstodulk@redhat.com> - 3.0-15
f7f987
- Added requirement for unzip (#1235956)
f7f987
f7f987
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-14
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f7f987
f7f987
* Wed Jan 28 2015 Petr Stodulka <pstodulk@redhat.com> - 3.0-13
f7f987
- fix crashing zipnote when editing .zip files (#1179420)
f7f987
f7f987
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-12
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f7f987
f7f987
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-11
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f7f987
f7f987
* Tue Apr  1 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.0-10
f7f987
- Add patch to fix format-security FTBFS (RHBZ 1037412)
f7f987
f7f987
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-9
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f7f987
f7f987
* Fri Apr 26 2013 Michal Luscon <mluscon@redhat.com> - 3.0-8
f7f987
- Fix missing -q option in zipsplit and zipnote man pages
f7f987
f7f987
* Sat Feb 23 2013 Ville Skyttä <ville.skytta@iki.fi> - 3.0-7
f7f987
- Enable bzip2 support.
f7f987
- Fix bogus date in %%changelog.
f7f987
f7f987
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-6
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f7f987
f7f987
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-5
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7f987
f7f987
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-4
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f7f987
f7f987
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-3
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f7f987
f7f987
* Mon May 24 2010 Karel Klic <kklic@redhat.com> - 3.0-2
f7f987
- Removed BuildRoot tag
f7f987
- Removed %%clean section
f7f987
- Removed trailing whitespaces in the spec file
f7f987
f7f987
* Fri Nov 13 2009 Karel Klic <kklic@redhat.com> - 3.0-1
f7f987
- New upstream version
f7f987
- Removed zip23.patch, because ZMEM is not used anyway
f7f987
- Removed zip-2.31-install.patch, problem solved in upstream
f7f987
- Removed zip23-umask.patch, upstream uses mkstemp which solves the problem
f7f987
- Removed zip-2.31-near-4GB.patch, because upstream version
f7f987
  handles large files well
f7f987
- Removed zip-2.31-configure.patch, configure is better in the current version
f7f987
- Removed zip-2.3-sf.patch, the error message doesn't exist in upstream anymore
f7f987
- Removed zip-2.31-umask_mode.patch, which fixes also removed near-4GB patch
f7f987
- Updated zip-2.31-time.patch for zip 3.0
f7f987
- Updated exec-shield.patch for zip 3.0
f7f987
- Updated zip-2.3-currdir.patch for zip 3.0
f7f987
f7f987
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.31-8
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7f987
f7f987
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.31-7
f7f987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f7f987
f7f987
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.31-6
f7f987
- Autorebuild for GCC 4.3
f7f987
f7f987
* Wed Nov 14 2007 Ivana Varekova <varekova@redhat.com> - 2.31-5
f7f987
- add S_IWOTH option
f7f987
f7f987
* Mon Nov  5 2007 Ivana Varekova <varekova@redhat.com> - 2.31-4
f7f987
- fix "zip does not honor umask setting when creating archives"
f7f987
- fix "zip segfaults by attempt to archive big file"
f7f987
- spec file cleanup
f7f987
f7f987
* Wed Feb  7 2007 Ivana Varekova <varekova@redhat.com> - 2.31-3
f7f987
- incorporate the next peckage review comment
f7f987
f7f987
* Tue Feb  6 2007 Ivana Varekova <varekova@redhat.com> - 2.31-2
f7f987
- incorporate the package review
f7f987
f7f987
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.31-1.2.2
f7f987
- rebuild
f7f987
f7f987
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.31-1.2.1
f7f987
- bump again for double-long bug on ppc(64)
f7f987
f7f987
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.31-1.2
f7f987
- rebuilt for new gcc4.1 snapshot and glibc changes
f7f987
f7f987
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f7f987
- rebuilt
f7f987
f7f987
* Thu Nov 10 2005 Ivana Varekova <varekova@redhat.com> 2.31-1
f7f987
- update to 2.31
f7f987
f7f987
* Mon Mar  7 2005 Ivana Varekova <varekova@redhat.com> 2.3-30
f7f987
- rebuilt
f7f987
f7f987
* Mon Jan 17 2005 Ivana Varekova <varekova@redhat.com> 2.3-29
f7f987
- Fix bug #142237 - problem with -d and ./files containing archives
f7f987
f7f987
* Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 2.3-24
f7f987
- Extend max file/archive size to 2^32-8193 (4294959103) bytes
f7f987
- Include better debugging output for configure script
f7f987
f7f987
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f7f987
- rebuilt
f7f987
f7f987
* Fri Mar 19 2004 Lon Hohberger <lhh@redhat.com> 2.3-22
f7f987
- Fix typos
f7f987
f7f987
* Tue Feb 17 2004 Lon Hohberger <lhh@redhat.com> 2.3-21
f7f987
- Include LICENSE file per bugzilla #116004
f7f987
f7f987
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f7f987
- rebuilt
f7f987
f7f987
* Mon Dec 22 2003 Lon Hohberger <lhh@redhat.com> 2.3-19
f7f987
- Make temp file have umask 0066 mode (#112516)
f7f987
f7f987
* Fri Oct 24 2003 Lon Hohberger <lhh@redhat.com> 2.3-18
f7f987
- Incorporate Arjan's exec-shield patch for i386
f7f987
f7f987
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f7f987
- rebuilt
f7f987
f7f987
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f7f987
- rebuilt
f7f987
f7f987
* Thu Dec 19 2002 Tim Powers <timp@redhat.com>
f7f987
- bump and rebuild
f7f987
f7f987
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f7f987
- automated rebuild
f7f987
f7f987
* Thu May 23 2002 Tim Powers <timp@redhat.com>
f7f987
- automated rebuild
f7f987
f7f987
* Tue Apr  2 2002 Trond Eivind Glomsrød <teg@redhat.com>
f7f987
- Don't strip explicitly
f7f987
f7f987
* Wed Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.3-11
f7f987
- Add URL
f7f987
f7f987
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
f7f987
- Bump release + rebuild.
f7f987
f7f987
* Fri Aug 25 2000 Bill Nottingham <notting@redhat.com>
f7f987
- add encryption code (#16878)
f7f987
f7f987
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
f7f987
- automatic rebuild
f7f987
f7f987
* Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
f7f987
- rebuild in new environment
f7f987
f7f987
* Mon Mar 13 2000 Bill Nottingham <notting@redhat.com>
f7f987
- spec file cleanups (#10143)
f7f987
f7f987
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
f7f987
- fix some perms
f7f987
f7f987
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
f7f987
- fix description
f7f987
- man pages are compressed
f7f987
f7f987
* Tue Jan 11 2000 Bill Nottingham <notting@redhat.com>
f7f987
- update to 2.3
f7f987
f7f987
* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
f7f987
- update to 2.2
f7f987
f7f987
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
f7f987
- auto rebuild in the new build environment (release 8)
f7f987
f7f987
* Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com>
f7f987
- updated text in the spec file
f7f987
f7f987
* Fri Jan 15 1999 Cristian Gafton <gafton@redhat.com>
f7f987
- patch top build on the arm
f7f987
f7f987
* Mon Dec 21 1998 Michael Maher <mike@redhat.com>
f7f987
- built package for 6.0
f7f987
f7f987
* Mon Aug 10 1998 Jeff Johnson <jbj@redhat.com>
f7f987
- build root
f7f987
f7f987
* Fri May 08 1998 Prospector System <bugs@redhat.com>
f7f987
- translations modified for de, fr, tr
f7f987
f7f987
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
f7f987
- built against glibc