gzip-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. Summary: The GNU data compression program.
  2. Summary(ja): GNU データ圧縮プログラム
  3. Name: gzip
  4. Version: 1.3.13
  5. Release: 2%{?_dist_release}
  6. License: GPLv3+ and GFDL
  7. Group: Applications/Archiving
  8. URL: http://www.gzip.org/
  9. Source: ftp://alpha.gnu.org/gnu/gzip/gzip-%{version}.tar.gz
  10. Patch0: gzip-1.3.12-openbsd-owl-tmp.patch
  11. Patch1: gzip-1.3.5-zforce.patch
  12. Patch3: gzip-1.3.9-stderr.patch
  13. Patch4: gzip-1.3.10-zgreppipe.patch
  14. Patch5: gzip-1.3.13-rsync.patch
  15. Patch7: gzip-1.3.9-addsuffix.patch
  16. Patch14: gzip-1.3.5-cve-2006-4338.patch
  17. Patch15: gzip-1.3.13-cve-2006-4337.patch
  18. Patch16: gzip-1.3.5-cve-2006-4337_len.patch
  19. Patch19: gzip-1.3.12-CVE-2010-0001.patch
  20. Prereq: install-info
  21. Requires: mktemp less
  22. Buildroot: %{_tmppath}/%{name}-%{version}-root
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. %description
  26. The gzip package contains the popular GNU gzip data compression
  27. program. Gzipped files have a .gz extension.
  28. Gzip should be installed on your Red Hat Linux system, because it is a
  29. very commonly used data compression program.
  30. %description -l ja
  31. gzip パッケージには有名な GNU gzip データ圧縮プログラムが収められています.
  32. gzip で圧縮されたファイルには .gz の拡張子がつきます.
  33. gzip は大変一般的に使われる圧縮プログラムなので,Red Hat Linux システムには
  34. 是非ともインストールされている必要があります.
  35. %prep
  36. %setup -q
  37. %patch0 -p1 -b .owl-tmp
  38. %patch1 -p1 -b .zforce
  39. %patch3 -p1 -b .stderr
  40. %patch4 -p1 -b .nixi
  41. %patch5 -p1 -b .rsync
  42. %patch7 -p1 -b .addsuffix
  43. %patch14 -p1 -b .4338
  44. %patch15 -p1 -b .4337
  45. %patch16 -p1 -b .4337_len
  46. %patch19 -p1 -b .CVE-2010-0001
  47. %build
  48. export DEFS="-DNO_ASM"
  49. export CPPFLAGS="-DHAVE_LSTAT"
  50. %configure --bindir=/bin
  51. make %{?_smp_mflags}
  52. # make
  53. # make gzip.info
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. %makeinstall bindir=$RPM_BUILD_ROOT/bin
  59. mkdir -p $RPM_BUILD_ROOT/usr/bin
  60. ln -sf ../../bin/gzip $RPM_BUILD_ROOT/usr/bin/gzip
  61. ln -sf ../../bin/gunzip $RPM_BUILD_ROOT/usr/bin/gunzip
  62. for i in zcmp zegrep zforce zless znew gzexe zdiff zfgrep zgrep zmore ; do
  63. mv $RPM_BUILD_ROOT/bin/$i $RPM_BUILD_ROOT/usr/bin/$i
  64. done
  65. gzip -9nf $RPM_BUILD_ROOT%{_infodir}/gzip.info*
  66. # we don't ship it, so let's remove it from ${RPM_BUILD_ROOT}
  67. rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
  68. # uncompress is a part of ncompress package
  69. rm -f ${RPM_BUILD_ROOT}/bin/uncompress
  70. cat > $RPM_BUILD_ROOT%{_bindir}/zless <<EOF
  71. #!/bin/sh
  72. /bin/zcat "\$@" | /usr/bin/less
  73. EOF
  74. chmod 755 $RPM_BUILD_ROOT%{_bindir}/zless
  75. %post
  76. /sbin/install-info %{_infodir}/gzip.info.gz %{_infodir}/dir
  77. %preun
  78. if [ $1 = 0 ]; then
  79. /sbin/install-info --delete %{_infodir}/gzip.info.gz %{_infodir}/dir
  80. fi
  81. %files
  82. %defattr(-,root,root)
  83. %doc NEWS README AUTHORS ChangeLog THANKS TODO
  84. /bin/*
  85. %{_bindir}/*
  86. %{_mandir}/*/*
  87. %{_infodir}/gzip.info*
  88. %changelog
  89. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.13-2
  90. - build on current VineSeed
  91. * Thu Feb 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.13-1
  92. - new upstream release
  93. * Fri Jan 22 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  94. - add patch18 for fix CVE-2009-2624 (decompressing dynamic Huffman code)
  95. - add patch19 for fix CVE-2010-0001 (unlzw)
  96. * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.12-2
  97. - spec in utf-8
  98. * Wed Mar 26 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.12-1
  99. - new upstream release
  100. - drop old patches and update patches to fit new release
  101. - add Vendor/Distribution tag
  102. - add smp_mflags into make section
  103. - remove uncompress (uncompress is a part of ncompress package)
  104. - build under new versioning policy
  105. * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-6vl3
  106. - [security fix] add patches to fix several vulnerabilities
  107. - cve-2006-4334 - null dereference problem
  108. - cve-2006-4335 - buffer overflow problem
  109. - cve-2006-4336 - buffer underflow problem
  110. - cve-2006-4338 - infinite loop problem
  111. - cve-2006-4337 - buffer overflow problem
  112. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.5-6vl2
  113. - changed Group to Applications/Archiving
  114. * Fri May 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.5-6vl1
  115. - based on 1.3.5-6 from Fedora
  116. * Fri Apr 29 2005 Ivana Varekova <varekova@redhat.com> 1.3.5-5
  117. - fix bug 156269 - CAN-2005-1228 directory traversal bug
  118. (using the patch from Ulf Harnhammar)
  119. * Tue Apr 26 2005 Ivana Varekova <varekova@redhat.com> 1.3.5-4
  120. - fix bug 155746 - CAN-2005-0988 Race condition in gzip (patch9)
  121. * Tue Mar 22 2005 Tomas Mraz <tmraz@redhat.com> 1.3.5-2
  122. - upstream 1.3.5
  123. - dropped long ago obsolete dirinfo patch
  124. - escape file names in zgrep (#123012)
  125. - make stack in match.S nonexecutable
  126. * Mon Dec 13 2004 Ivana Varekova <varekova@redhat.com>
  127. - fix bug #106551 problem with zmore which requires the suffix .gz
  128. in file name
  129. * Fri Jan 31 2003 Jeff Johnson <jbj@redhat.com> 1.3.3-9
  130. - enlarge window buffer to avoid accessing beyond end-of-buffer
  131. (#78413,#83095).
  132. - re-enable rsync ready patch.
  133. * Fri May 2 2003 IWAI Masaharu <iwai@alib.jp> 1.3.2-2vl2
  134. - rebuild with new toolchain
  135. - fix typo in %%changelog
  136. * Mon Jan 14 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.2-2vl1
  137. - based on 1.3.2-2 from Rawhide and rebuilt for Vine Linux
  138. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  139. - automated rebuild
  140. * Mon Nov 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.3.2-1
  141. - 1.3.2: no need for autoconf 2.5x hacks anymore
  142. * Sat Nov 17 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  143. - update to 1.3.1:
  144. - disable patch2
  145. * Fri Oct 26 2001 Trond Eivind Glomsr <teg@redhat.com> 1.3.0-16
  146. - replace tempfile patches with improved ones solar@openwall.com
  147. - Add less to the dependency chain - zless needs it
  148. * Thu Aug 23 2001 Trond Eivind Glomsr <teg@redhat.com> 1.3.0-15
  149. - Fix typo in comment in zgrep (#52465)
  150. - Copyright -> License
  151. * Tue Jun 5 2001 Trond Eivind Glomsr <teg@redhat.com>
  152. - Patch various uses of $$ in the bundled scripts
  153. * Mon Jun 4 2001 Trond Eivind Glomsr <teg@redhat.com>
  154. - Fix the SIGPIPE patch to avoid blank lines (#43319)
  155. * Thu Feb 08 2001 Philipp Knirsch <pknirsch@redhat.de>
  156. - Fixed buzilla bug #26680. Wrong skip value after mktemp patch and forced
  157. overwrite for output file during decompression.
  158. * Tue Jan 30 2001 Trond Eivind Glomsr <teg@redhat.com>
  159. - trap SIGPIPE in zgrep, so "zgrep | less" gets a happy ending
  160. (#24104)
  161. * Sun Dec 10 2000 Trond Eivind Glomsr <teg@redhat.com>
  162. - add HAVE_LSTAT define, to avoid it doing weird things to symlinks
  163. instead of ignoring them as the docs say it should (#22045)
  164. * Fri Dec 01 2000 Trond Eivind Glomsr <teg@redhat.com>
  165. - rebuild
  166. * Thu Nov 09 2000 Trond Eivind Glomsr <teg@redhat.com>
  167. - patch all scripts so usage error messages are written to
  168. stderr (#20597)
  169. * Mon Oct 30 2000 Trond Eivind Glomsr <teg@redhat.com>
  170. - disable assembly, as it is faster without it (bug #19910)
  171. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  172. - automatic rebuild
  173. * Tue Jun 27 2000 Trond Eivind Glomsr <teg@redhat.com>
  174. - rebuild
  175. * Wed Jun 07 2000 Trond Eivind Glomsr <teg@redhat.com>
  176. - Use %%{_mandir}, %%{_infodir}, %%configure, %%makeinstall
  177. and %%{_tmppath}
  178. * Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com>
  179. - Add root as default owner of the files, permits building
  180. as non-root user
  181. * Wed May 10 2000 Trond Eivind Glomsr <teg@redhat.com>
  182. - Build system handles stripping
  183. - Don't do thing the system does, like creating directories
  184. - use --bindir /bin
  185. - Added URL
  186. - skip unnecesarry sed step
  187. - Include THANKS, AUTHORS, ChangeLog, TODO
  188. * Mon Mar 20 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  189. - 1.3
  190. - handle RPM_OPT_FLAGS
  191. * Tue Feb 15 2000 Cristian Gafton <gafton@redhat.com>
  192. - handle compressed man pages even better
  193. * Tue Feb 08 2000 Cristian Gafton <gafton@redhat.com>
  194. - adopt patch from Paul Eggert to fix detection of the improper tables in
  195. inflate.c(huft_build)
  196. - the latest released version 1.2.4a, which provides documentation updates
  197. only. But it lets us use small revision numbers again
  198. - add an dirinfo entry for gzip.info so we can get rid of the ugly --entry
  199. args to install-info
  200. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  201. - handle compressed manpages
  202. * Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
  203. - Fix bug #7970
  204. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  205. - auto rebuild in the new build environment (release 14)
  206. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  207. - built against gliibc 2.1
  208. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  209. - translations modified for de, fr, tr
  210. * Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
  211. - added /usr/bin/gzip and /usr/bin/gunzip symlinks as some programs are too
  212. brain dead to figure out they should be at least trying to use $PATH
  213. - added BuildRoot
  214. * Wed Jan 28 1998 Erik Troan <ewt@redhat.com>
  215. - fix /tmp races
  216. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  217. - uses install-info
  218. - applied patch for gzexe
  219. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  220. - built against glibc
  221. * Tue Apr 22 1997 Marc Ewing <marc@redhat.com>
  222. - (Entry added for Marc by Erik) fixed gzexe to use /bin/gzip