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