# Not needed for f21+ and probably RHEL8+ %{!?_licensedir:%global license %%doc} Summary: LZMA compression utilities Name: xz Epoch: 1 Version: 5.6.3 Release: 2%{?dist} # liblzma - 0BSD # xz{,dec}, lzma{dec,info} - 0BSD # - getopt_long - LGPL-2.1-or-later - not built in Fedora # xz{grep,diff,less,more} - GPL-2.0-or-later # docs - BSD0 AND LicenseRef-Fedora-Public-Domain # man pages and translations - 0BSD AND LicenseRef-Fedora-Public-Domain # See: https://gitlab.com/fedora/legal/fedora-license-data/-/issues/547 License: 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain # official upstream release Source0: https://github.com/tukaani-project/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/tukaani-project/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig Source2: https://tukaani.org/misc/lasse_collin_pubkey.txt Source100: colorxzgrep.sh Source101: colorxzgrep.csh URL: https://tukaani.org/%{name}/ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} # For /usr/libexec/grepconf.sh (RHBZ#1189120). # Unfortunately F21 has a newer version of grep which doesn't # have grepconf, but we're only concerned with F22 here. Requires: grep >= 2.20-5 BuildRequires: make BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: perl-interpreter BuildRequires: autoconf automake libtool gettext-devel %description XZ Utils are an attempt to make LZMA compression easy to use on free (as in freedom) operating systems. This is achieved by providing tools and libraries which are similar to use than the equivalents of the most popular existing compression algorithms. LZMA is a general purpose compression algorithm designed by Igor Pavlov as part of 7-Zip. It provides high compression ratio while keeping the decompression speed fast. %package libs Summary: Libraries for decoding LZMA compression License: 0BSD Obsoletes: %{name}-compat-libs < %{version}-%{release} %description libs Libraries for decoding files compressed with LZMA or XZ utils. %package static Summary: Statically linked library for decoding LZMA compression License: 0BSD %description static Statically linked library for decoding files compressed with LZMA or XZ utils. Most users should *not* install this. %package devel Summary: Devel libraries & headers for liblzma License: 0BSD Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} %description devel Devel libraries and headers for liblzma. %package lzma-compat Summary: Older LZMA format compatibility binaries # Just a set of symlinks to some files in the 'xz' package. License: 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} Obsoletes: lzma < %{version} Provides: lzma = %{version} %description lzma-compat The lzma-compat package contains compatibility links for older commands that deal with the older LZMA format. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 autoreconf -fi %build export CFLAGS="%optflags" %ifarch %ix86 # rhbz#1630650, annocheck reports the following message because liblzma uses # crc*_x86.S asm code on i686: CFLAGS="$CFLAGS -Wa,--generate-missing-build-notes=yes" %endif %configure sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install %make_install rm -f %{buildroot}%{_libdir}/*.la # xzgrep colorization %global profiledir %{_sysconfdir}/profile.d mkdir -p %{buildroot}%{profiledir} install -p -m 644 %{SOURCE100} %{buildroot}%{profiledir} install -p -m 644 %{SOURCE101} %{buildroot}%{profiledir} %find_lang %name %check LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check %ldconfig_scriptlets libs %files -f %{name}.lang %license COPYING* %doc %{_pkgdocdir} %exclude %_pkgdocdir/examples* %{_bindir}/*xz* %{_mandir}/man1/*xz* %lang(de) %{_mandir}/de/man1/*xz* %lang(fr) %{_mandir}/fr/man1/*xz* %lang(ko) %{_mandir}/ko/man1/*xz* %lang(ro) %{_mandir}/ro/man1/*xz* %lang(uk) %{_mandir}/uk/man1/*xz* %lang(pt_BR) %{_mandir}/pt_BR/man1/*xz* %{profiledir}/* %files libs %license COPYING %{_libdir}/lib*.so.5* %files static %license COPYING %{_libdir}/liblzma.a %files devel %dir %{_includedir}/lzma %{_includedir}/lzma/*.h %{_includedir}/lzma.h %{_libdir}/*.so %{_libdir}/pkgconfig/liblzma.pc %doc %_pkgdocdir/examples* %files lzma-compat %{_bindir}/*lz* %{_mandir}/man1/*lz* %lang(de) %{_mandir}/de/man1/*lz* %lang(fr) %{_mandir}/fr/man1/*lz* %lang(ko) %{_mandir}/ko/man1/*lz* %lang(ro) %{_mandir}/ro/man1/*lz* %lang(uk) %{_mandir}/uk/man1/*lz* %lang(pt_BR) %{_mandir}/pt_BR/man1/*lz* %changelog * Fri Oct 11 2024 Richard W.M. Jones - 1:5.6.3-2 - perl-Compress-Raw-Lzma dep has been removed, rebuild https://src.fedoraproject.org/rpms/perl-Compress-Raw-Lzma/pull-request/3 * Wed Oct 02 2024 Richard W.M. Jones - 1:5.6.3-1 - New upstream version 5.6.3 (RHBZ#2316069) * Thu Aug 08 2024 Lukáš Zaoral - 1:5.6.2-3 - fix licenses and finish SPDX license conversion * Sat Jul 20 2024 Fedora Release Engineering - 1:5.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 20 2024 Richard W.M. Jones - 1:5.6.2-1 - New upstream version 5.6.2 (RHBZ#2283854) - Remove "Jia Tan" pubkey, replace with Lasse Collin's. * Thu Mar 28 2024 Richard W.M. Jones - 1:5.4.6-3 - Revert to 5.4.6, bump epoch * Sat Mar 09 2024 Richard W.M. Jones - 5.6.1-1 - New version 5.6.1 (RHBZ#2267598) - Reenable ifunc as it is supposed to be fixed in 5.6.1. * Mon Mar 04 2024 Richard W.M. Jones - 5.6.0-3 - --disable-ifunc (workaround for 2267598) * Thu Feb 29 2024 Adam Williamson - 5.6.0-2 - Rebuild on a side tag to create a coherent update * Tue Feb 27 2024 Jindrich Novy - 5.6.0-1 - Rebase to version 5.6.0 * Mon Jan 29 2024 Richard W.M. Jones - 5.4.6-1 - New version 5.4.6 (RHBZ#2260521) - Fix Source URLs. * Sat Jan 27 2024 Fedora Release Engineering - 5.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 01 2023 Richard W.M. Jones - 5.4.5-1 - New version 5.4.5 (RHBZ#2247487) * Thu Oct 19 2023 Debarshi Ray - 5.4.4-2 - Mark translations of manuals with %%lang() * Wed Aug 02 2023 Richard W.M. Jones - 5.4.4-1 - New version 5.4.4 (RHBZ#2228542) * Sat Jul 22 2023 Fedora Release Engineering - 5.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu May 04 2023 Richard W.M. Jones - 5.4.3-1 - Rebase to version 5.4.3 (RHBZ#2179570) - Update the pubkey which appears to have changed. * Mon Apr 17 2023 Matej Mužila - 5.4.2-1 - Rebase to version 5.4.2 (#2179570) * Mon Jan 23 2023 Richard W.M. Jones - 5.4.1-1 - Rebase to version 5.4.1 (#2142405) * Sat Jan 21 2023 Fedora Release Engineering - 5.2.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 01 2022 Richard W.M. Jones - 5.2.9-1 - Rebase to version 5.2.9 (#2142405) * Tue Nov 22 2022 Matej Mužila - 5.2.8-1 - Rebase to version 5.2.8 (#2142405) * Tue Aug 30 2022 Matej Mužila - 5.2.7-1 - Rebase to version 5.2.7 (#2131313) * Tue Aug 30 2022 Matej Mužila - 5.2.6-1 - Rebase to version 5.2.6 (#2117931) * Sat Jul 23 2022 Fedora Release Engineering - 5.2.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Apr 16 2022 Todd Zullinger - 5.2.5-9 - verify upstream GPG signature - xzgrep: arbitrary-file-write vulnerability (#2073310, CVE-2022-1271) * Sat Jan 22 2022 Fedora Release Engineering - 5.2.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 5.2.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Feb 12 2021 Michal Schorm - 5.2.5-6 - Remove the ancient PPC64 hack * Thu Jan 28 2021 Fedora Release Engineering - 5.2.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 04 2021 Ondrej Dubaj - 5.2.5-4 - Enabled CET for i686 (#1910368) * Wed Jul 29 2020 Fedora Release Engineering - 5.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 8 2020 Richard W.M. Jones - 5.2.5-2 - Fix location of German man pages (RHBZ#1844813). * Mon Mar 30 2020 Ondrej Dubaj - 5.2.5-1 - Rebase to version 5.2.5 (#1818418) * Fri Jan 31 2020 Fedora Release Engineering - 5.2.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Aug 21 2019 Petr Kubat - 5.2.4-7 - Use relative path for COPYING files so that rpm moves them to correct place Related: rhbz#1741074 * Sat Jul 27 2019 Fedora Release Engineering - 5.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 5.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 22 2018 Pavel Raiskup - 5.2.4-4 - fix annocheck failures on i686 (rhbz#1630650) * Sat Jul 14 2018 Fedora Release Engineering - 5.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 09 2018 Pavel Raiskup - 5.2.4-2 - drop ppc64p7 hack, per fedora devel list discussion: https://lists.fedoraproject.org/archives/list/ devel@lists.fedoraproject.org/thread/2OWD2QRDFBEC6HTPVQ7FMJENH32BWT54/ - don't explicitly set _FILE_OFFSET_BITS, package uses AC_SYS_LARGEFILE * Tue May 08 2018 Pavel Raiskup - 5.2.4-1 - rebase to 5.2.4 (rhbz#1574039), per release notes: https://www.mail-archive.com/xz-devel@tukaani.org/msg00295.html * Fri Feb 09 2018 Fedora Release Engineering - 5.2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Feb 02 2018 Igor Gnatenko - 5.2.3-6 - Switch to %%ldconfig_scriptlets * Wed Sep 13 2017 Vasiliy N. Glazov - 5.2.3.-5 - Cleanup spec * Thu Aug 03 2017 Fedora Release Engineering - 5.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 5.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 5.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 02 2017 Pavel Raiskup - 5.2.3-1 - rebase to stable 5.2.3 per release notes: http://www.mail-archive.com/xz-devel@tukaani.org/msg00285.html * Mon Nov 28 2016 Lubomir Rintel - 5.2.2-3 - Fix FTBFS by requiring Perl * Fri Feb 05 2016 Fedora Release Engineering - 5.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Sep 29 2015 Pavel Raiskup - 5.2.2-1 - rebase to stable 5.2.2 per release notes: http://www.mail-archive.com/xz-devel@tukaani.org/msg00244.html * Thu Jul 09 2015 Pavel Raiskup - 5.2.1-3 - remove xz-compat-libs as it is not necessary (#1179193) * Fri Jun 19 2015 Fedora Release Engineering - 5.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Feb 27 2015 Pavel Raiskup - 5.2.1-1 - bugfix rebase to 5.2.1, per release notes http://www.mail-archive.com/xz-devel@tukaani.org/msg00226.html * Wed Feb 04 2015 Richard W.M. Jones - 5.2.0-2 - Depend on grep that contains grepconf.sh (#1189120) * Tue Dec 23 2014 Pavel Raiskup - 5.2.0-1 - rebase per upstream release notes (#1023718) http://www.mail-archive.com/xz-devel@tukaani.org/msg00216.html - fedora-review fixes, documentation/license fixes in spec * Tue Aug 26 2014 Pavel Raiskup - 5.1.2-15alpha - xz*grep's output is colored iff grep's is (#1034846) * Mon Aug 18 2014 Fedora Release Engineering - 5.1.2-14alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Aug 6 2014 Tom Callaway - 5.1.2-13alpha - fix license handling * Fri Jun 13 2014 Pavel Raiskup - 5.1.2-12alpha - xzgrep: return 0 when at least one file matches (#1109122) * Sun Jun 08 2014 Fedora Release Engineering - 5.1.2-11alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 31 2014 Peter Robinson 5.1.2-10alpha - Drop ChangeLog, it's big and the excitement is summarised in NEWS * Fri May 16 2014 Richard W.M. Jones - 5.1.2-9alpha - Add a -static subpackage (see RHBZ#547011). * Wed Apr 02 2014 Pavel Raiskup - 5.1.2-8alpha - add _isa requirements where appropriate - better check the version of less binary (#1015924) * Fri Jan 10 2014 Pavel Raiskup - 5.1.2-7alpha - build with -O3 on ppc64 (private #1051078) * Sun Aug 04 2013 Fedora Release Engineering - 5.1.2-6alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 09 2013 Pavel Raiskup - 5.1.2-5alpha - fix manual page inconsistencies with help output (private #948533) - enable/fix the 'xzgrep -h' (private #850898) * Thu Feb 21 2013 Karsten Hopp 5.1.2-4alpha - add support for ppc64p7 arch (Power7 optimized) * Fri Feb 15 2013 Fedora Release Engineering - 5.1.2-3alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jul 22 2012 Fedora Release Engineering - 5.1.2-2alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jul 05 2012 Jindrich Novy 5.1.2alpha-1 - update to 5.1.2alpha * Sat Jan 14 2012 Fedora Release Engineering - 5.1.1-2alpha - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Oct 16 2011 Jindrich Novy 5.1.1alpha-1 - update to 5.1.1alpha * Mon Jun 20 2011 Jindrich Novy 5.0.3-2 - better to have upstream tarballs in different formats than XZ to allow bootstrapping (#714765) * Mon May 23 2011 Jindrich Novy 5.0.3-1 - update to 5.0.3 * Mon Apr 04 2011 Jindrich Novy 5.0.2-1 - update to 5.0.2 * Tue Feb 08 2011 Fedora Release Engineering - 5.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jan 29 2011 Jindrich Novy 5.0.1-1 - update to 5.0.1 * Tue Oct 26 2010 Jindrich Novy 5.0.0-4 - call ldconfig for compat-libs and fix description * Mon Oct 25 2010 Jindrich Novy 5.0.0-3 - introduce compat-libs subpackage with older soname to resolve problems with soname bump and for packages requiring older xz-4.999.9beta * Mon Oct 25 2010 Jindrich Novy 5.0.0-2 - rebuild * Mon Oct 25 2010 Jindrich Novy 5.0.0-1 - update to the new upstream release * Sat Oct 16 2010 Jindrich Novy 4.999.9-0.3.beta.212.gacbc - update to latest git snapshot * Thu Apr 01 2010 Jindrich Novy 4.999.9-0.2.20100401.beta - sync with upstream (#578925) * Thu Feb 18 2010 Jindrich Novy 4.999.9-0.2.20091007.beta - move xz man pages to main package, leave lzma ones where they belong (#566484) * Wed Oct 07 2009 Jindrich Novy 4.999.9-0.1.20091007.beta - sync with upstream again * Fri Oct 02 2009 Jindrich Novy 4.999.9-0.1.20091002.beta - sync with upstream to generate the same archives on machines with different endianess * Fri Aug 28 2009 Jindrich Novy 4.999.9-0.1.beta - update to 4.999.9beta * Mon Aug 17 2009 Jindrich Novy 4.999.8-0.10.beta.20090817git - sync with upstream because of #517806 * Tue Aug 04 2009 Jindrich Novy 4.999.8-0.9.beta.20090804git - update to the latest GIT snapshot * Mon Jul 27 2009 Fedora Release Engineering - 4.999.8-0.8.beta - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 17 2009 Bill Nottingham 4.999.8-0.7.beta - tweak summary - add %%check section () * Thu Jul 09 2009 Bill Nottingham 4.999.8-0.6.beta - fix release versioning to match guidelines - fix up lzma-compat summary/description - tweak licensing * Mon Jun 22 2009 Jindrich Novy 4.999.8beta-0.5 - introduce lzma-compat subpackage * Fri Jun 19 2009 Jindrich Novy 4.999.8beta-0.4 - try to not to conflict with lzma * Thu Jun 18 2009 Jindrich Novy 4.999.8beta-0.3 - obsolete but don't provide lzma, they are largely incompatible - put beta to Release * Wed Jun 17 2009 Jindrich Novy 4.999.8beta-0.2 - obsolete old lzma - add Requires: pkgconfig * Tue Jun 16 2009 Jindrich Novy 4.999.8beta-0.1 - package XZ Utils, based on LZMA Utils packaged by Per Patrice Bouchand