unzip-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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: 2%{?_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. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.52-2
  73. - spec in utf-8
  74. - add NLS patch
  75. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.52-1
  76. - new upstream release
  77. - add patch13 from fc8
  78. - update patches to fit new release & drop old patches
  79. - with new versioning polity
  80. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-11vl4
  81. - fix changelog typo
  82. * Wed Apr 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-10vl4
  83. - update patch100 to fix ppc issue (it was patch5, from rhel4)
  84. - renumber patchs
  85. - add patch 2,3 to support big archive (from rhel4)
  86. - with new versioning polity
  87. * Fri Mar 21 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.51-9vl1.1
  88. - add patch5 for fix CVE-2005-4667
  89. - add patch6 for fix CVE-2008-0888
  90. - add Vendor/Distribution tag
  91. * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.51-9vl1
  92. - new upstream release
  93. - based on 5.51-9 Fedora development
  94. * Thu Feb 10 2005 Ivana Varekova <varekova@redhat.com> 5.51-9
  95. - fix the other problem with unpacking zipfiles containing symlinks
  96. (bug #134073)
  97. * Thu Feb 03 2005 Ivana Varekova <varekova@redhat.com> 5.51-8
  98. - fix segfault with unpacking of zipfiles containing dangling symlinks
  99. (bug #134073)
  100. * Thu Dec 02 2004 Lon Hohberger <lhh@redhat.com> 5.51-5
  101. - Fix segfault on extraction of symlinks
  102. * Mon Jun 21 2004 Lon Hohberger <lhh@redhat.com> 5.51-4
  103. - Extend max file/archive size to 2^32-8193 (4294959103) bytes
  104. * Tue Jun 08 2004 Lon Hohberger <lhh@redhat.com> 5.51-1.1
  105. - Update to 5.51; remove dotdot patch.
  106. * Tue Sep 23 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-5vl2
  107. - merged patch1 from Vine Linux 2.6 updates
  108. - Thu Aug 28 2003 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 5.50-4vl3
  109. - replace patch1 from RedHat (RHSA-2003:199-02).
  110. - Fri Jul 18 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 5.50-4vl2
  111. - added patch1 from Redhat (RHSA-2003:199-01)
  112. * Sun Dec 1 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.50-5vl1
  113. - modified changelog section :-P (merge rawhidee changelogs)
  114. - Sun Dec 1 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl2
  115. - rebuild with new toolchains
  116. - Sun May 26 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.50-4vl1
  117. - based on 5.50-4 from Rawhide
  118. - previous Vine version was 5.41-3vl1:
  119. - Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  120. - 5.41-3vl1
  121. - based on 5.41-3 from Rawhide
  122. - added Japanese summary and description
  123. - use better macros
  124. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  125. - automated rebuild
  126. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  127. - automated rebuild
  128. * Thu Apr 25 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-3
  129. - Rebuild
  130. * Tue Apr 2 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-2
  131. - Make it not strip
  132. * Wed Mar 13 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.50-1
  133. - 5.50
  134. * Thu Feb 21 2002 Trond Eivind Glomsr︰ <teg@redhat.com> 5.42-3
  135. - Rebuild
  136. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  137. - automated rebuild
  138. * Mon May 21 2001 Trond Eivind Glomsr︰ <teg@redhat.com>
  139. - 5.42
  140. - Don't strip binaries explicitly
  141. - build without assembly, it doesn't seem to increase performance
  142. - make it respect RPM_OPT_FLAGS, define _GNU_SOURCE
  143. - use %%{_tmppath}
  144. - "License:" replaces "Copyright:"
  145. - Update URL
  146. - include zipgrep
  147. - COPYING doesn't exist anymore, include LICENSE instead
  148. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  149. - automatic rebuild
  150. * Sun Jun 11 2000 BIll Nottingham <notting@redhat.com>
  151. - rebuild in new env.; FHS fixes.
  152. * Tue Apr 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  153. - 4.51 (an acceptable license at last...)
  154. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  155. - handle compressed man pages
  156. * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com>
  157. - update to 5.40
  158. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  159. - auto rebuild in the new build environment (release 5)
  160. * Thu Dec 17 1998 Michael Maher <mike@redhat.com>
  161. - built for 6.0
  162. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  163. - build root
  164. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  165. - translations modified for de, fr, tr
  166. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  167. - builds on non i386 platforms
  168. * Mon Oct 20 1997 Otto Hammersmith <otto@redhat.com>
  169. - updated the version
  170. * Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
  171. - built against glibc