# 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.2.3 Release:1 License:LGPLv2+ Group:Applications/File Source0:%{name}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-%{release}.build.log Patch0:%{name}-5.0.3-aix.patch Patch1:%{name}-5.0.3-aix_rpath.patch URL:http://tukaani.org/%{name}/ BuildRoot:/var/tmp/%{name}-%{version}-%{release}-root BuildRequires:make, gettext, pkg-config, bash Requires:%{name}-libs = %{version}-%{release} Requires:bash, gettext %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+ %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 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 # %patch0 # %patch1 -p1 -b .aix_rpath # fake a as AIX5L V5.1 and XLC/C++ V7 doesn't have one cat > stdbool.h <-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