%define name liblzo %define version 1.08 %define release 5mdk %define major 1 %define libname %mklibname lzo %{major} Name: %name Summary: Data compression library with very fast (de-)compression Version: %version Release: %release Source: lzo-%version.tar.bz2 Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-buildroot License: GPL URL: http://www.oberhumer.com/opensource/lzo/ %description LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and *very* fast decompression. Decompression requires no memory. In addition there are slower compression levels achieving a quite competitive compression ratio while still decompressing at this very high speed. %package -n %{libname} Summary: Data compression library with very fast (de-)compression Group: System/Libraries Provides: %name %description -n %{libname} LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and *very* fast decompression. Decompression requires no memory. In addition there are slower compression levels achieving a quite competitive compression ratio while still decompressing at this very high speed. %package -n %{libname}-devel Summary: Headers files of liblzo library Group: Development/C Requires: %{libname} = %version Provides: liblzo1-devel = %version-%release Provides: liblzo-devel = %version-%release %description -n %{libname}-devel LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and *very* fast decompression. Decompression requires no memory. In addition there are slower compression levels achieving a quite competitive compression ratio while still decompressing at this very high speed. %prep rm -rf $RPM_BUILD_ROOT %setup -q -n lzo-%version %build %configure2_5x --enable-shared %make make check make test %install %makeinstall %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -n %{libname} %defattr (-,root,root) %doc doc/* %doc AUTHORS COPYING INSTALL NEWS README THANKS %_libdir/*.so.* %files -n %{libname}-devel %defattr (-,root,root) %_libdir/*a %_libdir/*so %_includedir/* %changelog * Mon Feb 28 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.08-5mdk - fix provides * Thu Aug 19 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.08-4mdk - rebuild * Wed Jul 9 2003 Götz Waschk <waschk@linux-mandrake.com> 1.08-3mdk - rebuild for new rpm * Tue Apr 8 2003 Götz Waschk <waschk@linux-mandrake.com> 1.08-2mdk - fix doc files list - mklibname macro * Tue Jul 16 2002 Götz Waschk <waschk@linux-mandrake.com> 1.08-1mdk - autoconf 2.5 macro - new version * Sun May 26 2002 Götz Waschk <waschk@linux-mandrake.com> 1.07-5mdk - update url - move .la to devel package - fix provides, requires * Thu Jul 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.07-4mdk - rebuild * Thu Jan 18 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.07-3mdk - rebuild - make lib policy compliant * Thu Dec 28 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.07-2mdk - add url * Thu Dec 28 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.07-1mdk - new in contribs