%lib_package lzo2 2 %lib_package minilzo 2 Summary: A real-time data compression library Name: lzo Version: 2.03 Release: 6%{?dist} Group: System Environment/Libraries License: GPLv2+ Source0: http://www.oberhumer.com/opensource/lzo/download/lzo-%{version}.tar.gz Patch0: lzo-2.03-minilzoshared.patch URL: http://www.oberhumer.com/opensource/lzo/ BuildRoot: %{_tmppath}/%{name}-%{version}-root #BuildRequires: automake19 BuildRequires: gcc-c++ Provides: lzo-minilzo = %{evr} Obsoletes: lzo-minilzo < %{evr} %description LZO is a portable lossless data compression library written in ANSI C. It implements a number of algorithms with the following features: - Decompression is simple and *very* fast. - Requires no memory for decompression. - Compression is pretty fast. - Requires 64 kB of memory for compression. - Allows you to dial up extra compression at a speed cost in the compressor. The speed of the decompressor is not reduced. - Includes compression levels for generating pre-compressed data which achieve a quite competitive compression ratio. - There is also a compression level which needs only 8 kB for compression. - Supports overlapping compression and in-place decompression. - Algorithm is thread safe. - Algorithm is lossless. %prep %setup -q %patch0 -p1 -b .minilzoshared #grep -rl _AC_SRCPATHS . | xargs echo perl -pi -e's,_AC_SRCPATHS,_AC_SRCDIRS,' | sh -x #perl -pi -e's,CFLAGS,AM_CFLAGS,' src/Makefile.am #perl -pi -e's,CPPFLAGS,AM_CPPFLAGS,' src/Makefile.am %build #automake-1.9 minilzo/Makefile %configure --enable-shared --disable-static make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS BUGS NEWS README THANKS doc/LZO.FAQ %doc doc/LZO.TXT doc/LZOAPI.TXT %changelog * Thu Aug 28 2008 root - 2.03-5 - Update to 2.03. * Sat Jun 14 2008 Axel Thimm - 2.02-4.0.1 - Fix not utf-8 specfile entries. * Wed Jun 6 2007 Axel Thimm - 2.02-4 - Updgrade to 2.02. * Mon Oct 30 2006 Axel Thimm - 1.08-3 - Use %%lib methods to create proper compat subpackage. * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. - Now exclude .la file. * Tue Feb 18 2003 Matthias Saou - Spec file cleanup for Red Hat Linux 8.0. * Sat Feb 15 2003 José Romildo Malaquias 1.08-1 - First spec file