%define oname lzma %define pre alpha %define major 2 %define libname %mklibname %{oname} %{major} %define libdev %mklibname -d %{oname} Summary: LZMA utils Name: %{oname}-utils Version: 4.999.6 Release: %mkrel %{?pre:0.%{pre}.}4 License: GPL Group: Archiving/Compression Source0: http://tukaani.org/lzma/%{oname}-%{version}%{?pre}.tar.lzma #Patch0: lzma-4.999.3alpha-use-lzma_alone-format-by-default.patch Patch1: lzma-4.999.6alpha-bump-liblzma-major.patch BuildRequires: zlib-devel diffutils #Obsoletes: lzma #Provides: lzma = %{version}-%{release} URL: http://tukaani.org/lzma/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description LZMA provides very high compression ratio and fast decompression. The core of the LZMA utils is Igor Pavlov's LZMA SDK containing the actual LZMA encoder/decoder. LZMA utils add a few scripts which provide gzip-like command line interface and a couple of other LZMA related tools. Also provides: - Average compression ratio 30% better than that of gzip and 15% better than that of bzip2. - Decompression speed is only little slower than that of gzip, being two to five times faster than bzip2. - In fast mode, compresses faster than bzip2 with a comparable compression ratio. - Achieving the best compression ratios takes four to even twelve times longer than with bzip2. However. this doesn't affect decompressing speed. - Very similar command line interface than what gzip and bzip2 have. %package -n %{libname} Summary: Libraries for decoding LZMA compression Group: System/Libraries License: LGPL %description -n %{libname} Libraries for decoding LZMA compression. %package -n %{libdev} Summary: Devel libraries & headers for liblzma Group: Development/C License: LGPL Provides: %{name}-devel = %{version}-%{release} Provides: lib%{oname}-devel = %{version}-%{release} Requires: %{libname} = %{version} %description -n %{libdev} Devel libraries & headers for liblzma. %prep %setup -q -n %{oname}-%{version}%{?pre} #%patch0 -p1 -b .lzma_alone %patch1 -p1 -b .bump_major %build CFLAGS="%{optflags} -O3 -funroll-loops" \ %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la %find_lang %{oname} # I'll omit the tools for now since it will replace old lzma utils version, # will do some more testing of it first to avoid breakage.. rm -rf %{buildroot}%{_bindir} %{buildroot}%{_mandir} # let's ship the lzma util with a different, non-conflicting name for people # to test. install -m755 src/lzma/lzma -D %{buildroot}%{_bindir}/%{name} %check make check %clean rm -rf %{buildroot} %files -f %{oname}.lang %defattr(-,root,root) %doc README THANKS %{_bindir}/* #%{_mandir}/man1/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib*.so.%{major}* %files -n %{libdev} %defattr(644,root,root,755) %defattr(-,root,root) %{_includedir}/%{oname}.h %dir %{_includedir}/%{oname} %{_includedir}/%{oname}/*.h %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/pkgconfig/%{oname}.pc %changelog * Mon Dec 22 2008 Oden Eriksson <oeriksson@mandriva.com> 4.999.6-0.alpha.4mdv2009.1 + Revision: 317511 - fix major, he he he, funny! * Sun Dec 21 2008 Oden Eriksson <oeriksson@mandriva.com> 4.999.6-0.alpha.3mdv2009.1 + Revision: 317047 - rebuild * Sun Oct 19 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 4.999.6-0.alpha.2mdv2009.1 + Revision: 295258 - d'oh, bump major again due to lzmalib conflicts * Fri Oct 17 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 4.999.6-0.alpha.1mdv2009.1 + Revision: 294620 - * new release * ditch lzma-4.999.3alpha-use-lzma_alone-format-by-default.patch, this is now the default * bump major (P1) * Fri Jul 18 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 4.999.3-0.alpha.3mdv2009.0 + Revision: 238248 - new git snapshot - drop P1 (fixed upstream) - drop ldconfig scriptlets since package is new and doesn't exist in older releases + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Mon May 12 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 4.999.3-0.alpha.2mdv2009.0 + Revision: 206503 - remove help text about options not available for LZMA_Alone (updates P0) - handle broken pipe (P1) - build with -O3 & -funroll-loops * Sun May 04 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 4.999.3-0.alpha.1mdv2009.0 + Revision: 201109 - provide liblzma-devel - import lzma-utils * Thu Apr 30 2008 Per Øyvind Karlsen <peroyvind@mandriva.org> 4.99.3alpha-1 - initial Mandriva release.