Cleanup spec.

This commit is contained in:
Vascom 2017-09-13 14:28:26 +03:00
parent 3f9bd005b8
commit 4a585f3c89

19
xz.spec
View File

@ -4,13 +4,12 @@
Summary: LZMA compression utilities Summary: LZMA compression utilities
Name: xz Name: xz
Version: 5.2.3 Version: 5.2.3
Release: 4%{?dist} Release: 5%{?dist}
# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are # Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its # GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
# OK), documentation is Public Domain. # OK), documentation is Public Domain.
License: GPLv2+ and Public Domain License: GPLv2+ and Public Domain
Group: Applications/File
# official upstream release # official upstream release
Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz
@ -18,7 +17,6 @@ Source100: colorxzgrep.sh
Source101: colorxzgrep.csh Source101: colorxzgrep.csh
URL: http://tukaani.org/%{name}/ URL: http://tukaani.org/%{name}/
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
# For /usr/libexec/grepconf.sh (RHBZ#1189120). # For /usr/libexec/grepconf.sh (RHBZ#1189120).
# Unfortunately F21 has a newer version of grep which doesn't # Unfortunately F21 has a newer version of grep which doesn't
@ -40,7 +38,6 @@ decompression speed fast.
%package libs %package libs
Summary: Libraries for decoding LZMA compression Summary: Libraries for decoding LZMA compression
Group: System Environment/Libraries
License: Public Domain License: Public Domain
Obsoletes: %{name}-compat-libs < %{version}-%{release} Obsoletes: %{name}-compat-libs < %{version}-%{release}
@ -49,7 +46,6 @@ Libraries for decoding files compressed with LZMA or XZ utils.
%package static %package static
Summary: Statically linked library for decoding LZMA compression Summary: Statically linked library for decoding LZMA compression
Group: System Environment/Libraries
License: Public Domain License: Public Domain
%description static %description static
@ -58,17 +54,13 @@ XZ utils. Most users should *not* install this.
%package devel %package devel
Summary: Devel libraries & headers for liblzma Summary: Devel libraries & headers for liblzma
Group: Development/Libraries
License: Public Domain License: Public Domain
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel %description devel
Devel libraries and headers for liblzma. Devel libraries and headers for liblzma.
%package lzma-compat %package lzma-compat
Summary: Older LZMA format compatibility binaries Summary: Older LZMA format compatibility binaries
Group: Development/Libraries
# Just a set of symlinks to 'xz' + two Public Domain binaries. # Just a set of symlinks to 'xz' + two Public Domain binaries.
License: Public Domain License: Public Domain
Requires: %{name}%{?_isa} = %{version}-%{release} 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. commands that deal with the older LZMA format.
%prep %prep
%setup -q %autosetup
for i in `find . -name config.sub`; do for i in `find . -name config.sub`; do
perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i
@ -96,10 +88,10 @@ export CFLAGS
%configure %configure
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 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 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags} %make_build
%install %install
make install DESTDIR=%{buildroot} %make_install
rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.la
# xzgrep colorization # xzgrep colorization
@ -146,6 +138,9 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%{_mandir}/man1/*lz* %{_mandir}/man1/*lz*
%changelog %changelog
* Wed Sep 13 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 5.2.3.-5
- Cleanup spec
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-4 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild