SHA256
3
0
forked from pool/xz

Accepting request 359928 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/359928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=55
This commit is contained in:
Dominique Leuenberger 2016-02-22 09:09:36 +00:00 committed by Git OBS Bridge
commit bff3b2bac8
2 changed files with 14 additions and 25 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Feb 14 09:21:33 UTC 2016 - tchvatal@suse.com
- Do not split out lang_package conditional, used in sle10 out of support
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 10 14:34:14 UTC 2015 - hpj@urpla.net Tue Nov 10 14:34:14 UTC 2015 - hpj@urpla.net

34
xz.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package xz # spec file for package xz
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,6 +18,12 @@
# avoid bootstrapping problem # avoid bootstrapping problem
%define _binary_payload w9.bzdio %define _binary_payload w9.bzdio
%if 0%{?suse_version} < 1130
%define do_profiling 0
%endif
%ifarch aarch64 %arm %{sparc}
%define do_profiling 0
%endif
%if 0%{?centos_version} || 0%{?rhel_version} %if 0%{?centos_version} || 0%{?rhel_version}
%if 0%{?centos_version} <= 600 || 0%{?rhel_version <= 600} %if 0%{?centos_version} <= 600 || 0%{?rhel_version <= 600}
%bcond_without static_libs %bcond_without static_libs
@ -25,12 +31,6 @@
%else %else
%bcond_with static_libs %bcond_with static_libs
%endif %endif
%if 0%{?suse_version} < 1130
%define do_profiling 0
%endif
%ifarch aarch64 %{arm} %{sparc}
%define do_profiling 0
%endif
Name: xz Name: xz
Version: 5.2.2 Version: 5.2.2
Release: 0 Release: 0
@ -55,23 +55,18 @@ Recommends: %{name}-lang
%description %description
The xz command is a very powerful program for compressing files. The xz command is a very powerful program for compressing files.
* Average compression ratio of LZMA is about 30% better than that of * Average compression ratio of LZMA is about 30% better than that of
gzip, and 15% better than that of bzip2. gzip, and 15% better than that of bzip2.
* Decompression speed is only little slower than that of gzip, being * Decompression speed is only little slower than that of gzip, being
two to five times faster than bzip2. two to five times faster than bzip2.
* In fast mode, compresses faster than bzip2 with a comparable * In fast mode, compresses faster than bzip2 with a comparable
compression ratio. compression ratio.
* Achieving the best compression ratios takes four to even twelve * Achieving the best compression ratios takes four to even twelve
times longer than with bzip2. However. this doesn't affect times longer than with bzip2. However. this doesn't affect
decompressing speed. decompressing speed.
* Very similar command line interface to what gzip and bzip2 have. * Very similar command line interface to what gzip and bzip2 have.
%{?lang_package} %lang_package
%package -n liblzma5 %package -n liblzma5
Summary: LZMA library Summary: LZMA library
@ -94,7 +89,6 @@ This package contains the header files and libraries needed for
compiling programs using the LZMA library. compiling programs using the LZMA library.
%if %{with static_libs} %if %{with static_libs}
%package static-devel %package static-devel
Summary: Static version of LZMA library Summary: Static version of LZMA library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
@ -116,7 +110,7 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie"
%endif %endif
--with-pic \ --with-pic \
--docdir=%{_docdir}/%{name} --docdir=%{_docdir}/%{name}
%if %{do_profiling} %if 0%{do_profiling}
profiledir=$(mktemp -d) profiledir=$(mktemp -d)
trap "rm -rf $profiledir" EXIT trap "rm -rf $profiledir" EXIT
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir" make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}=$profiledir"
@ -138,21 +132,12 @@ cp -p %{SOURCE4} %{buildroot}%{_bindir}
cp -p %{SOURCE5} %{buildroot}%{_mandir}/man1/ cp -p %{SOURCE5} %{buildroot}%{_mandir}/man1/
%post -n liblzma5 -p /sbin/ldconfig %post -n liblzma5 -p /sbin/ldconfig
%postun -n liblzma5 -p /sbin/ldconfig %postun -n liblzma5 -p /sbin/ldconfig
%if 0%{?lang_package:1} > 0
%files lang -f %{name}.lang %files lang -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
%files %files
%defattr(-,root,root)
%else
%files -f %{name}.lang
%defattr(-, root, root)
%endif
%defattr(-, root, root) %defattr(-, root, root)
%{_docdir}/%{name} %{_docdir}/%{name}
%{_bindir}/* %{_bindir}/*
@ -170,7 +155,6 @@ cp -p %{SOURCE5} %{buildroot}%{_mandir}/man1/
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%if %{with static_libs} %if %{with static_libs}
%files static-devel %files static-devel
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/*.a %{_libdir}/*.a