Summary: A real-time data compression library. Name: lzo Version: 2.02 Release: 2 Group: System Environment/Libraries License: GPL Source: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz URL: http://www.oberhumer.com/opensource/lzo/ BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package devel Summary: Development files for the lzo compression library. Group: Development/Libraries Requires: %{name} = %{version} %description devel LZO is a portable lossless data compression library written in ANSI C. It implements a number of algorithms with many features. Install the package if you need to build programs that will use the lzo compression library. %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="xlc -q64" export CFLAGS="-O2" ./configure \ --prefix=/opt/freeware \ --enable-shared --disable-static make %{?_smp_mflags} cp src/.libs/liblzo2.so.2 . make distclean # now build the 32-bit version export CC="xlc" ./configure \ --prefix=/opt/freeware \ --enable-shared --disable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/.libs/liblzo2.a ./liblzo2.so.2 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,system) %doc AUTHORS BUGS NEWS README THANKS doc/LZO.FAQ %{_libdir}/liblzo2.a %files devel %defattr(-,root,system) %doc doc/LZO.TXT doc/LZOAPI.TXT %{_includedir}/* %{_libdir}/liblzo2.la %changelog * Thu Jan 03 2008 Michael Perzl - 2.02-2 - included both 32-bit and 64-bit shared objects * Tue Jan 03 2006 Michael Perzl - 2.02-1 - first version for AIX V5.1 and higher