f7a027
Summary: A utility for unpacking zip files
f7a027
Name: unzip
f7a027
Version: 6.0
32ca9a
Release: 15%{?dist}
f7a027
License: BSD
f7a027
Group: Applications/Archiving
f7a027
Source: http://downloads.sourceforge.net/infozip/unzip60.tar.gz
f7a027
# Not sent to upstream.
f7a027
Patch1: unzip-6.0-bzip2-configure.patch
f7a027
# Upstream plans to do this in zip (hopefully also in unzip).
f7a027
Patch2: unzip-6.0-exec-shield.patch
f7a027
# Upstream plans to do similar thing.
f7a027
Patch3: unzip-6.0-close.patch
f7a027
# Details in rhbz#532380.
f7a027
# Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/
f7a027
Patch4: unzip-6.0-attribs-overflow.patch
f7a027
# Not sent to upstream, as it's Fedora/RHEL specific.
f7a027
# Modify the configure script not to request the strip of binaries.
f7a027
Patch5: unzip-6.0-nostrip.patch
f7a027
Patch6: unzip-6.0-manpage-fix.patch
f7a027
# Update match.c with recmatch() from zip 3.0's util.c
f7a027
# This also resolves the license issue in that old function.
f7a027
# Original came from here: https://projects.parabolagnulinux.org/abslibre.git/plain/libre/unzip-libre/match.patch
f7a027
Patch7: unzip-6.0-fix-recmatch.patch
f7a027
#Improve covered options in -hh usage and manpages(#948808)
f7a027
Patch8: unzip-6.0-manpageandusage.patch
7f963e
# downstream patch - repair file mach.c
7f963e
Patch9: unzip-6.0-caseinsensitive.patch
32ca9a
Patch10: unzip-6.0-cve-2014-9636.patch
32ca9a
Patch11: unzip-6.0-cve-2014-8139.patch
32ca9a
Patch12: unzip-6.0-cve-2014-8140.patch
32ca9a
Patch13: unzip-6.0-cve-2014-8141.patch
f7a027
URL: http://www.info-zip.org/UnZip.html
f7a027
BuildRequires:  bzip2-devel
f7a027
f7a027
%description
f7a027
The unzip utility is used to list, test, or extract files from a zip
f7a027
archive.  Zip archives are commonly found on MS-DOS systems.  The zip
f7a027
utility, included in the zip package, creates zip archives.  Zip and
f7a027
unzip are both compatible with archives created by PKWARE(R)'s PKZIP
f7a027
for MS-DOS, but the programs' options and default behaviors do differ
f7a027
in some respects.
f7a027
f7a027
Install the unzip package if you need to list, test or extract files from
f7a027
a zip archive.
f7a027
f7a027
%prep
f7a027
%setup -q -n unzip60
f7a027
%patch1 -p1 -b .bzip2-configure
f7a027
%patch2 -p1 -b .exec-shield
f7a027
%patch3 -p1 -b .close
f7a027
%patch4 -p1 -b .attribs-overflow
f7a027
%patch5 -p1 -b .nostrip
f7a027
%patch6 -p1 -b .manpage-fix
f7a027
%patch7 -p1 -b .recmatch
f7a027
%patch8 -p1 -b .usage
7f963e
%patch9 -p1 -b .caseinsensitive
32ca9a
%patch10 -p1 -b .cve-2014-9636.patch
32ca9a
%patch11 -p1 -b .cve-2014-8139.patch
32ca9a
%patch12 -p1 -b .cve-2014-8140.patch
32ca9a
%patch13 -p1 -b .cve-2014-8141.patch
32ca9a
f7a027
f7a027
%build
f7a027
make -f unix/Makefile CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS" generic_gcc %{?_smp_mflags}
f7a027
f7a027
%install
f7a027
rm -rf $RPM_BUILD_ROOT
f7a027
make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
f7a027
f7a027
%files
f7a027
%defattr(-,root,root)
f7a027
%doc README BUGS LICENSE
f7a027
%{_bindir}/*
f7a027
%{_mandir}/*/*
f7a027
f7a027
%changelog
32ca9a
* Wed Feb 25 2015 Petr Stodulka <pstodulk@redhat.com> - 6.0-15
32ca9a
- Fix CVE-2014-9636 CVE-2014-8139 CVE-2014-8140 CVE-2014-8141
32ca9a
  Resolves: #1196134 #1196122 #1196126 #1196130
32ca9a
7f963e
* Tue Jul 22 2014 Petr Stodulka <pstodulk@redhat.com> - 6.0-14
7f963e
- Fix caseinsensitive bug
7f963e
  Resolves: #1104018
7f963e
eee49e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 6.0-13
eee49e
- Mass rebuild 2014-01-24
eee49e
eee49e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.0-12
eee49e
- Mass rebuild 2013-12-27
eee49e
f7a027
* Fri Sep 27 2013 Ondrej Vasik <ovasik@redhat.com> - 6.0-11
f7a027
- slightly improve covered options in -hh usage and manpages (#948808)
f7a027
f7a027
* Mon Jun 24 2013 Tom Callaway <spot@fedoraproject.org> - 6.0-10
f7a027
- unset WILD_STOP_AT_DIR
f7a027
f7a027
* Tue May 28 2013 Tom Callaway <spot@fedoraproject.org> - 6.0-9
f7a027
- Apply changes to match.c to sync with recmatch from util.c (from zip 3.0)
f7a027
  This also resolves the license issue in that file.
f7a027
f7a027
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-8
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f7a027
f7a027
* Mon Dec 10 2012 Michal Luscon <mluscon@redhat.com> 6.0-7
f7a027
- Resolves: #884679 - zip files with bzip2 compression 
f7a027
f7a027
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-6
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7a027
f7a027
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f7a027
f7a027
- Fix minor manpage spelling mistake
f7a027
  Resolves: #675454
f7a027
f7a027
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-4
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f7a027
f7a027
* Mon May 24 2010 Karel Klic <kklic@redhat.com> - 6.0-3
f7a027
- Removed BuildRoot tag
f7a027
- Removed %%clean section
f7a027
- Removed trailing whitespaces in the spec file
f7a027
f7a027
* Mon Nov 30 2009 Karel Klic <kklic@redhat.com> - 6.0-2
f7a027
- Fixed a buffer overflow (rhbz#532380, unzip-6.0-attribs-overflow.patch)
f7a027
- Generate debuginfos (rhbz#540220, unzip-6.0-nostrip.patch)
f7a027
f7a027
* Mon Nov 16 2009 Karel Klic <kklic@redhat.com> - 6.0-1
f7a027
- New upstream version
f7a027
- Compiled using `make generic_gcc` (includes asm)
f7a027
- Removed unzip542-rpmoptflags.patch, because RPM_OPT_FLAGS
f7a027
  are provided using command line
f7a027
- Removed unzip-5.51-link-segv.patch, because the link file
f7a027
  is not reopened in the current version
f7a027
- Removed unzip-5.51-link-segv2.patch, the bug was already fixed
f7a027
  in open_outfile in 5.52
f7a027
- Removed unzip-5.52-toctou.patch (CAN-2005-2475), the vulnerability
f7a027
  is fixed in the current version
f7a027
- Removed unzip-5.52-near-4GB.patch, unzip-5.52-near-4GB2.patch,
f7a027
  unzip-5.52-4GB3.patch, and unzip-5.52-4GB_types.patch, because
f7a027
  the current version supports large files
f7a027
- Removed unzip-5.52-long-filename.patch, the current version
f7a027
  fixes the vulnerability by checking the length of command line
f7a027
  arguments in unzip.c
f7a027
- Removed unzip-5.52-makefile.patch, because we no longer create
f7a027
  the link manually
f7a027
- Removed unzip-5.52-open.patch, the current version uses umask.
f7a027
- Removed unzip-5.52-cve-2008-0888.patch, the current version
f7a027
  fixes this vulnerability
f7a027
- Ported unzip-5.52-249057.patch to current version (unzip-6.0-close)
f7a027
f7a027
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.52-11
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7a027
f7a027
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.52-10
f7a027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f7a027
f7a027
* Wed Mar 19 2008 Ivana Varekova <varekova@redhat.com> - 5.52-9
f7a027
- fix crash (double free) on malformed zip archive
f7a027
  CVE-2008-0888 (#431438)
f7a027
f7a027
* Fri Feb  8 2008 Ivana Varekova <varekova@redhat.com> - 5.52-8
f7a027
- fix output when out of space error appears
f7a027
f7a027
* Wed Jan 23 2008 Ivana Varekova <varekova@redhat.com> - 5.52-7
f7a027
- fix another long file support problem
f7a027
f7a027
* Tue Jan 22 2008 Ivana Varekova <varekova@redhat.com> - 5.52-6
f7a027
- add 4GB patch (#429674)
f7a027
f7a027
* Tue Sep  4 2007 Ivana Varekova <varekova@redhat.com> - 5.52-5
f7a027
- fix open call
f7a027
f7a027
* Wed Feb  7 2007 Ivana Varekova <varekova@redhat.com> - 5.52-4
f7a027
- incorporate the next peckage review comment
f7a027
f7a027
* Tue Feb  6 2007 Ivana Varekova <varekova@redhat.com> - 5.52-3
f7a027
- Resolves: 226516
f7a027
  Incorporate the package review
f7a027
f7a027
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.2.1
f7a027
- rebuild
f7a027
f7a027
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.2
f7a027
- bump again for double-long bug on ppc(64)
f7a027
f7a027
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.1
f7a027
- rebuilt for new gcc4.1 snapshot and glibc changes
f7a027
f7a027
* Mon Feb  6 2006 Ivana Varekova <varekova@redhat.com> 5.52-2
f7a027
- fix bug 180078 - unzip -l causing error
f7a027
- fix CVE-2005-4667 - unzip long file name buffer overflow
f7a027
f7a027
* Thu Dec 22 2005 Ivana Varekova <varekova@redhat.com> 5.52-1
f7a027
- update to 5.52
f7a027
f7a027
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f7a027
- rebuilt
f7a027
f7a027
* Wed Aug  3 2005 Ivana Varekova <varekova@redhat.com> 5.51-12
f7a027
- fix bug 164928 - TOCTOU issue in unzip
f7a027
f7a027
* Mon May  9 2005 Ivana Varekova <varekova@redhat.com> 5.51-11
f7a027
- fix bug 156959 – invalid file mode on created files
f7a027
f7a027
* Mon Mar  7 2005 Ivana Varekova <varekova@redhat.com> 5.51-10
f7a027
- rebuilt
f7a027
f7a027
* Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
f7a027
- fix the other problem with unpacking zipfiles containing symlinks
f7a027
  (bug #134073)
f7a027
f7a027
* Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
f7a027
- fix segfault with unpacking of zipfiles containing dangling symlinks
f7a027
  (bug #134073)
f7a027
f7a027
* Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-6
f7a027
- Rebuild
f7a027
f7a027
* Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
f7a027
- Fix segfault on extraction of symlinks
f7a027
f7a027
* Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
f7a027
- Extend max file/archive size to 2^32-8193 (4294959103) bytes
f7a027
f7a027
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f7a027
- rebuilt
f7a027
f7a027
* Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-2
f7a027
- Rebuild
f7a027
f7a027
* Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
f7a027
- Update to 5.51; remove dotdot patch.
f7a027
f7a027
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f7a027
- rebuilt
f7a027
f7a027
* Mon Nov 17 2003 Lon Hohberger <lhh@redhat.com> 5.50-36
f7a027
- Rebuild for FC-next
f7a027
f7a027
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-35
f7a027
- Rebuild for Severn
f7a027
f7a027
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-34
f7a027
- Rebuild for Taroon
f7a027
f7a027
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-33
f7a027
- Rebuild for 9 errata
f7a027
f7a027
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-32
f7a027
- Rebuild for 8.0 errata
f7a027
f7a027
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-31
f7a027
- Rebuild for 7.3 errata
f7a027
f7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-30
f7a027
- SECURITY Round 3: Fix up original patch (from 5.50-9) to fix
f7a027
^V/ exploit, but still allow '-:', which the other patch (5.50-18)
f7a027
does not allow.  Never allow explicit writing to the root
f7a027
directory; force users to change there and extract it manually.
f7a027
f7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-29
f7a027
- Rebuild for Severn
f7a027
f7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-28
f7a027
- Rebuild
f7a027
f7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-27
f7a027
- Rebuild for 9
f7a027
f7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-26
f7a027
- Rebuild for 8.0
f7a027
f7a027
* Tue Jul 22 2003 Lon Hohberger <lhh@redhat.com> 5.50-23
f7a027
- Rebuild for 7.3
f7a027
f7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-22
f7a027
- Rebuild for Severn
f7a027
f7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-21
f7a027
- Rebuild
f7a027
f7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-20
f7a027
- Rebuild for 9
f7a027
f7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-19
f7a027
- Rebuild for 8.0
f7a027
f7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-18
f7a027
- SECURITY: Incorporate far cleaner patch from Ben Laurie
f7a027
<ben@algroup.co.uk> which also fixes ^V/ (quote-slash).
f7a027
Patch checks post-decode as opposed to inline as previous
f7a027
patch does.
f7a027
f7a027
* Mon Jun 16 2003 Lon Hohberger <lhh@redhat.com> 5.50-17
f7a027
- Rebuilt per request
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-16
f7a027
- Rebuilt
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-15
f7a027
- Rebuilt
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-14
f7a027
- Rebuilt: Red Hat Linux 9
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-13
f7a027
- Rebuilt: Red Hat Enterprise Linux 2.1
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-12
f7a027
- Rebuilt Red Hat Linux 8.0
f7a027
f7a027
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-11
f7a027
- Rebuilt Red Hat Linux 7.3
f7a027
f7a027
* Wed Jun 11 2003 Lon Hohberger <lhh@redhat.com> 5.50-10
f7a027
- Rebuilt
f7a027
f7a027
* Wed Jun 11 2003 Lon Hohberger <lhh@redhat.com> 5.50-9
f7a027
- SECURITY: Scour start of filename for ../ patterns which
f7a027
include quote and/or control characters.
f7a027
f7a027
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f7a027
- rebuilt
f7a027
f7a027
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f7a027
- rebuilt
f7a027
f7a027
* Thu Dec 19 2002 Tim Powers <timp@redhat.com>
f7a027
- bump and rebuild
f7a027
f7a027
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f7a027
- automated rebuild
f7a027
f7a027
* Thu May 23 2002 Tim Powers <timp@redhat.com>
f7a027
- automated rebuild
f7a027
f7a027
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-3
f7a027
- Rebuild
f7a027
f7a027
* Tue Apr  2 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-2
f7a027
- Make it not strip
f7a027
f7a027
* Wed Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-1
f7a027
- 5.50
f7a027
f7a027
* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.42-3
f7a027
- Rebuild
f7a027
f7a027
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
f7a027
- automated rebuild
f7a027
f7a027
* Mon May 21 2001 Trond Eivind Glomsrød <teg@redhat.com>
f7a027
- 5.42
f7a027
- Don't strip binaries explicitly
f7a027
- build without assembly, it doesn't seem to increase performance
f7a027
- make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
f7a027
- use %%{_tmppath}
f7a027
- "License:" replaces "Copyright:"
f7a027
- Update URL
f7a027
- include zipgrep
f7a027
- COPYING doesn't exist anymore, include LICENSE instead
f7a027
f7a027
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
f7a027
- automatic rebuild
f7a027
f7a027
* Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
f7a027
- rebuild in new env.; FHS fixes.
f7a027
f7a027
* Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
f7a027
- 4.51 (an acceptable license at last...)
f7a027
f7a027
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
f7a027
- handle compressed man pages
f7a027
f7a027
* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
f7a027
- update to 5.40
f7a027
f7a027
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
f7a027
- auto rebuild in the new build environment (release 5)
f7a027
f7a027
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
f7a027
- built for 6.0
f7a027
f7a027
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
f7a027
- build root
f7a027
f7a027
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
f7a027
- translations modified for de, fr, tr
f7a027
f7a027
* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
f7a027
- builds on non i386 platforms
f7a027
f7a027
* Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
f7a027
- updated the version
f7a027
f7a027
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
f7a027
- built against glibc