unzip-vl.spec 7.9 KB

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