From 146f22233f3864965d2bd77cc2ed7f9b473cd808 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 8 May 2018 22:49:29 +0200 Subject: [PATCH] spec: a bit more airy --- xz.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xz.spec b/xz.spec index e9afc3b..1120275 100644 --- a/xz.spec +++ b/xz.spec @@ -37,6 +37,7 @@ 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: Public Domain @@ -45,6 +46,7 @@ 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: Public Domain @@ -53,6 +55,7 @@ License: Public Domain 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: Public Domain @@ -61,6 +64,7 @@ Requires: %{name}-libs%{?_isa} = %{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 'xz' + two Public Domain binaries. @@ -73,6 +77,7 @@ Provides: lzma = %{version} The lzma-compat package contains compatibility links for older commands that deal with the older LZMA format. + %prep %autosetup @@ -80,6 +85,7 @@ for i in `find . -name config.sub`; do perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i done + %build CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" %ifarch %{power64} @@ -92,6 +98,7 @@ 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 @@ -104,11 +111,13 @@ 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 %{_pkgdocdir}/COPYING* %doc %{_pkgdocdir} @@ -117,14 +126,17 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check %{_mandir}/man1/*xz* %{profiledir}/* + %files libs %license %{_pkgdocdir}/COPYING %{_libdir}/lib*.so.5* + %files static %license %{_pkgdocdir}/COPYING %{_libdir}/liblzma.a + %files devel %dir %{_includedir}/lzma %{_includedir}/lzma/*.h @@ -133,10 +145,12 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check %{_libdir}/pkgconfig/liblzma.pc %doc %_pkgdocdir/examples* + %files lzma-compat %{_bindir}/*lz* %{_mandir}/man1/*lz* + %changelog * Tue May 08 2018 Pavel Raiskup - 5.2.4-1 - rebase to 5.2.4 (rhbz#1574039), per release notes: