unzip-vl.spec 7.0 KB

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