2015-01-06 11:27:13 +00:00
|
|
|
# Not needed for f21+ and probably RHEL8+
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
Summary: LZMA compression utilities
|
|
|
|
Name: xz
|
2015-09-29 13:01:18 +00:00
|
|
|
Version: 5.2.2
|
2016-02-05 03:54:21 +00:00
|
|
|
Release: 2%{?dist}
|
2015-01-06 11:27:13 +00:00
|
|
|
|
|
|
|
# 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
|
2009-07-17 18:19:25 +00:00
|
|
|
Group: Applications/File
|
2010-10-26 08:26:11 +00:00
|
|
|
# official upstream release
|
2014-12-23 17:11:26 +00:00
|
|
|
Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz
|
2014-08-26 08:12:07 +00:00
|
|
|
|
|
|
|
Source100: colorxzgrep.sh
|
|
|
|
Source101: colorxzgrep.csh
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
URL: http://tukaani.org/%{name}/
|
2014-04-02 07:35:33 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2009-07-17 18:19:25 +00:00
|
|
|
|
2015-02-04 14:04:37 +00:00
|
|
|
# For /usr/libexec/grepconf.sh (RHBZ#1189120).
|
|
|
|
# Unfortunately F21 has a newer version of grep which doesn't
|
|
|
|
# have grepconf, but we're only concerned with F22 here.
|
2015-02-27 07:40:07 +00:00
|
|
|
Requires: grep >= 2.20-5
|
2015-02-04 14:04:37 +00:00
|
|
|
|
2014-06-13 09:58:34 +00:00
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
%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
|
2015-01-06 11:27:13 +00:00
|
|
|
License: Public Domain
|
2015-01-06 13:01:39 +00:00
|
|
|
Obsoletes: %{name}-compat-libs < %{version}-%{release}
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
Libraries for decoding files compressed with LZMA or XZ utils.
|
|
|
|
|
2014-05-16 14:06:22 +00:00
|
|
|
%package static
|
|
|
|
Summary: Statically linked library for decoding LZMA compression
|
|
|
|
Group: System Environment/Libraries
|
2015-01-06 11:27:13 +00:00
|
|
|
License: Public Domain
|
2014-05-16 14:06:22 +00:00
|
|
|
|
|
|
|
%description static
|
|
|
|
Statically linked library for decoding files compressed with LZMA or
|
|
|
|
XZ utils. Most users should *not* install this.
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Devel libraries & headers for liblzma
|
|
|
|
Group: Development/Libraries
|
2015-01-06 11:27:13 +00:00
|
|
|
License: Public Domain
|
2014-04-02 07:35:33 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2009-07-17 18:19:25 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
|
2010-10-26 08:26:11 +00:00
|
|
|
%description devel
|
2009-07-17 18:19:25 +00:00
|
|
|
Devel libraries and headers for liblzma.
|
|
|
|
|
|
|
|
%package lzma-compat
|
|
|
|
Summary: Older LZMA format compatibility binaries
|
|
|
|
Group: Development/Libraries
|
2015-01-06 11:27:13 +00:00
|
|
|
# Just a set of symlinks to 'xz' + two Public Domain binaries.
|
|
|
|
License: Public Domain
|
2015-01-05 07:44:28 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2010-10-25 15:25:33 +00:00
|
|
|
Obsoletes: lzma < %{version}
|
|
|
|
Provides: lzma = %{version}
|
2009-07-17 18:19:25 +00:00
|
|
|
|
2010-10-26 08:26:11 +00:00
|
|
|
%description lzma-compat
|
2009-07-17 18:19:25 +00:00
|
|
|
The lzma-compat package contains compatibility links for older
|
|
|
|
commands that deal with the older LZMA format.
|
|
|
|
|
|
|
|
%prep
|
2015-01-06 13:01:39 +00:00
|
|
|
%setup -q
|
2013-04-09 10:47:28 +00:00
|
|
|
|
2013-02-21 00:23:50 +00:00
|
|
|
for i in `find . -name config.sub`; do
|
|
|
|
perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i
|
|
|
|
done
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%build
|
2014-01-10 13:41:08 +00:00
|
|
|
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
|
|
|
|
%ifarch %{power64}
|
|
|
|
CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|^-O2$|-O3|g' | xargs -n 100`
|
|
|
|
%endif
|
|
|
|
export CFLAGS
|
|
|
|
|
2014-05-16 14:06:22 +00:00
|
|
|
%configure
|
2009-07-17 18:19:25 +00:00
|
|
|
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
|
2010-10-26 08:26:11 +00:00
|
|
|
make %{?_smp_mflags}
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%install
|
2015-01-05 07:44:28 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
2010-04-01 19:10:00 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2015-01-05 07:44:28 +00:00
|
|
|
|
|
|
|
# xzgrep colorization
|
2014-08-26 08:12:07 +00:00
|
|
|
%global profiledir %{_sysconfdir}/profile.d
|
|
|
|
mkdir -p %{buildroot}%{profiledir}
|
|
|
|
install -p -m 644 %{SOURCE100} %{buildroot}%{profiledir}
|
|
|
|
install -p -m 644 %{SOURCE101} %{buildroot}%{profiledir}
|
|
|
|
|
2015-01-05 07:44:28 +00:00
|
|
|
%find_lang %name
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
%check
|
|
|
|
LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
2015-01-05 07:44:28 +00:00
|
|
|
%files -f %{name}.lang
|
2015-01-06 11:27:13 +00:00
|
|
|
%license %{_pkgdocdir}/COPYING*
|
|
|
|
%doc %{_pkgdocdir}
|
|
|
|
%exclude %_pkgdocdir/examples*
|
2009-07-17 18:19:25 +00:00
|
|
|
%{_bindir}/*xz*
|
2010-02-18 20:58:54 +00:00
|
|
|
%{_mandir}/man1/*xz*
|
2014-08-26 08:12:07 +00:00
|
|
|
%{profiledir}/*
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%files libs
|
2015-01-06 11:27:13 +00:00
|
|
|
%license %{_pkgdocdir}/COPYING
|
2010-10-26 08:26:11 +00:00
|
|
|
%{_libdir}/lib*.so.5*
|
|
|
|
|
2014-05-16 14:06:22 +00:00
|
|
|
%files static
|
2015-01-06 11:27:13 +00:00
|
|
|
%license %{_pkgdocdir}/COPYING
|
2014-05-16 14:06:22 +00:00
|
|
|
%{_libdir}/liblzma.a
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/lzma
|
|
|
|
%{_includedir}/lzma/*.h
|
|
|
|
%{_includedir}/lzma.h
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/liblzma.pc
|
2015-01-06 11:27:13 +00:00
|
|
|
%doc %_pkgdocdir/examples*
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%files lzma-compat
|
|
|
|
%{_bindir}/*lz*
|
2010-02-18 20:58:54 +00:00
|
|
|
%{_mandir}/man1/*lz*
|
2009-07-17 18:19:25 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-02-05 03:54:21 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-09-29 13:01:18 +00:00
|
|
|
* Tue Sep 29 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.2-1
|
|
|
|
- rebase to stable 5.2.2 per release notes:
|
|
|
|
http://www.mail-archive.com/xz-devel@tukaani.org/msg00244.html
|
|
|
|
|
2015-01-06 13:01:39 +00:00
|
|
|
* Thu Jul 09 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.1-3
|
|
|
|
- remove xz-compat-libs as it is not necessary (#1179193)
|
|
|
|
|
2015-06-19 04:32:29 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-27 07:40:07 +00:00
|
|
|
* Fri Feb 27 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.1-1
|
2015-02-27 07:51:59 +00:00
|
|
|
- bugfix rebase to 5.2.1, per release notes
|
2015-02-27 07:40:07 +00:00
|
|
|
http://www.mail-archive.com/xz-devel@tukaani.org/msg00226.html
|
|
|
|
|
2015-02-04 14:04:37 +00:00
|
|
|
* Wed Feb 04 2015 Richard W.M. Jones <rjones@redhat.com> - 5.2.0-2
|
|
|
|
- Depend on grep that contains grepconf.sh (#1189120)
|
|
|
|
|
2014-12-23 17:11:26 +00:00
|
|
|
* Tue Dec 23 2014 Pavel Raiskup <praiskup@redhat.com> - 5.2.0-1
|
|
|
|
- rebase per upstream release notes (#1023718)
|
|
|
|
http://www.mail-archive.com/xz-devel@tukaani.org/msg00216.html
|
2015-01-06 11:27:13 +00:00
|
|
|
- fedora-review fixes, documentation/license fixes in spec
|
2014-12-23 17:11:26 +00:00
|
|
|
|
2014-08-26 08:12:07 +00:00
|
|
|
* Tue Aug 26 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-15alpha
|
|
|
|
- xz*grep's output is colored iff grep's is (#1034846)
|
|
|
|
|
2014-08-18 11:13:05 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-14alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-06 11:50:47 +00:00
|
|
|
* Wed Aug 6 2014 Tom Callaway <spot@fedoraproject.org> - 5.1.2-13alpha
|
|
|
|
- fix license handling
|
|
|
|
|
2014-06-13 09:58:34 +00:00
|
|
|
* Fri Jun 13 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-12alpha
|
|
|
|
- xzgrep: return 0 when at least one file matches (#1109122)
|
|
|
|
|
2014-06-08 07:02:22 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-11alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-31 22:01:06 +00:00
|
|
|
* Sat May 31 2014 Peter Robinson <pbrobinson@fedoraproject.org> 5.1.2-10alpha
|
|
|
|
- Drop ChangeLog, it's big and the excitement is summarised in NEWS
|
|
|
|
|
2014-05-16 14:06:22 +00:00
|
|
|
* Fri May 16 2014 Richard W.M. Jones <rjones@redhat.com> - 5.1.2-9alpha
|
|
|
|
- Add a -static subpackage (see RHBZ#547011).
|
|
|
|
|
2014-04-02 07:35:33 +00:00
|
|
|
* Wed Apr 02 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-8alpha
|
|
|
|
- add _isa requirements where appropriate
|
2014-04-02 08:20:22 +00:00
|
|
|
- better check the version of less binary (#1015924)
|
2014-04-02 07:35:33 +00:00
|
|
|
|
2014-01-10 13:41:08 +00:00
|
|
|
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-7alpha
|
|
|
|
- build with -O3 on ppc64 (private #1051078)
|
|
|
|
|
2013-08-04 09:24:41 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-6alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-09 10:47:28 +00:00
|
|
|
* Tue Apr 09 2013 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-5alpha
|
|
|
|
- fix manual page inconsistencies with help output (private #948533)
|
2013-04-09 11:06:15 +00:00
|
|
|
- enable/fix the 'xzgrep -h' (private #850898)
|
2013-04-09 10:47:28 +00:00
|
|
|
|
2013-02-21 00:23:50 +00:00
|
|
|
* Thu Feb 21 2013 Karsten Hopp <karsten@redhat.com> 5.1.2-4alpha
|
|
|
|
- add support for ppc64p7 arch (Power7 optimized)
|
|
|
|
|
2013-02-15 04:07:49 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-22 07:29:11 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-2alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-05 14:29:29 +00:00
|
|
|
* Thu Jul 05 2012 Jindrich Novy <jnovy@redhat.com> 5.1.2alpha-1
|
|
|
|
- update to 5.1.2alpha
|
|
|
|
|
2012-01-14 09:22:40 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-2alpha
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-16 09:44:34 +00:00
|
|
|
* Sun Oct 16 2011 Jindrich Novy <jnovy@redhat.com> 5.1.1alpha-1
|
|
|
|
- update to 5.1.1alpha
|
|
|
|
|
2011-06-20 17:59:40 +00:00
|
|
|
* Mon Jun 20 2011 Jindrich Novy <jnovy@redhat.com> 5.0.3-2
|
|
|
|
- better to have upstream tarballs in different formats than XZ
|
|
|
|
to allow bootstrapping (#714765)
|
|
|
|
|
2011-05-23 10:26:28 +00:00
|
|
|
* Mon May 23 2011 Jindrich Novy <jnovy@redhat.com> 5.0.3-1
|
|
|
|
- update to 5.0.3
|
|
|
|
|
2011-04-04 10:54:21 +00:00
|
|
|
* Mon Apr 04 2011 Jindrich Novy <jnovy@redhat.com> 5.0.2-1
|
|
|
|
- update to 5.0.2
|
|
|
|
|
2011-02-08 07:13:56 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-29 16:15:53 +00:00
|
|
|
* Sat Jan 29 2011 Jindrich Novy <jnovy@redhat.com> 5.0.1-1
|
|
|
|
- update to 5.0.1
|
|
|
|
|
2010-10-26 11:34:57 +00:00
|
|
|
* Tue Oct 26 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-4
|
|
|
|
- call ldconfig for compat-libs and fix description
|
|
|
|
|
2010-10-26 08:26:11 +00:00
|
|
|
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-3
|
|
|
|
- introduce compat-libs subpackage with older soname to
|
|
|
|
resolve problems with soname bump and for packages requiring
|
|
|
|
older xz-4.999.9beta
|
|
|
|
|
2010-10-25 17:01:02 +00:00
|
|
|
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-2
|
|
|
|
- rebuild
|
|
|
|
|
2010-10-25 15:25:33 +00:00
|
|
|
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-1
|
|
|
|
- update to the new upstream release
|
|
|
|
|
2010-10-16 05:33:33 +00:00
|
|
|
* Sat Oct 16 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.3.beta.212.gacbc
|
|
|
|
- update to latest git snapshot
|
|
|
|
|
2010-04-01 19:10:00 +00:00
|
|
|
* Thu Apr 01 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20100401.beta
|
|
|
|
- sync with upstream (#578925)
|
|
|
|
|
2010-02-18 20:58:54 +00:00
|
|
|
* Thu Feb 18 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20091007.beta
|
|
|
|
- move xz man pages to main package, leave lzma ones where they belong (#566484)
|
|
|
|
|
2009-10-07 06:01:09 +00:00
|
|
|
* Wed Oct 07 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091007.beta
|
|
|
|
- sync with upstream again
|
|
|
|
|
2009-10-02 08:25:15 +00:00
|
|
|
* Fri Oct 02 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091002.beta
|
|
|
|
- sync with upstream to generate the same archives on machines with different
|
|
|
|
endianess
|
|
|
|
|
2009-08-28 02:33:26 +00:00
|
|
|
* Fri Aug 28 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.beta
|
|
|
|
- update to 4.999.9beta
|
|
|
|
|
2009-08-17 10:26:48 +00:00
|
|
|
* Mon Aug 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.10.beta.20090817git
|
|
|
|
- sync with upstream because of #517806
|
|
|
|
|
2009-08-05 13:54:59 +00:00
|
|
|
* Tue Aug 04 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.9.beta.20090804git
|
|
|
|
- update to the latest GIT snapshot
|
|
|
|
|
2009-07-27 08:50:20 +00:00
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.999.8-0.8.beta
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-17 18:19:25 +00:00
|
|
|
* Fri Jul 17 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.7.beta
|
|
|
|
- tweak summary
|
|
|
|
- add %%check section (<tibbs@math.uh.edu>)
|
|
|
|
|
|
|
|
* Thu Jul 09 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.6.beta
|
|
|
|
- fix release versioning to match guidelines
|
|
|
|
- fix up lzma-compat summary/description
|
|
|
|
- tweak licensing
|
|
|
|
|
|
|
|
* Mon Jun 22 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.5
|
|
|
|
- introduce lzma-compat subpackage
|
|
|
|
|
|
|
|
* Fri Jun 19 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.4
|
|
|
|
- try to not to conflict with lzma
|
|
|
|
|
|
|
|
* Thu Jun 18 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.3
|
|
|
|
- obsolete but don't provide lzma, they are largely incompatible
|
|
|
|
- put beta to Release
|
|
|
|
|
|
|
|
* Wed Jun 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.2
|
|
|
|
- obsolete old lzma
|
|
|
|
- add Requires: pkgconfig
|
|
|
|
|
|
|
|
* Tue Jun 16 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.1
|
|
|
|
- package XZ Utils, based on LZMA Utils packaged by Per Patrice Bouchand
|