spec: a bit more airy
This commit is contained in:
parent
c11005e694
commit
146f22233f
14
xz.spec
14
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 <praiskup@redhat.com> - 5.2.4-1
|
||||
- rebase to 5.2.4 (rhbz#1574039), per release notes:
|
||||
|
Loading…
Reference in New Issue
Block a user