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