unzip-vl.spec 7.7 KB

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