bzip2-vl.spec 8.7 KB

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