%define oldlzmaver 4.32.7 %define build_dkms 0 Summary: LZMA utils Name: lzma Version: 4.43 Release: 43%{?dist} License: GPL Group: Archiving/Compression URL: https://tukaani.org/lzma/ Source0: https://tukaani.org/lzma/lzma-%{oldlzmaver}.tar.lzma Source1: https://ovh.dl.sourceforge.net/sourceforge/sevenzip/lzma443.tar.bz2 #Source2: lzme Source3: sqlzma.h #Patch0: lzma-432-makefile.patch.bz2 #Patch1: lzma-432-makefile-sdknew.patch.bz2 #Patch2: lzma-4.43-lzmp.patch # (blino) modified for 443, from sqlzma1-449.patch: # * adapted to lzma443 dist structure: s,/C/Compress/Lzma/,/C/7zip/Compress/LZMA_C/,; s,/CPP/7zip/Compress/LZMA_Alone/,/C/7zip/Compress/LZMA_Alone/, # * use sqlzma.mk makefiles for 443 (from from sqlzma1-443.patch) # * remove NCoderPropID::kNumThreads in comp.cc, it is invalid since we don't build LZMAEncoder.cpp with COMPRESS_MF_MT multithread support Patch3: lzma-4.32.4-sqlzma.patch Patch4: lzma-4.43-add-missing-header.patch Patch5: lzma-4.43-quiet.patch Patch6: lzma-4.43-update-version.patch Patch7: lzma-4.43-fix-fast-compression.patch Patch8: lzma-4.43-add-missing-gethandle.patch Patch9: lzma-4.32.4-text-tune.patch #Patch10: lzma-4.32.0beta3-fix-stdout.patch #Patch11: lzma-4.43-fix-liblzmadec-header-includes.patch # 4.32.2 has changes to sdk that we replace with newer, we apply these to the new Patch12: lzma-4.32.2-sdk-changes.patch #Patch13: lzma-4.32.2-file_modes.patch #Patch14: lzma-4.32.3-liblzmadec-fix.patch #Patch15: lzma-4.32.5-fix-deprecated-string-conversion.patch Patch16: lzma-4.32.7-format_not_a_string_literal_and_no_format_arguments.diff # for squashfs-lzma library BuildRequires: pkgconfig(zlib) BuildRequires: dos2unix BuildRequires: diffutils BuildRequires: libtool BuildRequires: gcc-c++ %if !%build_dkms Obsoletes: dkms-%{name} < %{version}-%{release} %endif %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 lzmadec-libs Summary: Libraries for decoding LZMA compression Group: System/Libraries License: LGPL %description -n lzmadec-libs Libraries for decoding LZMA compression. %package -n lzmadec-devel Summary: Devel libraries & headers for liblzmadec Group: Development/C License: LGPL Provides: lzmadec-devel = %{version}-%{release} Requires: lzmadec-libs = %{version} %description -n lzmadec-devel Devel libraries & headers for liblzmadec. %package -n dkms-%{name} Summary: Kernel modules for decoding LZMA compression Group: System/Kernel and hardware License: GPL Requires(post): dkms Requires(preun): dkms %description -n dkms-%{name} Kernel modules for decoding LZMA compression. %prep %setup -q -n %{name}-%{oldlzmaver} -a1 #%patch -P0 -p1 -b .427 #%patch -P1 -p1 -b .427_sdk #%patch -P2 -p1 %patch -P3 -p1 -b .sqlzma cp %{SOURCE3} . dos2unix *.txt # ugly syncing with latest sdk mv src/sdk src/sdk.old cp -r C src/sdk for i in `find src/sdk.old -name Makefile.\*`; do cp $i `echo $i|sed -e 's#sdk.old#sdk#g'`; done find src/sdk -name makefile|xargs rm -f %patch -P4 -p1 -b .config_h %patch -P5 -p1 -b .quiet %patch -P6 -p0 -b .version %patch -P7 -p0 -b .fast %patch -P8 -p0 -b .gethandle %patch -P9 -p1 -b .text #%patch -P10 -p1 -b .stdout #%patch -P11 -p1 -b .lzmadec_systypes %patch -P12 -p1 -b .4.32.2 #%patch -P13 -p1 -b .file_modes #%patch -P14 -p1 -b .liblzmadec_fix #%%patch -P15 -p0 -b .fix_string_conversion %patch -P16 -p1 -b .format_not_a_string_literal_and_no_format_arguments %if %build_dkms pushd C/7zip/Compress/LZMA_C cp %{SOURCE3} kmod/ cp uncomp.c LzmaDecode.{c,h} LzmaTypes.h kmod/ perl -pi -e 's,^#include "\.\./(Lzma.*)",#include "$1",' kmod/*.{c,h} cat > kmod/dkms.conf < - 4.43 - Rebuilt for Fedora * Sat Feb 13 2021 neoclust 4.43-43.mga8 + Revision: 1675263 - Rebuild because of missing rpms * Sat Feb 13 2021 neoclust 4.43-42.mga8 + Revision: 1675247 - Do not provide dkms module * Thu Feb 13 2020 umeabot 4.43-41.mga8 + Revision: 1514961 - Mageia 8 Mass Rebuild + wally - replace deprecated %%configure2_5x * Sun Sep 23 2018 umeabot 4.43-40.mga7 + Revision: 1299423 - Mageia 7 Mass Rebuild * Sun Jun 03 2018 wally 4.43-39.mga7 + Revision: 1233857 - fix build on aarch64 * Fri Aug 26 2016 akien 4.43-38.mga6 + Revision: 1049175 - Fix devel lib provides * Fri Feb 05 2016 umeabot 4.43-37.mga6 + Revision: 938664 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot 4.43-36.mga5 + Revision: 740525 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot 4.43-35.mga5 + Revision: 682108 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot 4.43-34.mga4 + Revision: 507686 - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot 4.43-33.mga3 + Revision: 359226 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Feb 05 2011 spuhler 4.43-32.mga1 + Revision: 47598 - increase rel to 32 to be built - removed buildroot definition from .spec * Sat Jan 08 2011 blino 4.43-31.mga1 + Revision: 1134 - remove old ldconfig scriptlets - imported package lzma * Fri Dec 03 2010 Oden Eriksson 4.43-30mdv2011.0 + Revision: 606452 - rebuild * Sun Mar 14 2010 Oden Eriksson 4.43-29mdv2010.1 + Revision: 519035 - rebuild * Thu Sep 03 2009 Christophe Fergeau 4.43-28mdv2010.0 + Revision: 426022 - rebuild * Fri Feb 27 2009 Olivier Blin 4.43-27mdv2009.1 + Revision: 345446 - require dkms for dkms subpackage post scripts (fix installation in iurt chroot) * Tue Dec 30 2008 Per Øyvind Karlsen 4.43-26mdv2009.1 + Revision: 321390 - ditch lzma util since it's now obsoleted by new xz util * Sun Dec 21 2008 Oden Eriksson 4.43-25mdv2009.1 + Revision: 317045 - fix build with -Werror=format-security (P16) * Mon Aug 04 2008 Per Øyvind Karlsen 4.43-24mdv2009.0 + Revision: 262910 - update to lzma utils 4.32.7 + Pixel - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Thu Apr 24 2008 Per Øyvind Karlsen 4.43-23mdv2009.0 + Revision: 197102 - rename library package to name consistent with library name (to make room for new liblzma from new lzma utils) * Tue Apr 15 2008 Per Øyvind Karlsen 4.43-22mdv2009.0 + Revision: 194317 - fix deprecated string conversion (P15 from OpenSuSE) - build lzma utils with -O3 - add diffutils to buildrequires (needed by test suite) - switch to new lzma tarball from upstream * Mon Jan 28 2008 Per Øyvind Karlsen 4.43-21mdv2008.1 + Revision: 159136 - lzma utils updated to 4.32.5 - use zcat in stead of gzcat in lzme (tv) + Olivier Blin - restore BuildRoot + Thierry Vignaud - kill re-definition of %%buildroot on Pixel's request * Wed Dec 12 2007 Olivier Blin 4.43-20mdv2008.1 + Revision: 119008 - fix sqlzma patch to really use lzma instead of zlib when possible, by not passing invalid multithread option since multithread support is disabled - merge additional sqlzma makefiles in main sqlzma patch - regenerate sqlzma patch with gendiff * Wed Dec 12 2007 Olivier Blin 4.43-19mdv2008.1 + Revision: 118764 - update sqlzma patch and header to be in sync with squashfs-tools (with workarounds to build with lzma443) * Mon Dec 10 2007 Per Øyvind Karlsen 4.43-18mdv2008.1 + Revision: 117014 - new release: lzma utils 4.32.4 - rediff text tune patch (P9) - drop liblzmadec fix patch (P14, merged upstream) - bashism in script requires bash as interpreter for lzme, also fix to work with BSD 'du' (thx to Anders F Bj?\195?\182rklund) * Mon Dec 03 2007 Per Øyvind Karlsen 4.43-17mdv2008.1 + Revision: 114648 - fix a bug in liblzmadec that could lead to crashes with KDE (P14) * Fri Nov 30 2007 Per Øyvind Karlsen 4.43-16mdv2008.1 + Revision: 114105 - update to lzma utils 4.32.3 - compile all with %%{optflags} - run checks + Thierry Vignaud - description is not about _patches_ on _anoter_ package * Wed Nov 14 2007 Olivier Blin 4.43-15mdv2008.1 + Revision: 108859 - build dkms-lzma - run ldconfig in post/postun of library package * Mon Nov 05 2007 Herton Ronaldo Krzesinski 4.43-14mdv2008.1 + Revision: 106110 - Added patch from Andrey Borzenkov that fixes #35309 (lzma always creates output with 0600 permissions). * Sat Oct 27 2007 Per Øyvind Karlsen 4.43-13mdv2008.1 + Revision: 102612 - update lzma utils to 4.32.2 (P12 is to sync newer sdk with changes to the old shipped with 4.32.2) - drop P11 (merged upstream) - fix include of sys/types.h in lzmadec.h for build without stdio (P11) * Tue Jul 24 2007 Per Øyvind Karlsen 4.43-12mdv2008.0 + Revision: 54873 - update to lzma utils 4.32.0beta4 - drop P10 (merged upstream) * Mon Jul 23 2007 Per Øyvind Karlsen 4.43-11mdv2008.0 + Revision: 54869 - fix output to stdout (P11, fixes #32058) * Fri Jun 22 2007 Per Øyvind Karlsen 4.43-10mdv2008.0 + Revision: 43072 - add special tuning for text files, parameter: '--text' (P9) * Sun Jun 10 2007 Per Øyvind Karlsen 4.43-9mdv2008.0 + Revision: 37873 - put back library as some tools provided relying on it still migth be of interest for some * Sun Jun 10 2007 Per Øyvind Karlsen 4.43-7mdv2008.0 + Revision: 37742 - drop liblzmadec as adviced by upstream, it'll be replaced by another lib anyways - use default ratio (-7) for compression with lzma in stead of (-9) due to the huge amount of additional time and resources needed without much benefit added * Fri Jun 08 2007 Per Øyvind Karlsen 4.43-6mdv2008.0 + Revision: 37504 - kill of debian patch, move relevant parts into separate patches and make them work - fix version defined * Thu Jun 07 2007 Anssi Hannula 4.43-5mdv2008.0 + Revision: 36225 - rebuild with correct optflags + Per Øyvind Karlsen - sync lzmp patch with debian: o include to be able to build with GCC 4.3. (Martin Michlmayr) o use hc4 for -1 option, as hc3 is no more built in the SDK. (Lasse Collin) - don't always output copyright notice (P5 from PLD) - add missing config.h header to sdk (missing due to my fugly merge with latest sdk ;) * Wed Mar 07 2007 Olivier Blin 4.43-2mdv2007.0 + Revision: 134182 - buildrequires zlib-devel for squashfs-lzma library - add uncompression static library (from squashfs-lzma.org) * Mon Feb 12 2007 Per Øyvind Karlsen 4.43-1mdv2007.1 + Revision: 118885 - update to 4.43 of sdk and 4.32.0beta3 of tools lzmash is now dead, replace with 'lzma' new lib for decoding - Import lzma * Sun Jan 08 2006 Giuseppe Ghibò 4.32-1mdk - updated lzma sdk to 4.32. - added lzme (based on Thierry Vignaud's bzme). * Sat Jan 07 2006 Giuseppe Ghibò 4.27.1-1mdk - initial Mandriva release.