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