unzip-vl.spec 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. %define src_file unzip60
  2. Summary: A utility for unpacking zip files.
  3. Summary(ja): zip ファイルを展開するユーティリティ
  4. Name: unzip
  5. Version: 6.0
  6. Release: 5%{?_dist_release}
  7. License: BSD
  8. Group: Applications/Archiving
  9. URL: http://www.info-zip.org/UnZip.html
  10. Source: http://downloads.sourceforge.net/infozip/%{src_file}.tar.gz
  11. # Not sent to upstream.
  12. Patch1: unzip-6.0-bzip2-configure.patch
  13. # Upstream plans to do this in zip (hopefully also in unzip).
  14. Patch2: unzip-6.0-exec-shield.patch
  15. # Upstream plans to do similar thing.
  16. Patch3: unzip-6.0-close.patch
  17. # Details in rhbz#532380.
  18. # Reported to upstream: http://www.info-zip.org/board/board.pl?m-1259575993/
  19. Patch4: unzip-6.0-attribs-overflow.patch
  20. # Not sent to upstream, as it's Fedora/RHEL specific.
  21. # Modify the configure script not to request the strip of binaries.
  22. Patch5: unzip-6.0-nostrip.patch
  23. Patch6: unzip-6.0-manpage-fix.patch
  24. # Update match.c with recmatch() from zip 3.0's util.c
  25. # This also resolves the license issue in that old function.
  26. # Original came from here: https://projects.parabolagnulinux.org/abslibre.git/plain/libre/unzip-libre/match.patch
  27. Patch7: unzip-6.0-fix-recmatch.patch
  28. # Update process.c
  29. Patch8: unzip-6.0-symlink.patch
  30. # change using of macro "case_map" by "to_up"
  31. Patch9: unzip-6.0-caseinsensitive.patch
  32. # downstream fix for "-Werror=format-security"
  33. # upstream doesn't want hear about this option again
  34. Patch10: unzip-6.0-format-secure.patch
  35. Patch11: unzip-6.0-valgrind.patch
  36. Patch12: unzip-6.0-x-option.patch
  37. # security
  38. Patch100: unzip-6.0-cve-2014-8139.patch
  39. Patch110: unzip-6.0-cve-2014-8140.patch
  40. Patch120: unzip-6.0-cve-2014-8141.patch
  41. ## http://www.openwall.com/lists/oss-security/2014/11/03/10
  42. Patch130: unzip-6.0-CVE-2014-9636.patch
  43. Patch17: unzip-6.0-overflow-long-fsize.patch
  44. # Fix heap overflow and infinite loop when invalid input is given (#1260947)
  45. Patch18: unzip-6.0-heap-overflow-infloop.patch
  46. Patch21: 0001-Fix-CVE-2016-9844-rhbz-1404283.patch
  47. # restore unix timestamp accurately
  48. Patch22: unzip-6.0-timestamp.patch
  49. # fix possible heap based stack overflow in passwd protected files
  50. Patch23: unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
  51. Patch24: unzip-6.0-cve-2018-18384.patch
  52. # japanese charset support
  53. # https://gist.github.com/hamano/573753
  54. Patch200: unzip-6.0-japanese_charset.patch
  55. # just ignore -E option, older nls patch use this.
  56. Patch201: unzip-6.0-ignore-E-option.patch
  57. # support ja_JP.utf8 locale
  58. Patch202: unzip-6.0-japanese_charset-utf8.patch
  59. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  60. BuildRequires: bzip2-devel, gcc
  61. Vendor: Project Vine
  62. Distribution: Vine Linux
  63. Packager: daisuke
  64. %description
  65. The unzip utility is used to list, test, or extract files from a zip
  66. archive. Zip archives are commonly found on MS-DOS systems. The zip
  67. utility, included in the zip package, creates zip archives. Zip and
  68. unzip are both compatible with archives created by PKWARE(R)'s PKZIP
  69. for MS-DOS, but the programs' options and default behaviors do differ
  70. in some respects.
  71. Install the unzip package if you need to list, test or extract files from
  72. a zip archive.
  73. %description -l ja
  74. unzip ユーティリティは,zip アーカイブ内のファイルを一覧表示したり,
  75. テスト/展開する為に使うユーティリティです.zip アーカイブは MS-DOS
  76. システムで一般的に使われます.
  77. zip パッケージに含まれる zip プログラムは zip アーカイブを
  78. 作成するのに使います.
  79. zip と unzip は PKWARE(R) の MS-DOS 用 PKZIP で作成された zip アーカイブに
  80. 対応していますが,デフォルトの動作やプログラムオプション等一部が
  81. 異なります.
  82. %prep
  83. %setup -q -n %{src_file}
  84. %patch1 -p1 -b .bzip2-configure
  85. %patch2 -p1 -b .exec-shield
  86. %patch3 -p1 -b .close
  87. %patch4 -p1 -b .attribs-overflow
  88. %patch5 -p1 -b .nostrip
  89. %patch6 -p1 -b .manpage-fix
  90. %patch7 -p1 -b .recmatch
  91. %patch8 -p1 -b .symlink
  92. %patch9 -p1 -b .caseinsensitive
  93. %patch10 -p1 -b .format-secure
  94. %patch11 -p1 -b .valgrind
  95. %patch12 -p1 -b .x-option
  96. # security
  97. %patch100 -p1 -b .CVE-2014-8139
  98. %patch110 -p1 -b .CVE-2014-8140
  99. %patch120 -p1 -b .CVE-2014-8141
  100. %patch130 -p1 -b .CVE-2014-9636
  101. %patch17 -p1 -b .overflow-long-fsize
  102. %patch18 -p1 -b .heap-overflow-infloop
  103. %patch21 -p1 -b .cve-2016-9844
  104. %patch22 -p1 -b .timestamp
  105. %patch23 -p1 -b .cve-2018-1000035
  106. %patch24 -p1 -b .cve-2018-18384
  107. %patch200 -p1 -b .jp
  108. %patch201 -p1 -b .ignore-E
  109. %patch202 -p1 -b .utf8
  110. ln -s unix/Makefile Makefile
  111. %build
  112. make LOCAL_UNZIP="-D_FILE_OFFSET_BITS=64 -DNO_LCHMOD -D_MBCS -DNO_WORKING_ISPRINT" linux_noasm
  113. %install
  114. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  115. make prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1 install LF2=""
  116. %clean
  117. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  118. %files
  119. %defattr(-,root,root)
  120. %doc README BUGS LICENSE INSTALL
  121. %{_bindir}/*
  122. %{_mandir}/*/*
  123. %changelog
  124. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.0-5
  125. - imported Patch17-18, 21-24 from rawhide.
  126. - replaced Patch100-120 to rawhide's one.
  127. * Sun Feb 8 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 6.0-4
  128. - add Patch130 for CVE-2014-9636 (heap overflow)
  129. * Sun Jan 18 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.0-3
  130. - add Patch100 for fix CVE-2014-8139 (crc-overflow)
  131. - add Patch110 for fix CVE-2014-8140 (test-compr-eb)
  132. - add Patch120 for fix CVE-2014-8141 (getzip64data)
  133. - add Patch9-12 from fc22
  134. * Thu Jul 03 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-2
  135. - add patch202 to support ja_JP.utf8
  136. * Thu May 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.0-1
  137. - update to 6.0
  138. - replace nls patch.
  139. * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 5.52-3vl6
  140. - build on current VineSeed
  141. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2
  142. - spec in utf-8
  143. - add NLS patch
  144. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1
  145. - new upstream release
  146. - add patch13 from fc8
  147. - update patches to fit new release & drop old patches
  148. - with new versioning polity
  149. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4
  150. - fix changelog typo
  151. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4
  152. - update patch100 to fix ppc issue (it was patch5, from rhel4)
  153. - renumber patchs
  154. - add patch 2,3 to support big archive (from rhel4)
  155. - with new versioning polity
  156. * Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1
  157. - add patch5 for fix CVE-2005-4667
  158. - add patch6 for fix CVE-2008-0888
  159. - add Vendor/Distribution tag
  160. * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1
  161. - new upstream release
  162. - based on 5.51-9 Fedora development
  163. * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
  164. - fix the other problem with unpacking zipfiles containing symlinks
  165. (bug #134073)
  166. * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
  167. - fix segfault with unpacking of zipfiles containing dangling symlinks
  168. (bug #134073)
  169. * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
  170. - Fix segfault on extraction of symlinks
  171. * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
  172. - Extend max file/archive size to 2^32-8193 (4294959103) bytes
  173. * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
  174. - Update to 5.51; remove dotdot patch.
  175. * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2
  176. - merged patch1 from Vine Linux 2.6 updates
  177. - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3
  178. - replace patch1 from RedHat (RHSA-2003:199-02).
  179. - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2
  180. - added patch1 from Redhat (RHSA-2003:199-01)
  181. * Sun Dec 1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1
  182. - modified changelog section :-P (merge rawhidee changelogs)
  183. - Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2
  184. - rebuild with new toolchains
  185. - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1
  186. - based on 5.50-4 from Rawhide
  187. - previous Vine version was 5.41-3vl1:
  188. - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  189. - 5.41-3vl1
  190. - based on 5.41-3 from Rawhide
  191. - added Japanese summary and description
  192. - use better macros
  193. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  194. - automated rebuild
  195. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  196. - automated rebuild
  197. * Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3
  198. - Rebuild
  199. * Tue Apr 2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2
  200. - Make it not strip
  201. * Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1
  202. - 5.50
  203. * Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3
  204. - Rebuild
  205. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  206. - automated rebuild
  207. * Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com>
  208. - 5.42
  209. - Don't strip binaries explicitly
  210. - build without assembly, it doesn't seem to increase performance
  211. - make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
  212. - use %%{_tmppath}
  213. - "License:" replaces "Copyright:"
  214. - Update URL
  215. - include zipgrep
  216. - COPYING doesn't exist anymore, include LICENSE instead
  217. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  218. - automatic rebuild
  219. * Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
  220. - rebuild in new env.; FHS fixes.
  221. * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  222. - 4.51 (an acceptable license at last...)
  223. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  224. - handle compressed man pages
  225. * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
  226. - update to 5.40
  227. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  228. - auto rebuild in the new build environment (release 5)
  229. * Thu Dec 17 1998 Michael Maher <mike@redhat.com>
  230. - built for 6.0
  231. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  232. - build root
  233. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  234. - translations modified for de, fr, tr
  235. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  236. - builds on non i386 platforms
  237. * Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
  238. - updated the version
  239. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  240. - built against glibc