123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- %define src_file unzip60
- Summary: A utility for unpacking zip files.
- Summary(ja): zip ファイルを展開するユーティリティ
- Name: unzip
- Version: 6.0
- Release: 8%{?_dist_release}
- Group: accessories
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: daisuke
- License: BSD
- URL: http://www.info-zip.org/UnZip.html
- Source: http://downloads.sourceforge.net/infozip/%{src_file}.tar.gz
- # Not sent to upstream.
- Patch1: unzip-6.0-bzip2-configure.patch
- # Upstream plans to do this in zip (hopefully also in unzip).
- Patch2: unzip-6.0-exec-shield.patch
- # Upstream plans to do similar thing.
- Patch3: unzip-6.0-close.patch
- # Details in rhbz#532380.
- # Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/
- Patch4: unzip-6.0-attribs-overflow.patch
- # Not sent to upstream, as it's Fedora/RHEL specific.
- # Modify the configure script to accept var LFLAGS2 so linking can be configurable
- # from the spec file. In addition '-s' is still removed as before
- Patch5: unzip-6.0-configure.patch
- Patch6: unzip-6.0-manpage-fix.patch
- # Update match.c with recmatch() from zip 3.0's util.c
- # This also resolves the license issue in that old function.
- # Original came from here: https://projects.parabolagnulinux.org/abslibre.git/plain/libre/unzip-libre/match.patch
- Patch7: unzip-6.0-fix-recmatch.patch
- # Update process.c
- Patch8: unzip-6.0-symlink.patch
- # change using of macro "case_map" by "to_up"
- Patch9: unzip-6.0-caseinsensitive.patch
- # downstream fix for "-Werror=format-security"
- # upstream doesn't want hear about this option again
- Patch10: unzip-6.0-format-secure.patch
- Patch11: unzip-6.0-valgrind.patch
- Patch12: unzip-6.0-x-option.patch
- Patch13: unzip-6.0-overflow.patch
- Patch14: unzip-6.0-cve-2014-8139.patch
- Patch15: unzip-6.0-cve-2014-8140.patch
- Patch16: unzip-6.0-cve-2014-8141.patch
- Patch17: unzip-6.0-overflow-long-fsize.patch
- # Fix heap overflow and infinite loop when invalid input is given (#1260947)
- Patch18: unzip-6.0-heap-overflow-infloop.patch
- # support non-{latin,unicode} encoding
- Patch19: unzip-6.0-alt-iconv-utf8.patch
- Patch20: unzip-6.0-alt-iconv-utf8-print.patch
- Patch21: 0001-Fix-CVE-2016-9844-rhbz-1404283.patch
- # restore unix timestamp accurately
- Patch22: unzip-6.0-timestamp.patch
- # fix possible heap based stack overflow in passwd protected files
- Patch23: unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
- Patch24: unzip-6.0-cve-2018-18384.patch
- # covscan issues
- Patch25: unzip-6.0-COVSCAN-fix-unterminated-string.patch
- Patch26: unzip-zipbomb-part1.patch
- Patch27: unzip-zipbomb-part2.patch
- Patch28: unzip-zipbomb-part3.patch
- Patch29: unzip-zipbomb-manpage.patch
- # https://github.com/madler/unzip/commit/13f0260beae851f7d5dd96e9ef757d8d6d7daac1
- Patch30: unzip-6.0-fix-false-overlap-detection-on-32bit-systems.patch
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963996
- Patch31: unzip-fix-buffer-length.patch
- # japanese charset support
- # https://gist.github.com/hamano/573753
- Patch200: unzip-6.0-japanese_charset.patch
- # just ignore -E option, older nls patch use this.
- Patch201: unzip-6.0-ignore-E-option.patch
- # support ja_JP.utf8 locale
- Patch202: unzip-6.0-japanese_charset-utf8.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: bzip2-devel, gcc
- %description
- The unzip utility is used to list, test, or extract files from a zip
- archive. Zip archives are commonly found on MS-DOS systems. The zip
- utility, included in the zip package, creates zip archives. Zip and
- unzip are both compatible with archives created by PKWARE(R)'s PKZIP
- for MS-DOS, but the programs' options and default behaviors do differ
- in some respects.
- Install the unzip package if you need to list, test or extract files from
- a zip archive.
- %description -l ja
- unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり,
- テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS
- システムで一般的に使われます.
- zip パッケージに含まれる zip プログラムは zip アーカイブを
- 作成するのに使います.
- zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに
- 対応していますが,デフォルトの動作やプログラムオプション等一部が
- 異なります.
- %debug_package
- %prep
- %setup -q -n %{src_file}
- %patch1 -p1
- %patch2 -p1
- %patch3 -p1
- %patch4 -p1
- %patch5 -p1
- %patch6 -p1
- %patch7 -p1
- %patch8 -p1
- %patch9 -p1
- %patch10 -p1
- %patch11 -p1
- %patch12 -p1
- %patch13 -p1
- %patch14 -p1
- %patch15 -p1
- %patch16 -p1
- %patch17 -p1
- %patch18 -p1
- %patch19 -p1
- %patch20 -p1
- %patch21 -p1
- %patch22 -p1
- %patch23 -p1
- %patch24 -p1
- %patch25 -p1
- %patch26 -p1
- %patch27 -p1
- %patch28 -p1
- %patch29 -p1
- %patch30 -p1
- %patch31 -p1
- %patch200 -p1 -b .jp
- %patch201 -p1 -b .ignore-E
- %patch202 -p1 -b .utf8
- %build
- make -f unix/Makefile \
- CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS -DNOMEMCPY -DIZ_HAVE_UXUIDGID -DNO_LCHMOD -D_MBCS" \
- LFLAGS2="%{?__global_ldflags}" \
- generic_gcc
- %install
- [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
- make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 INSTALL="cp -p" install
- %clean
- [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
- %files
- %defattr(-,root,root)
- %license LICENSE
- %doc README BUGS INSTALL
- %{_bindir}/*
- %{_mandir}/*/*
- %changelog
- * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-8
- - added Patch31.
- - changed options for make.
- * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-7
- - imported Patch30 from gentoo.
- * Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-6
- - re-imported Patch1-29 from rawhide.
- * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-5
- - imported Patch17-18, 21-24 from rawhide.
- - replaced Patch100-120 to rawhide's one.
- * Sun Feb 8 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 6.0-4
- - add Patch130 for CVE-2014-9636 (heap overflow)
- * Sun Jan 18 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.0-3
- - add Patch100 for fix CVE-2014-8139 (crc-overflow)
- - add Patch110 for fix CVE-2014-8140 (test-compr-eb)
- - add Patch120 for fix CVE-2014-8141 (getzip64data)
- - add Patch9-12 from fc22
- * Thu Jul 03 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-2
- - add patch202 to support ja_JP.utf8
- * Thu May 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-1
- - update to 6.0
- - replace nls patch.
- * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6
- - build on current VineSeed
- * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2
- - spec in utf-8
- - add NLS patch
- * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1
- - new upstream release
- - add patch13 from fc8
- - update patches to fit new release & drop old patches
- - with new versioning polity
- * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4
- - fix changelog typo
- * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4
- - update patch100 to fix ppc issue (it was patch5, from rhel4)
- - renumber patchs
- - add patch 2,3 to support big archive (from rhel4)
- - with new versioning polity
- * Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1
- - add patch5 for fix CVE-2005-4667
- - add patch6 for fix CVE-2008-0888
- - add Vendor/Distribution tag
- * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1
- - new upstream release
- - based on 5.51-9 Fedora development
- * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
- - fix the other problem with unpacking zipfiles containing symlinks
- (bug #134073)
- * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
- - fix segfault with unpacking of zipfiles containing dangling symlinks
- (bug #134073)
- * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
- - Fix segfault on extraction of symlinks
- * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
- - Extend max file/archive size to 2^32-8193 (4294959103) bytes
- * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
- - Update to 5.51; remove dotdot patch.
- * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2
- - merged patch1 from Vine Linux 2.6 updates
- - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3
- - replace patch1 from RedHat (RHSA-2003:199-02).
- - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2
- - added patch1 from Redhat (RHSA-2003:199-01)
- * Sun Dec 1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1
- - modified changelog section :-P (merge rawhidee changelogs)
- - Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2
- - rebuild with new toolchains
- - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1
- - based on 5.50-4 from Rawhide
- - previous Vine version was 5.41-3vl1:
- - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- - 5.41-3vl1
- - based on 5.41-3 from Rawhide
- - added Japanese summary and description
- - use better macros
- * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- - automated rebuild
- * Thu May 23 2002 Tim Powers <timp@redhat.com>
- - automated rebuild
- * Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3
- - Rebuild
- * Tue Apr 2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2
- - Make it not strip
- * Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1
- - 5.50
- * Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3
- - Rebuild
- * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- - automated rebuild
- * Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com>
- - 5.42
- - Don't strip binaries explicitly
- - build without assembly, it doesn't seem to increase performance
- - make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
- - use %%{_tmppath}
- - "License:" replaces "Copyright:"
- - Update URL
- - include zipgrep
- - COPYING doesn't exist anymore, include LICENSE instead
- * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- - automatic rebuild
- * Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
- - rebuild in new env.; FHS fixes.
- * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - 4.51 (an acceptable license at last...)
- * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
- - handle compressed man pages
- * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
- - update to 5.40
- * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- - auto rebuild in the new build environment (release 5)
- * Thu Dec 17 1998 Michael Maher <mike@redhat.com>
- - built for 6.0
- * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
- - build root
- * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- - translations modified for de, fr, tr
- * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
- - builds on non i386 platforms
- * Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
- - updated the version
- * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
- - built against glibc
|