SHA256
1
0
forked from pool/xz

Accepting request 509345 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/509345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=60
This commit is contained in:
Dominique Leuenberger 2017-07-21 20:35:06 +00:00 committed by Git OBS Bridge
commit 015c8f8eb8
2 changed files with 23 additions and 11 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Jul 10 10:50:01 UTC 2017 - jengelh@inai.de
- % needs to be encoded in description; adjust weird indent there
as well. Expand LZMA in summaries.
-------------------------------------------------------------------
Fri Jun 30 18:25:33 UTC 2017 - olaf@aepfle.de
- Really use the selfdefined CFLAGS during build to fix build
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 25 11:37:03 UTC 2017 - astieger@suse.com Sun Jun 25 11:37:03 UTC 2017 - astieger@suse.com

23
xz.spec
View File

@ -21,7 +21,7 @@
Name: xz Name: xz
Version: 5.2.3 Version: 5.2.3
Release: 0 Release: 0
Summary: A Program for Compressing Files Summary: A Program for Compressing Files with the LempelZivMarkov algorithm
License: LGPL-2.1+ AND GPL-2.0+ License: LGPL-2.1+ AND GPL-2.0+
Group: Productivity/Archiving/Compression Group: Productivity/Archiving/Compression
Url: http://tukaani.org/xz/ Url: http://tukaani.org/xz/
@ -41,22 +41,22 @@ Recommends: %{name}-lang
%endif %endif
%description %description
The xz command is a very powerful program for compressing files. The xz command is a 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 does not 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: LempelZivMarkov chain algorithm compression library
Group: System/Libraries Group: System/Libraries
%description -n liblzma5 %description -n liblzma5
@ -93,10 +93,10 @@ export LDFLAGS="-Wl,-z,relro,-z,now -pie"
--with-pic \ --with-pic \
--docdir=%{_docdir}/%{name} --docdir=%{_docdir}/%{name}
%if 0%{?do_profiling} %if 0%{?do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" make %{?_smp_mflags} CFLAGS="${CFLAGS} %{cflags_profile_generate}"
make check %{?_smp_mflags} make check %{?_smp_mflags}
make clean make clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" make %{?_smp_mflags} CFLAGS="${CFLAGS} %{cflags_profile_feedback}"
%else %else
make %{?_smp_mflags} make %{?_smp_mflags}
%endif %endif
@ -108,6 +108,7 @@ make %{?_smp_mflags} check
%if 0%{?make_install:1} %if 0%{?make_install:1}
%make_install %make_install
%else %else
# Retain this line, with trailing #, to work around an overly eager spec-cleaner
make DESTDIR=%{buildroot} install %{?_smp_mflags} # make DESTDIR=%{buildroot} install %{?_smp_mflags} #
%endif %endif
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print