bkabrda / rpms / xz

Forked from rpms/xz 6 years ago
Clone
af917b1
# Not needed for f21+ and probably RHEL8+
af917b1
%{!?_licensedir:%global license %%doc}
af917b1
b0e6e16
Summary:	LZMA compression utilities
b0e6e16
Name:		xz
2682d51
Version:	5.2.3
4a585f3
Release:	5%{?dist}
af917b1
af917b1
# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
af917b1
# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
af917b1
# OK), documentation is Public Domain.
af917b1
License:	GPLv2+ and Public Domain
d0b81ac
# official upstream release
729c713
Source0:	http://tukaani.org/%{name}/%{name}-%{version}.tar.xz
9907793
9907793
Source100:	colorxzgrep.sh
9907793
Source101:	colorxzgrep.csh
9907793
b0e6e16
URL:		http://tukaani.org/%{name}/
e98ab5c
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
b0e6e16
b9d7aae
# For /usr/libexec/grepconf.sh (RHBZ#1189120).
b9d7aae
# Unfortunately F21 has a newer version of grep which doesn't
b9d7aae
# have grepconf, but we're only concerned with F22 here.
85e1e28
Requires:	grep >= 2.20-5
b9d7aae
c14c321
BuildRequires:	perl-interpreter
e94ff72
d23e308
b0e6e16
%description
b0e6e16
XZ Utils are an attempt to make LZMA compression easy to use on free (as in
b0e6e16
freedom) operating systems. This is achieved by providing tools and libraries
b0e6e16
which are similar to use than the equivalents of the most popular existing
b0e6e16
compression algorithms.
b0e6e16
b0e6e16
LZMA is a general purpose compression algorithm designed by Igor Pavlov as
b0e6e16
part of 7-Zip. It provides high compression ratio while keeping the
b0e6e16
decompression speed fast.
b0e6e16
b0e6e16
%package 	libs
b0e6e16
Summary:	Libraries for decoding LZMA compression
af917b1
License:	Public Domain
ab17568
Obsoletes:	%{name}-compat-libs < %{version}-%{release}
b0e6e16
b0e6e16
%description 	libs
b0e6e16
Libraries for decoding files compressed with LZMA or XZ utils.
b0e6e16
083f3ed
%package 	static
083f3ed
Summary:	Statically linked library for decoding LZMA compression
af917b1
License:	Public Domain
083f3ed
083f3ed
%description 	static
083f3ed
Statically linked library for decoding files compressed with LZMA or
083f3ed
XZ utils.  Most users should *not* install this.
083f3ed
b0e6e16
%package 	devel
b0e6e16
Summary:	Devel libraries & headers for liblzma
af917b1
License:	Public Domain
e98ab5c
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
b0e6e16
d0b81ac
%description	devel
b0e6e16
Devel libraries and headers for liblzma.
b0e6e16
b0e6e16
%package 	lzma-compat
b0e6e16
Summary:	Older LZMA format compatibility binaries
af917b1
# Just a set of symlinks to 'xz' + two Public Domain binaries.
af917b1
License:	Public Domain
e75244b
Requires:	%{name}%{?_isa} = %{version}-%{release}
e01c981
Obsoletes:	lzma < %{version}
e01c981
Provides:	lzma = %{version}
b0e6e16
d0b81ac
%description	lzma-compat
b0e6e16
The lzma-compat package contains compatibility links for older
b0e6e16
commands that deal with the older LZMA format.
b0e6e16
b0e6e16
%prep
4a585f3
%autosetup
e01a5ab
8ead555
for i in `find . -name config.sub`; do
8ead555
  perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" $i
8ead555
done
b0e6e16
b0e6e16
%build
e7de512
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
e7de512
%ifarch %{power64}
e7de512
    CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|^-O2$|-O3|g' | xargs -n 100`
e7de512
%endif
e7de512
export CFLAGS
e7de512
083f3ed
%configure
b0e6e16
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
b0e6e16
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
4a585f3
%make_build
b0e6e16
b0e6e16
%install
4a585f3
%make_install
c10ae94
rm -f %{buildroot}%{_libdir}/*.la
e75244b
e75244b
# xzgrep colorization
9907793
%global profiledir %{_sysconfdir}/profile.d
9907793
mkdir -p %{buildroot}%{profiledir}
9907793
install -p -m 644 %{SOURCE100} %{buildroot}%{profiledir}
9907793
install -p -m 644 %{SOURCE101} %{buildroot}%{profiledir}
9907793
e75244b
%find_lang %name
e75244b
b0e6e16
%check
b0e6e16
LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
b0e6e16
b0e6e16
%post libs -p /sbin/ldconfig
b0e6e16
b0e6e16
%postun libs -p /sbin/ldconfig
b0e6e16
e75244b
%files -f %{name}.lang
af917b1
%license %{_pkgdocdir}/COPYING*
af917b1
%doc %{_pkgdocdir}
af917b1
%exclude %_pkgdocdir/examples*
b0e6e16
%{_bindir}/*xz*
94b5c3a
%{_mandir}/man1/*xz*
9907793
%{profiledir}/*
b0e6e16
b0e6e16
%files libs
af917b1
%license %{_pkgdocdir}/COPYING
d0b81ac
%{_libdir}/lib*.so.5*
d0b81ac
083f3ed
%files static
af917b1
%license %{_pkgdocdir}/COPYING
083f3ed
%{_libdir}/liblzma.a
083f3ed
b0e6e16
%files devel
b0e6e16
%dir %{_includedir}/lzma
b0e6e16
%{_includedir}/lzma/*.h
b0e6e16
%{_includedir}/lzma.h
b0e6e16
%{_libdir}/*.so
b0e6e16
%{_libdir}/pkgconfig/liblzma.pc
af917b1
%doc %_pkgdocdir/examples*
b0e6e16
b0e6e16
%files lzma-compat
b0e6e16
%{_bindir}/*lz*
94b5c3a
%{_mandir}/man1/*lz*
b0e6e16
b0e6e16
%changelog
4a585f3
* Wed Sep 13 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 5.2.3.-5
4a585f3
- Cleanup spec
4a585f3
3f9bd00
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-4
3f9bd00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3f9bd00
522f5e4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-3
522f5e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
522f5e4
c278115
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.3-2
c278115
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c278115
2682d51
* Mon Jan 02 2017 Pavel Raiskup <praiskup@redhat.com> - 5.2.3-1
2682d51
- rebase to stable 5.2.3 per release notes:
2682d51
  http://www.mail-archive.com/xz-devel@tukaani.org/msg00285.html
2682d51
e94ff72
* Mon Nov 28 2016 Lubomir Rintel <lkundrak@v3.sk> - 5.2.2-3
e94ff72
- Fix FTBFS by requiring Perl
e94ff72
3d0c4e5
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
3d0c4e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3d0c4e5
9d7db2c
* Tue Sep 29 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.2-1
9d7db2c
- rebase to stable 5.2.2 per release notes:
9d7db2c
  http://www.mail-archive.com/xz-devel@tukaani.org/msg00244.html
9d7db2c
ab17568
* Thu Jul 09 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.1-3
ab17568
- remove xz-compat-libs as it is not necessary (#1179193)
ab17568
2f19c9b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.1-2
2f19c9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f19c9b
85e1e28
* Fri Feb 27 2015 Pavel Raiskup <praiskup@redhat.com> - 5.2.1-1
71848cf
- bugfix rebase to 5.2.1, per release notes
85e1e28
  http://www.mail-archive.com/xz-devel@tukaani.org/msg00226.html
85e1e28
b9d7aae
* Wed Feb 04 2015 Richard W.M. Jones <rjones@redhat.com> - 5.2.0-2
b9d7aae
- Depend on grep that contains grepconf.sh (#1189120)
b9d7aae
729c713
* Tue Dec 23 2014 Pavel Raiskup <praiskup@redhat.com> - 5.2.0-1
729c713
- rebase per upstream release notes (#1023718)
729c713
  http://www.mail-archive.com/xz-devel@tukaani.org/msg00216.html
af917b1
- fedora-review fixes, documentation/license fixes in spec
729c713
9907793
* Tue Aug 26 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-15alpha
9907793
- xz*grep's output is colored iff grep's is (#1034846)
9907793
4f5a18f
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-14alpha
4f5a18f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4f5a18f
b40d969
* Wed Aug  6 2014 Tom Callaway <spot@fedoraproject.org> - 5.1.2-13alpha
b40d969
- fix license handling
b40d969
d23e308
* Fri Jun 13 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-12alpha
d23e308
- xzgrep: return 0 when at least one file matches (#1109122)
d23e308
19677d2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-11alpha
19677d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
19677d2
ff60bb3
* Sat May 31 2014 Peter Robinson <pbrobinson@fedoraproject.org> 5.1.2-10alpha
ff60bb3
- Drop ChangeLog, it's big and the excitement is summarised in NEWS
ff60bb3
083f3ed
* Fri May 16 2014 Richard W.M. Jones <rjones@redhat.com> - 5.1.2-9alpha
083f3ed
- Add a -static subpackage (see RHBZ#547011).
083f3ed
21e8be4
* Wed Apr 02 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-8alpha
21e8be4
- add _isa requirements where appropriate
c7e9123
- better check the version of less binary (#1015924)
21e8be4
e7de512
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-7alpha
e7de512
- build with -O3 on ppc64 (private #1051078)
e7de512
70817f0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-6alpha
70817f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70817f0
e01a5ab
* Tue Apr 09 2013 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-5alpha
e01a5ab
- fix manual page inconsistencies with help output (private #948533)
f209416
- enable/fix the 'xzgrep -h' (private #850898)
e01a5ab
8ead555
* Thu Feb 21 2013 Karsten Hopp <karsten@redhat.com> 5.1.2-4alpha
8ead555
- add support for ppc64p7 arch (Power7 optimized)
8ead555
6d9e112
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-3alpha
6d9e112
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6d9e112
5177d25
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-2alpha
5177d25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5177d25
39fd730
* Thu Jul 05 2012 Jindrich Novy <jnovy@redhat.com> 5.1.2alpha-1
39fd730
- update to 5.1.2alpha
39fd730
f25b55a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-2alpha
f25b55a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f25b55a
2a1159f
* Sun Oct 16 2011 Jindrich Novy <jnovy@redhat.com> 5.1.1alpha-1
2a1159f
- update to 5.1.1alpha
2a1159f
3e3d119
* Mon Jun 20 2011 Jindrich Novy <jnovy@redhat.com> 5.0.3-2
3e3d119
- better to have upstream tarballs in different formats than XZ
3e3d119
  to allow bootstrapping (#714765)
3e3d119
f711a84
* Mon May 23 2011 Jindrich Novy <jnovy@redhat.com> 5.0.3-1
f711a84
- update to 5.0.3
f711a84
d4141b0
* Mon Apr 04 2011 Jindrich Novy <jnovy@redhat.com> 5.0.2-1
d4141b0
- update to 5.0.2
d4141b0
1232e46
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-2
1232e46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1232e46
9f9e6ac
* Sat Jan 29 2011 Jindrich Novy <jnovy@redhat.com> 5.0.1-1
9f9e6ac
- update to 5.0.1
9f9e6ac
609b71d
* Tue Oct 26 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-4
609b71d
- call ldconfig for compat-libs and fix description
609b71d
d0b81ac
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-3
d0b81ac
- introduce compat-libs subpackage with older soname to
d0b81ac
  resolve problems with soname bump and for packages requiring
d0b81ac
  older xz-4.999.9beta
d0b81ac
796290b
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-2
796290b
- rebuild
796290b
e01c981
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> 5.0.0-1
e01c981
- update to the new upstream release
e01c981
09a5ed2
* Sat Oct 16 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.3.beta.212.gacbc
09a5ed2
- update to latest git snapshot
09a5ed2
c10ae94
* Thu Apr 01 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20100401.beta
c10ae94
- sync with upstream (#578925)
c10ae94
94b5c3a
* Thu Feb 18 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20091007.beta
94b5c3a
- move xz man pages to main package, leave lzma ones where they belong (#566484)
94b5c3a
7dc0cee
* Wed Oct 07 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091007.beta
7dc0cee
- sync with upstream again
7dc0cee
c89b152
* Fri Oct 02 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091002.beta
c89b152
- sync with upstream to generate the same archives on machines with different
c89b152
  endianess
c89b152
d0946b8
* Fri Aug 28 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.beta
d0946b8
- update to 4.999.9beta
d0946b8
2eacfee
* Mon Aug 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.10.beta.20090817git
2eacfee
- sync with upstream because of #517806
2eacfee
e9575d3
* Tue Aug 04 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.9.beta.20090804git
e9575d3
- update to the latest GIT snapshot
e9575d3
79a4930
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.999.8-0.8.beta
79a4930
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
79a4930
b0e6e16
* Fri Jul 17 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.7.beta
b0e6e16
- tweak summary
b0e6e16
- add %%check section (<tibbs@math.uh.edu>)
b0e6e16
 
b0e6e16
* Thu Jul 09 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.6.beta
b0e6e16
- fix release versioning to match guidelines
b0e6e16
- fix up lzma-compat summary/description
b0e6e16
- tweak licensing
b0e6e16
b0e6e16
* Mon Jun 22 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.5
b0e6e16
- introduce lzma-compat subpackage
b0e6e16
b0e6e16
* Fri Jun 19 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.4
b0e6e16
- try to not to conflict with lzma
b0e6e16
b0e6e16
* Thu Jun 18 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.3
b0e6e16
- obsolete but don't provide lzma, they are largely incompatible
b0e6e16
- put beta to Release
b0e6e16
b0e6e16
* Wed Jun 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.2
b0e6e16
- obsolete old lzma
b0e6e16
- add Requires: pkgconfig
b0e6e16
b0e6e16
* Tue Jun 16 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.1
b0e6e16
- package XZ Utils, based on LZMA Utils packaged by Per Patrice Bouchand