lzo-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lzo
  3. Summary: Data compression library with very fast (de)compression
  4. Summary(ja): 高速なデータ圧縮ライブラリ
  5. Version: 2.03
  6. Release: 3%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: GPLv2+
  9. URL: http://www.oberhumer.com/opensource/lzo/
  10. Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
  11. Patch0: lzo-2.02-configure.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: zlib-devel
  14. %description
  15. LZO is a portable lossless data compression library written in ANSI C.
  16. It offers pretty fast compression and very fast decompression.
  17. Decompression requires no memory. In addition there are slower
  18. compression levels achieving a quite competitive compression ratio
  19. while still decompressing at this very high speed.
  20. %package minilzo
  21. Summary: Mini version of lzo for apps which don't need the full version
  22. Group: System Environment/Libraries
  23. %description minilzo
  24. A small (mini) version of lzo for embedding into applications which don't need
  25. full blown lzo compression support.
  26. %package devel
  27. Summary: Development files for the lzo library
  28. Summary(ja): lzo ライブラリの開発ファイル
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: %{name}-minilzo = %{version}-%{release}
  32. Requires: zlib-devel
  33. %description devel
  34. LZO is a portable lossless data compression library written in ANSI C.
  35. It offers pretty fast compression and very fast decompression.
  36. This package contains development files needed for lzo.
  37. %package -n compat32-%{name}
  38. Summary: Data compression library with very fast (de)compression
  39. Summary(ja): 高速なデータ圧縮ライブラリ
  40. Group: System Environment/Libraries
  41. %description -n compat32-%{name}
  42. LZO is a portable lossless data compression library written in ANSI C.
  43. It offers pretty fast compression and very fast decompression.
  44. Decompression requires no memory. In addition there are slower
  45. compression levels achieving a quite competitive compression ratio
  46. while still decompressing at this very high speed.
  47. %package -n compat32-%{name}-minilzo
  48. Summary: Mini version of lzo for apps which don't need the full version
  49. Group: System Environment/Libraries
  50. Requires: %{name}-minilzo = %{version}-%{release}
  51. %description -n compat32-%{name}-minilzo
  52. A small (mini) version of lzo for embedding into applications which don't need
  53. full blown lzo compression support.
  54. %package -n compat32-%{name}-devel
  55. Summary: Development files for the lzo library
  56. Summary(ja): lzo ライブラリの開発ファイル
  57. Group: Development/Libraries
  58. Requires: compat32-%{name} = %{version}-%{release}
  59. Requires: %{name}-minilzo = %{version}-%{release}
  60. Requires: compat32-zlib-devel
  61. %description -n compat32-%{name}-devel
  62. LZO is a portable lossless data compression library written in ANSI C.
  63. It offers pretty fast compression and very fast decompression.
  64. This package contains development files needed for lzo.
  65. %prep
  66. %setup -q
  67. %patch0 -p1 -z .configure
  68. # mark asm files as NOT needing execstack
  69. for i in asm/i386/src_gas/*.S; do
  70. echo '.section .note.GNU-stack,"",@progbits' >> $i
  71. done
  72. %build
  73. %configure --disable-dependency-tracking --disable-static --enable-shared
  74. make %{?_smp_mflags}
  75. # build minilzo too (bz 439979)
  76. gcc %{optflags} -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
  77. gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. make install DESTDIR=$RPM_BUILD_ROOT
  81. rm $RPM_BUILD_ROOT%{_libdir}/liblzo2.la
  82. install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}
  83. ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so
  84. install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo
  85. %check
  86. make check test
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %post -p /sbin/ldconfig
  90. %postun -p /sbin/ldconfig
  91. %post minilzo -p /sbin/ldconfig
  92. %postun minilzo -p /sbin/ldconfig
  93. %post -n compat32-%{name} -p /sbin/ldconfig
  94. %postun -n compat32-%{name} -p /sbin/ldconfig
  95. %post -n compat32-%{name}-minilzo -p /sbin/ldconfig
  96. %postun -n compat32-%{name}-minilzo -p /sbin/ldconfig
  97. %files
  98. %defattr(-,root,root,-)
  99. %doc AUTHORS COPYING THANKS NEWS
  100. %{_libdir}/liblzo2.so.*
  101. %files minilzo
  102. %defattr(-,root,root,-)
  103. %doc minilzo/README.LZO
  104. %{_libdir}/libminilzo.so.0
  105. %files devel
  106. %defattr(-,root,root,-)
  107. %doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT
  108. %{_includedir}/lzo
  109. %{_libdir}/lib*lzo*.so
  110. # compat32
  111. %if %{build_compat32}
  112. %files -n compat32-%{name}
  113. %defattr(-,root,root,-)
  114. %{_libdir}/liblzo2.so.*
  115. %files -n compat32-%{name}-minilzo
  116. %defattr(-,root,root,-)
  117. %{_libdir}/libminilzo.so.0
  118. %files -n compat32-%{name}-devel
  119. %defattr(-,root,root,-)
  120. %{_libdir}/lib*lzo*.so
  121. %endif
  122. %changelog
  123. * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.03-3
  124. - rebuilt with current VineSeed
  125. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.03-2
  126. - added compat32 package for x86_64 arch support
  127. * Fri Aug 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.03-1
  128. - initial build for Vine Linux
  129. * Thu May 1 2008 Lubomir Rintel <lkundrak@v3.sk> 2.03-1
  130. - New upstream release
  131. - Changed the license to GPLv2+
  132. * Wed Apr 2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-5
  133. - Fix configure failure with -Werror-implicit-function-declaration in CFLAGS
  134. - Add a minilzo subpackage which contains a shared version of minilzo, to be
  135. used by all applications which ship with their own copy of it (bz 439979)
  136. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.02-4
  137. - Autorebuild for GCC 4.3
  138. * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-3
  139. - Update License tag for new Licensing Guidelines compliance
  140. * Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-2
  141. - FE6 Rebuild
  142. * Wed Jul 26 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-1
  143. - New upstream release 2.02, soname change!
  144. * Mon Jul 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.08-7
  145. - Taking over as maintainer since Anvil has other priorities
  146. - Add a patch to fix asm detection on i386 (bug 145882, 145893). Thanks to
  147. Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> for the initial patch.
  148. - Removed unused build dependency on nasm
  149. - Remove static lib
  150. - Cleanup %%doc a bit
  151. * Thu Mar 16 2006 Dams <anvil[AT]livna.org> - 1.08-6.fc5
  152. - Rebuild for new gcc
  153. * Tue Jan 17 2006 Dams <anvil[AT]livna.org> - 1.08-5.fc5
  154. - Bumped release for gcc 4.1 rebuild
  155. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.08-4
  156. - rebuild on all arches
  157. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  158. - rebuilt
  159. * Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.08-0.fdr.2
  160. - Typo un devel description
  161. - Added post and postun scriptlets
  162. - Added URL in Source0
  163. * Fri Apr 25 2003 Dams <anvil[AT]livna.org>
  164. - Initial build.