From 4a585f3c89acbcc0d5ceb06d14cfff445331f05c Mon Sep 17 00:00:00 2001 From: Vascom Date: Wed, 13 Sep 2017 14:28:26 +0300 Subject: [PATCH] Cleanup spec. --- xz.spec | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/xz.spec b/xz.spec index ecd82e6..dc79ed2 100644 --- a/xz.spec +++ b/xz.spec @@ -4,13 +4,12 @@ Summary: LZMA compression utilities Name: xz Version: 5.2.3 -Release: 4%{?dist} +Release: 5%{?dist} # Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are # GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its # OK), documentation is Public Domain. License: GPLv2+ and Public Domain -Group: Applications/File # official upstream release Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz @@ -18,7 +17,6 @@ Source100: colorxzgrep.sh Source101: colorxzgrep.csh URL: http://tukaani.org/%{name}/ -Requires: %{name}-libs%{?_isa} = %{version}-%{release} # For /usr/libexec/grepconf.sh (RHBZ#1189120). # Unfortunately F21 has a newer version of grep which doesn't @@ -40,7 +38,6 @@ decompression speed fast. %package libs Summary: Libraries for decoding LZMA compression -Group: System Environment/Libraries License: Public Domain Obsoletes: %{name}-compat-libs < %{version}-%{release} @@ -49,7 +46,6 @@ Libraries for decoding files compressed with LZMA or XZ utils. %package static Summary: Statically linked library for decoding LZMA compression -Group: System Environment/Libraries License: Public Domain %description static @@ -58,17 +54,13 @@ XZ utils. Most users should *not* install this. %package devel Summary: Devel libraries & headers for liblzma -Group: Development/Libraries License: Public Domain -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: pkgconfig %description devel Devel libraries and headers for liblzma. %package lzma-compat Summary: Older LZMA format compatibility binaries -Group: Development/Libraries # Just a set of symlinks to 'xz' + two Public Domain binaries. License: Public Domain Requires: %{name}%{?_isa} = %{version}-%{release} @@ -80,7 +72,7 @@ The lzma-compat package contains compatibility links for older commands that deal with the older LZMA format. %prep -%setup -q +%autosetup for i in `find . -name config.sub`; do perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i @@ -96,10 +88,10 @@ export CFLAGS %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 %{?_smp_mflags} +%make_build %install -make install DESTDIR=%{buildroot} +%make_install rm -f %{buildroot}%{_libdir}/*.la # xzgrep colorization @@ -146,6 +138,9 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check %{_mandir}/man1/*lz* %changelog +* 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