# avec test : /usr/bin/rpm -ba --define dotests=1 $SPECS/xz....spec 2>&1 | tee $SPECS/xz....spec.res # sans tests: /usr/bin/rpm -ba $SPECS/xz....spec 2>&1 | tee $SPECS/xz....spec.res %{!?dotests:%define DO_TESTS 1} %{?dotests:%define DO_TESTS 0} Summary:LZMA compression utilities Name:xz Version:5.4.3 Release:1 License:LGPLv2+ Group:Applications/File Source0:%{name}/%{name}-%{version}.tar.gz URL:https://tukaani.org/%{name}/ BuildRequires: make BuildRequires: gettext-devel >= 0.21-2 BuildRequires: pkg-config BuildRequires: bash Requires: %{name}-libs = %{version}-%{release} Requires: bash Requires: gettext >= 0.21-2 %define _libdir64 %{_prefix}/lib64 %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 Group:System Environment/Libraries License:LGPLv2+ Requires: libgcc >= 10.3.0 %description libs Libraries for decoding files compressed with LZMA or XZ utils. %package devel Summary:Devel libraries & headers for liblzma Group:Development/Libraries License:LGPLv2+ Requires:%{name}-libs = %{version}-%{release} Requires:pkg-config %description devel Devel libraries and headers for liblzma. %package lzma-compat Summary:Older LZMA format compatibility binaries Group:Development/Libraries # lz{grep,diff,more} are GPLv2+. Other binaries are LGPLv2+ License:GPLv2+ and LGPLv2+ Requires:%{name} = %{version}-%{release} Requires: gettext >= 0.21-2 Obsoletes: lzma < 5 Provides: lzma = 5 %description lzma-compat The lzma-compat package contains compatibility links for older commands that deal with the older LZMA format. %prep echo "DO_TESTS=%{DO_TESTS}" %setup -q export PATH=/opt/freeware/bin:$PATH # fake a as AIX5L V5.1 and XLC/C++ V7 doesn't have one cat > stdbool.h < - 5.4.3-1 - Updated to 5.4.3 * Tue Apr 21 2020 Rishita Saha - 5.2.5-1 - Updated to 5.2.5 * Tue Jan 01 2019 Ravi Hirekurabar - 5.2.4-1 - Updated to 5.2.4 * Fri Aug 4 2017 Reshma V Kumar -5.2.3-1 - Update to latest version * Mon Aug 22 2016 Jean Girardet - 5.2.2-2 - Manage 32/64 bits. * Fri Aug 05 2016 Jean Girardet - 5.2.2-1 - Initial port on AIX 6.1 * Thu Sep 06 2012 Gerard Visiedo - 5.0.4-1 - Initial port on Aix6.1