bzip2-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define buildpdf 0
  3. Summary: A file compression utility.
  4. Summary(ja): ファイル圧縮ユーティリティ
  5. Name: bzip2
  6. Version: 1.0.6
  7. Release: 4%{?_dist_release}
  8. License: BSD
  9. Group: Applications/Archiving
  10. URL: http://www.bzip.org/
  11. Source: http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz
  12. Patch0: bzip2-1.0.5-autoconflibtoolize.patch
  13. Patch1: bzip2-1.0.4-saneso.patch
  14. Patch2: bzip2-1.0.4-cflags.patch
  15. Patch3: bzip2-1.0.4-bzip2recover.patch
  16. # P2 implements a progress counter (in %). It also
  17. # display the percentage of the original file the new file is (size).
  18. # URL: http://www.vanheusden.com/Linux/bzip2-1.0.2.diff.gz
  19. Patch10: bzip2-1.0.2.diff.bz2
  20. # security patch(es)
  21. Patch1000: CVE-2016-3189.patch
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. %if %buildpdf
  24. BuildRequires: tetex-dvips tetex-latex
  25. %endif
  26. BuildRequires: texinfo
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. %description
  30. Bzip2 is a freely available, patent-free, high quality data compressor.
  31. Bzip2 compresses files to within 10 to 15 percent of the capabilities
  32. of the best techniques available. However, bzip2 has the added benefit
  33. of being approximately two times faster at compression and six times
  34. faster at decompression than those techniques. Bzip2 is not the
  35. fastest compression utility, but it does strike a balance between speed
  36. and compression capability.
  37. Install bzip2 if you need a compression utility.
  38. %package devel
  39. Summary: Header files and libraries for developing apps which will use bzip2.
  40. Summary(ja): bzip2 を使うプログラム開発に必要なヘッダファイルとライブラリ
  41. Group: Development/Libraries
  42. Requires: %{name} = %{version}-%{release}
  43. %description devel
  44. Header files and a static library of bzip2 functions, for developing apps
  45. which will use the library.
  46. ## to build compat32 for x86_64 architecture support
  47. %package -n compat32-%{name}
  48. Summary: A file compression utility.
  49. Summary(ja): ファイル圧縮ユーティリティ
  50. Group: System Environment/Libraries
  51. Requires: %{name} = %{version}-%{release}
  52. %description -n compat32-%{name}
  53. Bzip2 is a freely available, patent-free, high quality data compressor.
  54. Bzip2 compresses files to within 10 to 15 percent of the capabilities
  55. of the best techniques available. However, bzip2 has the added benefit
  56. of being approximately two times faster at compression and six times
  57. faster at decompression than those techniques. Bzip2 is not the
  58. fastest compression utility, but it does strike a balance between speed
  59. and compression capability.
  60. Install bzip2 if you need a compression utility.
  61. %package -n compat32-%{name}-devel
  62. Summary: Header files and libraries for developing apps which will use bzip2.
  63. Summary(ja): bzip2 を使うプログラム開発に必要なヘッダファイルとライブラリ
  64. Group: Development/Libraries
  65. Requires: compat32-%{name} = %{version}-%{release}
  66. Requires: %{name}-devel = %{version}-%{release}
  67. %description -n compat32-%{name}-devel
  68. Header files and a static library of bzip2 functions, for developing apps
  69. which will use the library.
  70. %prep
  71. %setup -q
  72. %patch0 -p1 -b .autoconf
  73. %patch1 -p1 -b .saneso
  74. %patch2 -p1 -b .cflags
  75. %patch3 -p1 -b .bz2recover
  76. %patch10 -p1
  77. %patch1000 -p1 -b .CVE-2016-3189
  78. cp CHANGES ChangeLog
  79. mv CHANGES NEWS
  80. mv LICENSE COPYING
  81. cp m4/largefile.m4 .
  82. chmod a+x configure
  83. libtoolize -f --automake
  84. aclocal
  85. autoconf
  86. automake -a --foreign
  87. autoheader
  88. %build
  89. %configure --libdir=%{_libdir} --enable-shared --disable-static
  90. make
  91. %if %buildpdf
  92. texi2dvi --pdf manual.texi
  93. %endif
  94. %install
  95. rm -rf %{buildroot}
  96. %makeinstall
  97. cp bzgrep %{buildroot}%{_bindir}
  98. chmod 0755 %{buildroot}%{_bindir}/bzgrep
  99. rm -f %{buildroot}%{_libdir}/*.{a,la}
  100. %post -p /sbin/ldconfig
  101. %postun -p /sbin/ldconfig
  102. %post -n compat32-%{name} -p /sbin/ldconfig
  103. %postun -n compat32-%{name} -p /sbin/ldconfig
  104. %clean
  105. rm -rf %{buildroot}
  106. %files
  107. %defattr(-,root,root)
  108. %{!?_licensedir:%global license %%doc}
  109. %license COPYING
  110. %doc AUTHORS README README.COMPILATION.PROBLEMS NEWS ChangeLog
  111. %{_bindir}/*
  112. %{_mandir}/*/*
  113. %{_libdir}/*so.*
  114. %files devel
  115. %defattr(-,root,root)
  116. %{_includedir}/*
  117. %{_libdir}/*so
  118. ## to build compat32 for x86_64 architecture support
  119. %if %{build_compat32}
  120. %files -n compat32-%{name}
  121. %defattr(-,root,root)
  122. %{_libdir}/*so.*
  123. %files -n compat32-%{name}-devel
  124. %defattr(-,root,root)
  125. %{_libdir}/*so
  126. %endif
  127. %changelog
  128. * Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.6-4
  129. - fixed %%files.
  130. * Tue Jul 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.6-3
  131. - added Patch1000 to fix CVE-2016-3189.
  132. * Wed Jan 1 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.6-2
  133. - rebuilt with new vineseed toolchain
  134. * Sat Jul 14 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1
  135. - update to 1.0.6
  136. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 1.0.5-5vl6
  137. - build on current VineSeed
  138. - update URL and Source0 tags URL
  139. * Thu Feb 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-4
  140. - rebuild with new toolchain
  141. * Sun Jul 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.5-3
  142. - updated Patch0: bzip2-1.0.5-autoconflibtoolize.patch
  143. - removed unneccesary %if !%{build_compat32} case condition
  144. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-2
  145. - spec in utf-8
  146. - remove static library
  147. * Thu Mar 20 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.5-1
  148. - new upstream release with security fix
  149. - drop old patches (patch3-6) which are included in new release
  150. - build under new versioning policy
  151. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl2
  152. - changed Group to Applications/Archiving
  153. - changed compat32-bzip2 Group to System Environment/Libraries
  154. * Tue Feb 21 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.3-0vl1
  155. - new upstream release
  156. - add Patch3-6 from Fedora Core (includes CAN-2005-0758/0953)
  157. * Sun Feb 12 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl5
  158. - fixed %%postun (missing to build as scriptlet by invalid comment)
  159. * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl4
  160. - moved macros (_lib, gcc -m32) to /usr/lib/rpm/rpmrc or macros files
  161. * Fri Feb 03 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl3
  162. - added compat32- packages for x86_64 architecture support
  163. - changed autoconf-2.13 to current autoconf
  164. * Mon May 05 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.2-0vl2
  165. - added patch 1 from Rawhide 1.0.2-8
  166. - added patch 2 from Mandrake 1.0.2-14mdk
  167. * Sun Sep 29 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.0.2-0vl1
  168. - previous patch is so incomplete that "bzip2 -f" fails.
  169. instead, update the source which fixes this and other bugs.
  170. * Fri May 24 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
  171. - fix race condition.
  172. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  173. - 1.0.1-3vl2
  174. - added Japanese summary
  175. - rebuilt under new %%{_mandir} definition
  176. * Sun Nov 19 2000 Satoshi MACHINO <machino@vinelinux.org> 1.0.1-3vl1
  177. - build on Vine Linux with gcc-2.95.3
  178. - partially used rpmmacros
  179. * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com>
  180. - new URL and source location
  181. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  182. - automatic rebuild
  183. * Sat Jul 01 2000 Trond Eivind Glomsr <teg@redhat.com>
  184. - 1.0.1
  185. - ported my patch
  186. * Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
  187. - FHS packaging to build on solaris2.5.1.
  188. - remove config.cache from autoconf patch.
  189. - sparc: use %%configure, but not the m4 macros.
  190. * Tue Jun 06 2000 Trond Eivind Glomsr <teg@redhat.com>
  191. - Use %%configure, %%makeinstall, %%{_manpath} and %%{_tmpdir}
  192. * Wed May 17 2000 Trond Eivind Glomsr <teg@redhat.com>
  193. - 1.0.0 - ported my 1.0pre8 libtoolizedautoconf patch
  194. * Tue May 16 2000 Trond Eivind Glomsr <teg@redhat.com>
  195. - use soft links, not hardlinks, for binaries
  196. - mv .so to devel
  197. * Mon May 15 2000 Trond Eivind Glomsr <teg@redhat.com>
  198. - autoconfed and libtoolized package
  199. - fixed Copyright (it's BSD, not GPL)
  200. - dumped bzless (less works fine with bz2-files)
  201. - rewrote build and install parts
  202. - separated main package and devel package
  203. * Mon May 8 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  204. - 1.0pre8
  205. * Fri Apr 14 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  206. - Add bzgrep (a version of zgrep hacked to do bzip2)
  207. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  208. - handle compressed manpages
  209. * Fri Dec 31 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  210. - 0.9.5d
  211. - Update download URL, add URL: tag in header
  212. * Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
  213. - upgrade to 0.9.5c.
  214. * Mon Aug 9 1999 Bill Nottingham <notting@redhat.com>
  215. - install actual bzip2 binary, not libtool cruft.
  216. * Sun Aug 8 1999 Jeff Johnson <jbj@redhat.com>
  217. - run ldconfig to get shared library.
  218. * Mon Aug 2 1999 Jeff Johnson <jbj@redhat.com>
  219. - create shared libbz1.so.* library.
  220. * Sun Apr 4 1999 Jeff Johnson <jbj@redhat.com>
  221. - update to bzip2-0.9.0c.
  222. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  223. - auto rebuild in the new build environment (release 4)
  224. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  225. - build against glibc 2.1
  226. * Wed Sep 30 1998 Cristian Gafton <gafton@redhat.com>
  227. - force compilation with egcs to avoid gcc optimization bug (thank God
  228. we haven't been beaten by it)
  229. * Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
  230. - version 0.9.0b
  231. * Tue Sep 08 1998 Cristian Gafton <gafton@redhat.com>
  232. - updated to 0.9.0
  233. * Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
  234. - first build for Manhattan