- Use gzipped archive to prevent a build cycle on older targets
* http://lists.opensuse.org/opensuse-buildservice/2013-10/msg00079.html - Add a signature and keyring file for source verification * not enable in spec due bootstrapping issues - Update to version 5.0.5 * lzmadec and liblzma's lzma_alone_decoder(): Support decompressing .lzma files that have less common settings in the headers (dictionary size other than 2^n or 2^n + 2^(n-1), or uncompressed size greater than 256 GiB). * xz: - Fixes and improvements to error handling. - Various fixes to the man page. * xzless: Fixed to work with "less" versions 448 and later * xzgrep: Made -h an alias for --no-filename. - Disable profiling for aarch64 arch - Update to version 5.0.4 * liblzma: - Fix lzma_index_init(). It could crash if memory allocation failed. - Fix the possibility of an incorrect LZMA_BUF_ERROR when a BCJ filter is used and the application only provides exactly as much output space as is the uncompressed size of the file. - Fix a bug in doc/examples_old/xz_pipe_decompress.c. It didn't check if the last call to lzma_code() really returned LZMA_STREAM_END, which made the program think that truncated files are valid. - New example programs in doc/examples (old programs are now in OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=59
This commit is contained in:
146
xz.spec
Normal file
146
xz.spec
Normal file
@@ -0,0 +1,146 @@
|
||||
#
|
||||
# spec file for package xz
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: xz
|
||||
Summary: A Program for Compressing Files
|
||||
License: LGPL-2.1+ and GPL-2.0+
|
||||
Group: Productivity/Archiving/Compression
|
||||
Version: 5.0.5
|
||||
Release: 0
|
||||
Url: http://tukaani.org/lzma/
|
||||
Source0: http://tukaani.org/xz/%{name}-%{version}.tar.gz
|
||||
Source1: http://tukaani.org/xz/%{name}-%{version}.tar.gz.sig
|
||||
Source2: baselibs.conf
|
||||
Source3: xz.keyring
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: pkgconfig
|
||||
Provides: lzma = %version
|
||||
Obsoletes: lzma < %version
|
||||
|
||||
%if 0%{?suse_version} < 1130
|
||||
%define do_profiling 0
|
||||
%endif
|
||||
%ifarch aarch64 %{arm} %sparc
|
||||
%define do_profiling 0
|
||||
%endif
|
||||
|
||||
%if 0%{?lang_package:1} > 0
|
||||
Recommends: %name-lang
|
||||
%endif
|
||||
# avoid bootstrapping problem
|
||||
%define _binary_payload w9.bzdio
|
||||
|
||||
%description
|
||||
The xz command is a very powerful program for compressing files.
|
||||
|
||||
* Average compression ratio of LZMA is about 30% better than that of
|
||||
gzip, and 15% better than that of bzip2.
|
||||
|
||||
* Decompression speed is only little slower than that of gzip, being
|
||||
two to five times faster than bzip2.
|
||||
|
||||
* In fast mode, compresses faster than bzip2 with a comparable
|
||||
compression ratio.
|
||||
|
||||
* Achieving the best compression ratios takes four to even twelve
|
||||
times longer than with bzip2. However. this doesn't affect
|
||||
decompressing speed.
|
||||
|
||||
* Very similar command line interface to what gzip and bzip2 have.
|
||||
|
||||
%{?lang_package}
|
||||
|
||||
%package -n liblzma5
|
||||
Summary: LZMA library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n liblzma5
|
||||
Library for encoding/decoding LZMA files.
|
||||
|
||||
%package devel
|
||||
Summary: Development package for the LZMA library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: liblzma5 = %{version}
|
||||
Provides: lzma-devel = %version
|
||||
Obsoletes: lzma-devel < %version
|
||||
Provides: lzma-alpha-devel = %version
|
||||
Obsoletes: lzma-alpha-devel < %version
|
||||
|
||||
%description devel
|
||||
This package contains the header files and libraries needed for
|
||||
compiling programs using the LZMA library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%if %{do_profiling}
|
||||
profiledir=$(mktemp -d)
|
||||
trap "rm -rf $profiledir" EXIT
|
||||
export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir"
|
||||
%endif
|
||||
%configure --disable-static --with-pic --docdir=%_docdir/%name
|
||||
make %{?_smp_mflags}
|
||||
%if %{do_profiling}
|
||||
time make check
|
||||
make clean
|
||||
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"
|
||||
%configure --disable-static --with-pic --docdir=%_docdir/%name
|
||||
make %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%check
|
||||
time make check
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{__rm} -v %{buildroot}%{_libdir}/liblzma.la
|
||||
%find_lang %{name}
|
||||
|
||||
%post -n liblzma5 -p /sbin/ldconfig
|
||||
|
||||
%postun -n liblzma5 -p /sbin/ldconfig
|
||||
|
||||
%if 0%{?lang_package:1} > 0
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-, root, root)
|
||||
|
||||
%files
|
||||
%else
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-, root, root)
|
||||
%endif
|
||||
%defattr(-, root, root)
|
||||
%_docdir/%name
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man?/*
|
||||
|
||||
%files -n liblzma5
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/lib*.so.5*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
%{_includedir}/*.h
|
||||
%{_includedir}/lzma
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user