Ivana Varekova aba35be
Summary: A utility for unpacking zip files
cvsdist 2b48a90
Name: unzip
Ivana Varekova 6d0bb8c
Version: 5.52
Karel Klíč fcb5797
Release: 11%{?dist}
cvsdist 6ac5f52
License: BSD
cvsdist 2b48a90
Group: Applications/Archiving
Ivana Varekova 6d0bb8c
Source: ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz
cvsdist 6ac5f52
Patch0: unzip542-rpmoptflags.patch
lhh 7c117f8
Patch2: unzip-5.51-link-segv.patch
Ivana Varekova 9dd0bf7
Patch3: unzip-5.51-link-segv2.patch
Ivana Varekova 6d0bb8c
Patch6: unzip-5.52-toctou.patch
Ivana Varekova 6d0bb8c
Patch7: unzip-5.52-near-4GB.patch
Ivana Varekova 4f42fbe
Patch8: unzip-5.52-near-4GB2.patch
Ivana Varekova 4f42fbe
Patch9: unzip-5.52-long-filename.patch
Ivana Varekova aba35be
Patch10: unzip-5.52-makefile.patch
Ivana Varekova fad71b4
Patch11: unzip-5.52-open.patch
Ivana Varekova 6369f01
Patch12: unzip-5.52-4GB3.patch
Ivana Varekova 67bdb8a
Patch13: unzip-5.52-4GB_types.patch
Ivana Varekova 0cb543d
Patch14: unzip-5.52-249057.patch
Ivana Varekova df1d2d8
Patch15: unzip-5.52-cve-2008-0888.patch
Karel Klíč fcb5797
# Details in rhbz#532380.
Karel Klíč fcb5797
# Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/
Karel Klíč fcb5797
Patch16: unzip-5.52-attribs-overflow.patch
cvsdist 6ac5f52
URL: http://www.info-zip.org/pub/infozip/UnZip.html
Ivana Varekova aba35be
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 2b48a90
cvsdist 2b48a90
%description
cvsdist 2b48a90
The unzip utility is used to list, test, or extract files from a zip
cvsdist 2b48a90
archive.  Zip archives are commonly found on MS-DOS systems.  The zip
cvsdist 2b48a90
utility, included in the zip package, creates zip archives.  Zip and
cvsdist 2b48a90
unzip are both compatible with archives created by PKWARE(R)'s PKZIP
cvsdist 2b48a90
for MS-DOS, but the programs' options and default behaviors do differ
cvsdist 2b48a90
in some respects.
cvsdist 2b48a90
cvsdist 2b48a90
Install the unzip package if you need to list, test or extract files from
cvsdist 2b48a90
a zip archive.
cvsdist 2b48a90
cvsdist 2b48a90
%prep
cvsdist 2b48a90
%setup -q 
Ivana Varekova fc4fd70
%patch0 -p1 -b .rpmo
Ivana Varekova fc4fd70
%patch2 -p1 -b .link-segv
Ivana Varekova 9dd0bf7
%patch3 -p1 -b .morn
Ivana Varekova 6d0bb8c
%patch6 -p1 -b .toctou
Ivana Varekova 6d0bb8c
%patch7 -p1 -b .4GB
Ivana Varekova 4f42fbe
%patch8 -p1 -b .4GB2
Ivana Varekova 4f42fbe
%patch9 -p1 -b .lfn
Ivana Varekova aba35be
%patch10 -p1 -b .make
Ivana Varekova fad71b4
%patch11 -p1 -b .open
Ivana Varekova 6369f01
%patch12 -p1 -b .4GB3
Ivana Varekova 67bdb8a
%patch13 -p1 -b .4BG4
Ivana Varekova 0cb543d
%patch14 -p1 -b .err
Ivana Varekova df1d2d8
%patch15 -p1 -b .cve-2008-0888
Karel Klíč fcb5797
%patch16 -p1 -b .attribs-overflow
cvsdist 2b48a90
ln -s unix/Makefile Makefile
cvsdist 2b48a90
cvsdist 2b48a90
%build
Ivana Varekova aba35be
make CFLAGS="-D_LARGEFILE64_SOURCE" linux_noasm LF2="" %{?_smp_mflags}
cvsdist 2b48a90
cvsdist 2b48a90
%install
cvsdist 2b48a90
rm -rf $RPM_BUILD_ROOT
cvsdist 2b48a90
Ivana Varekova aba35be
make prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install LF2="" 
cvsdist 2b48a90
cvsdist 2b48a90
%clean
cvsdist 2b48a90
rm -rf $RPM_BUILD_ROOT
cvsdist 2b48a90
cvsdist 2b48a90
%files
cvsdist 2b48a90
%defattr(-,root,root)
Ivana Varekova f4c1911
%doc README BUGS LICENSE 
Ivana Varekova aba35be
%{_bindir}/*
cvsdist 6ac5f52
%{_mandir}/*/*
cvsdist 2b48a90
cvsdist 2b48a90
%changelog
Karel Klíč fcb5797
* Mon Nov 30 2009 Karel Klic <kklic@redhat.com> - 5.52-11
Karel Klíč fcb5797
- fixed a buffer overflow (rhbz#532380)
Karel Klíč fcb5797
f30aefc
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.52-10
f30aefc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f30aefc
Ivana Varekova df1d2d8
* Wed Mar 19 2008 Ivana Varekova <varekova@redhat.com> - 5.52-9
Ivana Varekova df1d2d8
- fix crash (double free) on malformed zip archive
Ivana Varekova df1d2d8
  CVE-2008-0888 (#431438)
Ivana Varekova df1d2d8
Ivana Varekova 0cb543d
* Fri Feb  8 2008 Ivana Varekova <varekova@redhat.com> - 5.52-8
Ivana Varekova 0cb543d
- fix output when out of space error appears
Ivana Varekova 0cb543d
Ivana Varekova 67bdb8a
* Wed Jan 23 2008 Ivana Varekova <varekova@redhat.com> - 5.52-7
Ivana Varekova 67bdb8a
- fix another long file support problem
Ivana Varekova 67bdb8a
Ivana Varekova 6369f01
* Tue Jan 22 2008 Ivana Varekova <varekova@redhat.com> - 5.52-6
Ivana Varekova 67bdb8a
- add 4GB patch (#429674)
Ivana Varekova 6369f01
Ivana Varekova fad71b4
* Tue Sep  4 2007 Ivana Varekova <varekova@redhat.com> - 5.52-5
Ivana Varekova fad71b4
- fix open call
Ivana Varekova fad71b4
Ivana Varekova f4c1911
* Wed Feb  7 2007 Ivana Varekova <varekova@redhat.com> - 5.52-4
Ivana Varekova f4c1911
- incorporate the next peckage review comment  
Ivana Varekova f4c1911
Ivana Varekova aba35be
* Tue Feb  6 2007 Ivana Varekova <varekova@redhat.com> - 5.52-3
Ivana Varekova aba35be
- Resolves: 226516 
Ivana Varekova aba35be
  Incorporate the package review
Ivana Varekova aba35be
9837a4d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.2.1
9837a4d
- rebuild
9837a4d
24abe3e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.2
24abe3e
- bump again for double-long bug on ppc(64)
24abe3e
c71ec82
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.52-2.1
c71ec82
- rebuilt for new gcc4.1 snapshot and glibc changes
c71ec82
Ivana Varekova 4f42fbe
* Mon Feb  6 2006 Ivana Varekova <varekova@redhat.com> 5.52-2
Ivana Varekova 4f42fbe
- fix bug 180078 - unzip -l causing error
Ivana Varekova 4f42fbe
- fix CVE-2005-4667 - unzip long file name buffer overflow
Ivana Varekova 4f42fbe
Ivana Varekova 4f42fbe
* Thu Dec 22 2005 Ivana Varekova <varekova@redhat.com> 5.52-1
Ivana Varekova 6d0bb8c
- update to 5.52
Ivana Varekova 6d0bb8c
18416db
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
18416db
- rebuilt
18416db
Ivana Varekova 18199bb
* Wed Aug  3 2005 Ivana Varekova <varekova@redhat.com> 5.51-12
Ivana Varekova 18199bb
- fix bug 164928 - TOCTOU issue in unzip
Ivana Varekova 18199bb
Ivana Varekova 57a5c3e
* Mon May  9 2005 Ivana Varekova <varekova@redhat.com> 5.51-11
Ivana Varekova aba35be
- fix bug 156959 – invalid file mode on created files 
Ivana Varekova 57a5c3e
Ivana Varekova 92538df
* Mon Mar  7 2005 Ivana Varekova <varekova@redhat.com> 5.51-10
Ivana Varekova 92538df
- rebuilt
Ivana Varekova 92538df
Ivana Varekova 9dd0bf7
* Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
Ivana Varekova 9dd0bf7
- fix the other problem with unpacking zipfiles containing symlinks
Ivana Varekova 9dd0bf7
  (bug #134073)
Ivana Varekova 9dd0bf7
Ivana Varekova 9dd0bf7
* Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
Ivana Varekova fc4fd70
- fix segfault with unpacking of zipfiles containing dangling symlinks
Ivana Varekova fc4fd70
  (bug #134073)
Ivana Varekova fc4fd70
lhh 7c117f8
* Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-6
lhh 7c117f8
- Rebuild
lhh 7c117f8
lhh 7c117f8
* Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
lhh 7c117f8
- Fix segfault on extraction of symlinks
lhh 7c117f8
cvsdist 2cbdc98
* Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
cvsdist 2cbdc98
- Extend max file/archive size to 2^32-8193 (4294959103) bytes
cvsdist 2cbdc98
cvsdist e0aa8d9
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e0aa8d9
- rebuilt
cvsdist e0aa8d9
cvsdist c98c279
* Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-2
cvsdist c98c279
- Rebuild
cvsdist c98c279
cvsdist ebb8fd3
* Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
cvsdist ebb8fd3
- Update to 5.51; remove dotdot patch.
cvsdist ebb8fd3
cvsdist 3150bcd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 3150bcd
- rebuilt
cvsdist 3150bcd
cvsdist 8965877
* Mon Nov 17 2003 Lon Hohberger <lhh@redhat.com> 5.50-36
cvsdist 8965877
- Rebuild for FC-next
cvsdist 8965877
cvsdist 8f8d288
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-35
cvsdist 8f8d288
- Rebuild for Severn
cvsdist 8f8d288
cvsdist 8f8d288
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-34
cvsdist 8f8d288
- Rebuild for Taroon
cvsdist 8f8d288
cvsdist b1a4fa5
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-33
cvsdist b1a4fa5
- Rebuild for 9 errata
cvsdist b1a4fa5
cvsdist b1a4fa5
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-32
cvsdist b1a4fa5
- Rebuild for 8.0 errata
cvsdist b1a4fa5
cvsdist b1a4fa5
* Fri Aug 01 2003 Lon Hohberger <lhh@redhat.com> 5.50-31
cvsdist b1a4fa5
- Rebuild for 7.3 errata
cvsdist b1a4fa5
cvsdist b1a4fa5
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-30
cvsdist b1a4fa5
- SECURITY Round 3: Fix up original patch (from 5.50-9) to fix
cvsdist b1a4fa5
^V/ exploit, but still allow '-:', which the other patch (5.50-18)
cvsdist b1a4fa5
does not allow.  Never allow explicit writing to the root
cvsdist b1a4fa5
directory; force users to change there and extract it manually.
cvsdist b1a4fa5
cvsdist b1a4fa5
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-29
cvsdist b1a4fa5
- Rebuild for Severn
cvsdist b1a4fa5
cvsdist b1a4fa5
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-28
cvsdist b1a4fa5
- Rebuild
cvsdist b1a4fa5
cvsdist ef7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-27
cvsdist ef7a027
- Rebuild for 9
cvsdist ef7a027
cvsdist ef7a027
* Wed Jul 30 2003 Lon Hohberger <lhh@redhat.com> 5.50-26
cvsdist ef7a027
- Rebuild for 8.0
cvsdist ef7a027
cvsdist ef7a027
* Tue Jul 22 2003 Lon Hohberger <lhh@redhat.com> 5.50-23
cvsdist ef7a027
- Rebuild for 7.3
cvsdist ef7a027
cvsdist ef7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-22
cvsdist ef7a027
- Rebuild for Severn
cvsdist ef7a027
cvsdist ef7a027
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-21
cvsdist ef7a027
- Rebuild
cvsdist ef7a027
cvsdist fd3d241
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-20
cvsdist fd3d241
- Rebuild for 9
cvsdist fd3d241
cvsdist fd3d241
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-19
cvsdist fd3d241
- Rebuild for 8.0
cvsdist fd3d241
cvsdist fd3d241
* Mon Jul 21 2003 Lon Hohberger <lhh@redhat.com> 5.50-18
cvsdist fd3d241
- SECURITY: Incorporate far cleaner patch from Ben Laurie
cvsdist fd3d241
<ben@algroup.co.uk> which also fixes ^V/ (quote-slash).
cvsdist fd3d241
Patch checks post-decode as opposed to inline as previous
cvsdist fd3d241
patch does.
cvsdist fd3d241
cvsdist fd3d241
* Mon Jun 16 2003 Lon Hohberger <lhh@redhat.com> 5.50-17
cvsdist fd3d241
- Rebuilt per request
cvsdist fd3d241
cvsdist fd3d241
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-16
cvsdist fd3d241
- Rebuilt
cvsdist fd3d241
cvsdist fd3d241
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-15
cvsdist fd3d241
- Rebuilt
cvsdist fd3d241
cvsdist b4d2c37
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-14
cvsdist b4d2c37
- Rebuilt: Red Hat Linux 9
cvsdist b4d2c37
cvsdist b4d2c37
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-13
cvsdist b4d2c37
- Rebuilt: Red Hat Enterprise Linux 2.1
cvsdist b4d2c37
cvsdist b4d2c37
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-12
cvsdist b4d2c37
- Rebuilt Red Hat Linux 8.0
cvsdist b4d2c37
cvsdist b4d2c37
* Thu Jun 12 2003 Lon Hohberger <lhh@redhat.com> 5.50-11
cvsdist b4d2c37
- Rebuilt Red Hat Linux 7.3
cvsdist b4d2c37
cvsdist b4d2c37
* Wed Jun 11 2003 Lon Hohberger <lhh@redhat.com> 5.50-10
cvsdist b4d2c37
- Rebuilt
cvsdist b4d2c37
cvsdist b4d2c37
* Wed Jun 11 2003 Lon Hohberger <lhh@redhat.com> 5.50-9
cvsdist b4d2c37
- SECURITY: Scour start of filename for ../ patterns which
cvsdist b4d2c37
include quote and/or control characters.
cvsdist b4d2c37
cvsdist b4d2c37
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist b4d2c37
- rebuilt
cvsdist b4d2c37
cvsdist 94d4010
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 94d4010
- rebuilt
cvsdist 94d4010
cvsdist 94d4010
* Thu Dec 19 2002 Tim Powers <timp@redhat.com>
cvsdist 94d4010
- bump and rebuild
cvsdist 94d4010
cvsdist 8fc8993
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 8fc8993
- automated rebuild
cvsdist 8fc8993
cvsdist 1a37b94
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 1a37b94
- automated rebuild
cvsdist 1a37b94
Ivana Varekova aba35be
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-3
cvsdist 1a37b94
- Rebuild
cvsdist 1a37b94
Ivana Varekova aba35be
* Tue Apr  2 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-2
cvsdist 5a6c7fc
- Make it not strip
cvsdist 5a6c7fc
Ivana Varekova aba35be
* Wed Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.50-1
cvsdist 05da74f
- 5.50
cvsdist 05da74f
Ivana Varekova aba35be
* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.42-3
cvsdist 05da74f
- Rebuild
cvsdist 05da74f
cvsdist 05da74f
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 05da74f
- automated rebuild
cvsdist 05da74f
Ivana Varekova aba35be
* Mon May 21 2001 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 6ac5f52
- 5.42
cvsdist 6ac5f52
- Don't strip binaries explicitly
cvsdist 6ac5f52
- build without assembly, it doesn't seem to increase performance 
cvsdist 6ac5f52
- make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
cvsdist 6ac5f52
- use %%{_tmppath}
cvsdist 6ac5f52
- "License:" replaces "Copyright:"
cvsdist 6ac5f52
- Update URL
cvsdist 6ac5f52
- include zipgrep
cvsdist 6ac5f52
- COPYING doesn't exist anymore, include LICENSE instead
cvsdist 6ac5f52
cvsdist 2b48a90
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist 2b48a90
- automatic rebuild
cvsdist 2b48a90
cvsdist 2b48a90
* Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
cvsdist 2b48a90
- rebuild in new env.; FHS fixes.
cvsdist 2b48a90
cvsdist 2b48a90
* Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 2b48a90
- 4.51 (an acceptable license at last...)
cvsdist 2b48a90
cvsdist 2b48a90
* Thu Feb  3 2000 Bill Nottingham <notting@redhat.com>
cvsdist 2b48a90
- handle compressed man pages
cvsdist 2b48a90
cvsdist 2b48a90
* Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
cvsdist 2b48a90
- update to 5.40
cvsdist 2b48a90
cvsdist 2b48a90
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 2b48a90
- auto rebuild in the new build environment (release 5)
cvsdist 2b48a90
cvsdist 2b48a90
* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
cvsdist 2b48a90
- built for 6.0
cvsdist 2b48a90
cvsdist 2b48a90
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
cvsdist 2b48a90
- build root
cvsdist 2b48a90
cvsdist 2b48a90
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
cvsdist 2b48a90
- translations modified for de, fr, tr
cvsdist 2b48a90
cvsdist 2b48a90
* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
cvsdist 2b48a90
- builds on non i386 platforms
cvsdist 2b48a90
cvsdist 2b48a90
* Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
cvsdist 2b48a90
- updated the version
cvsdist 2b48a90
cvsdist 2b48a90
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
cvsdist 2b48a90
- built against glibc