unzip-vl.spec 8.8 KB

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