bzip2-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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: 4%{?_dist_release}
  8. License: BSD
  9. Group: Applications/Archiving
  10. URL: http://sources.redhat.com/bzip2/
  11. Source: ftp://sources.redhat.com/pub/bzip2/v100/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. * Thu Feb 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-4
  125. - rebuild with new toolchain
  126. * Sun Jul 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.5-3
  127. - updated Patch0: bzip2-1.0.5-autoconflibtoolize.patch
  128. - removed unneccesary %if !%{build_compat32} case condition
  129. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-2
  130. - spec in utf-8
  131. - remove static library
  132. * Thu Mar 20 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.5-1
  133. - new upstream release with security fix
  134. - drop old patches (patch3-6) which are included in new release
  135. - build under new versioning policy
  136. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-0vl2
  137. - changed Group to Applications/Archiving
  138. - changed compat32-bzip2 Group to System Environment/Libraries
  139. * Tue Feb 21 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.3-0vl1
  140. - new upstream release
  141. - add Patch3-6 from Fedora Core (includes CAN-2005-0758/0953)
  142. * Sun Feb 12 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl5
  143. - fixed %%postun (missing to build as scriptlet by invalid comment)
  144. * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl4
  145. - moved macros (_lib, gcc -m32) to /usr/lib/rpm/rpmrc or macros files
  146. * Fri Feb 03 2006 Shu KONNO <owa@bg.wakwak.com> 1.0.2-0vl3
  147. - added compat32- packages for x86_64 architecture support
  148. - changed autoconf-2.13 to current autoconf
  149. * Mon May 05 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.2-0vl2
  150. - added patch 1 from Rawhide 1.0.2-8
  151. - added patch 2 from Mandrake 1.0.2-14mdk
  152. * Sun Sep 29 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.0.2-0vl1
  153. - previous patch is so incomplete that "bzip2 -f" fails.
  154. instead, update the source which fixes this and other bugs.
  155. * Fri May 24 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
  156. - fix race condition.
  157. * Mon Jan 08 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  158. - 1.0.1-3vl2
  159. - added Japanese summary
  160. - rebuilt under new %%{_mandir} definition
  161. * Sun Nov 19 2000 Satoshi MACHINO <machino@vinelinux.org> 1.0.1-3vl1
  162. - build on Vine Linux with gcc-2.95.3
  163. - partially used rpmmacros
  164. * Fri Jul 21 2000 Trond Eivind Glomsr <teg@redhat.com>
  165. - new URL and source location
  166. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  167. - automatic rebuild
  168. * Sat Jul 01 2000 Trond Eivind Glomsr <teg@redhat.com>
  169. - 1.0.1
  170. - ported my patch
  171. * Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
  172. - FHS packaging to build on solaris2.5.1.
  173. - remove config.cache from autoconf patch.
  174. - sparc: use %%configure, but not the m4 macros.
  175. * Tue Jun 06 2000 Trond Eivind Glomsr <teg@redhat.com>
  176. - Use %%configure, %%makeinstall, %%{_manpath} and %%{_tmpdir}
  177. * Wed May 17 2000 Trond Eivind Glomsr <teg@redhat.com>
  178. - 1.0.0 - ported my 1.0pre8 libtoolizedautoconf patch
  179. * Tue May 16 2000 Trond Eivind Glomsr <teg@redhat.com>
  180. - use soft links, not hardlinks, for binaries
  181. - mv .so to devel
  182. * Mon May 15 2000 Trond Eivind Glomsr <teg@redhat.com>
  183. - autoconfed and libtoolized package
  184. - fixed Copyright (it's BSD, not GPL)
  185. - dumped bzless (less works fine with bz2-files)
  186. - rewrote build and install parts
  187. - separated main package and devel package
  188. * Mon May 8 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  189. - 1.0pre8
  190. * Fri Apr 14 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  191. - Add bzgrep (a version of zgrep hacked to do bzip2)
  192. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  193. - handle compressed manpages
  194. * Fri Dec 31 1999 Bernhard Rosenkr舅zer <bero@redhat.com>
  195. - 0.9.5d
  196. - Update download URL, add URL: tag in header
  197. * Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
  198. - upgrade to 0.9.5c.
  199. * Mon Aug 9 1999 Bill Nottingham <notting@redhat.com>
  200. - install actual bzip2 binary, not libtool cruft.
  201. * Sun Aug 8 1999 Jeff Johnson <jbj@redhat.com>
  202. - run ldconfig to get shared library.
  203. * Mon Aug 2 1999 Jeff Johnson <jbj@redhat.com>
  204. - create shared libbz1.so.* library.
  205. * Sun Apr 4 1999 Jeff Johnson <jbj@redhat.com>
  206. - update to bzip2-0.9.0c.
  207. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  208. - auto rebuild in the new build environment (release 4)
  209. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  210. - build against glibc 2.1
  211. * Wed Sep 30 1998 Cristian Gafton <gafton@redhat.com>
  212. - force compilation with egcs to avoid gcc optimization bug (thank God
  213. we haven't been beaten by it)
  214. * Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
  215. - version 0.9.0b
  216. * Tue Sep 08 1998 Cristian Gafton <gafton@redhat.com>
  217. - updated to 0.9.0
  218. * Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
  219. - first build for Manhattan