unzip-vl.spec 9.1 KB

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