2009-02-10 05:05:14 +01:00
|
|
|
#
|
2011-03-07 14:56:53 +01:00
|
|
|
# spec file for package xz
|
2009-02-10 05:05:14 +01:00
|
|
|
#
|
2011-03-07 14:56:53 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-02-10 05:05:14 +01:00
|
|
|
#
|
|
|
|
# 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
|
2011-06-08 21:26:22 +02:00
|
|
|
Version: 5.0.3
|
2011-06-15 08:54:47 +02:00
|
|
|
Release: 2
|
2009-02-10 05:05:14 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
2011-12-06 19:18:27 +01:00
|
|
|
License: LGPL-2.1+
|
2009-02-10 05:05:14 +01:00
|
|
|
Url: http://tukaani.org/lzma/
|
2011-09-17 17:19:48 +02:00
|
|
|
Source: http://tukaani.org/xz/%{name}-%{version}.tar.bz2
|
2010-02-12 08:01:55 +01:00
|
|
|
Source2: baselibs.conf
|
2009-02-10 05:05:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-26 19:58:10 +02:00
|
|
|
BuildRequires: pkgconfig
|
2009-02-10 05:05:14 +01:00
|
|
|
Provides: lzma = %version
|
|
|
|
Obsoletes: lzma < %version
|
2011-09-26 19:58:10 +02:00
|
|
|
|
2011-09-27 15:40:01 +02:00
|
|
|
%if 0%{?suse_version} < 1130
|
2011-09-26 19:58:10 +02:00
|
|
|
%define do_profiling 0
|
|
|
|
%endif
|
2011-10-10 15:48:55 +02:00
|
|
|
%ifarch %{arm}
|
|
|
|
%define do_profiling 0
|
|
|
|
%endif
|
2011-09-26 19:58:10 +02:00
|
|
|
|
2011-09-27 15:40:01 +02:00
|
|
|
%if 0%{?lang_package:1} > 0
|
2011-06-14 18:06:32 +02:00
|
|
|
Recommends: %name-lang
|
2011-09-26 19:58:10 +02:00
|
|
|
%endif
|
2009-02-16 12:27:19 +01:00
|
|
|
# avoid bootstrapping problem
|
|
|
|
%define _binary_payload w9.bzdio
|
2009-02-10 05:05:14 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-09-27 15:40:01 +02:00
|
|
|
%{?lang_package}
|
2011-09-26 19:58:10 +02:00
|
|
|
|
2010-10-28 11:18:03 +02:00
|
|
|
%package -n liblzma5
|
2011-12-06 19:18:27 +01:00
|
|
|
License: LGPL-2.1+
|
2009-02-10 05:05:14 +01:00
|
|
|
Summary: LZMA library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2010-10-28 11:18:03 +02:00
|
|
|
%description -n liblzma5
|
2009-02-10 05:05:14 +01:00
|
|
|
Library for encoding/decoding LZMA files.
|
|
|
|
|
|
|
|
%package devel
|
2011-12-06 19:18:27 +01:00
|
|
|
License: LGPL-2.1+
|
2009-02-10 05:05:14 +01:00
|
|
|
Summary: Development package for the LZMA library
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-10-28 11:18:03 +02:00
|
|
|
Requires: liblzma5 = %{version}
|
2009-02-10 05:05:14 +01:00
|
|
|
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
|
2010-10-28 11:18:03 +02:00
|
|
|
%setup -q
|
2009-02-10 05:05:14 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-10 15:48:55 +02:00
|
|
|
%if %{do_profiling}
|
2010-12-07 19:58:20 +01:00
|
|
|
profiledir=$(mktemp -d)
|
|
|
|
trap "rm -rf $profiledir" EXIT
|
|
|
|
export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir"
|
|
|
|
%endif
|
2011-10-10 15:48:55 +02:00
|
|
|
%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name
|
2010-10-31 17:42:32 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-10-10 15:48:55 +02:00
|
|
|
%if %{do_profiling}
|
2010-12-07 19:58:20 +01:00
|
|
|
time make check
|
|
|
|
make clean
|
|
|
|
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"
|
|
|
|
%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%endif
|
2009-02-10 05:05:14 +01:00
|
|
|
|
2009-09-05 00:17:35 +02:00
|
|
|
%check
|
2010-12-07 19:58:20 +01:00
|
|
|
time make check
|
2009-09-05 00:17:35 +02:00
|
|
|
|
2009-02-10 05:05:14 +01:00
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2009-06-12 16:04:38 +02:00
|
|
|
%{__mkdir_p} %{buildroot}%{_libdir}
|
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/liblzma.so) %{buildroot}%{_libdir}/liblzma.so
|
|
|
|
%{__mv} -v %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/liblzma.{so,la}
|
2010-10-28 11:18:03 +02:00
|
|
|
%find_lang %{name}
|
2009-02-10 05:05:14 +01:00
|
|
|
|
2010-10-28 11:18:03 +02:00
|
|
|
%post -n liblzma5 -p /sbin/ldconfig
|
2009-02-10 05:05:14 +01:00
|
|
|
|
2010-10-28 11:18:03 +02:00
|
|
|
%postun -n liblzma5 -p /sbin/ldconfig
|
2009-02-10 05:05:14 +01:00
|
|
|
|
2011-09-27 15:40:01 +02:00
|
|
|
%if 0%{?lang_package:1} > 0
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2011-09-26 19:58:10 +02:00
|
|
|
|
2009-02-10 05:05:14 +01:00
|
|
|
%files
|
2011-09-26 19:58:10 +02:00
|
|
|
%else
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%endif
|
2009-02-10 05:05:14 +01:00
|
|
|
%defattr(-, root, root)
|
2009-08-22 03:40:19 +02:00
|
|
|
%_docdir/%name
|
2009-02-10 05:05:14 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man?/*
|
|
|
|
|
2010-10-28 11:18:03 +02:00
|
|
|
%files -n liblzma5
|
2009-02-10 05:05:14 +01:00
|
|
|
%defattr(-, root, root)
|
2010-10-28 11:18:03 +02:00
|
|
|
/%{_lib}/lib*.so.5*
|
2009-02-10 05:05:14 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_includedir}/lzma
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|