]> git.pld-linux.org Git - packages/xz.git/blobdiff - xz.spec
- rel 2; default parallel compression
[packages/xz.git] / xz.spec
diff --git a/xz.spec b/xz.spec
index d435544fc8ce748f69ff534cd9d3ee472f40aee3..72d837acde4a0fe4dd75e10dddf29a1304208a84 100644 (file)
--- a/xz.spec
+++ b/xz.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without tests   # don't perform make check
-%bcond_without asm             # ix86 asm optimizations
+%bcond_without asm     # ix86 asm optimizations
 
 %ifnarch %{ix86}
 # Speed-optimized CRC64 using slicing-by-four algorithm. This uses only i386
 Summary:       LZMA Encoder/Decoder
 Summary(pl.UTF-8):     Koder/Dekoder LZMA
 Name:          xz
-Version:       5.0.1
-Release:       1
+Version:       5.1.1
+Release:       2
 Epoch:         1
 License:       LGPL v2.1+, helper scripts on GPL v2+
 Group:         Applications/Archiving
-Source0:       http://tukaani.org/xz/%{name}-%{version}.tar.gz
-# Source0-md5: 60044a5701997e4e0904257197208ea9
+Source0:       http://tukaani.org/xz/%{name}-%{version}alpha.tar.gz
+# Source0-md5: bb24436fa12780808e1c142980484104
+Patch0:                %{name}-parallel.patch
 URL:           http://tukaani.org/xz/
 %{?with_asm:BuildRequires:     gcc >= 5:3.4}
 BuildRequires: rpm >= 4.4.9-56
@@ -36,7 +37,6 @@ Obsoletes:    lzma < 1:4.999.6
 Conflicts:     rpm < 4.4.9
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-
 %description
 LZMA is default and general compression method of 7z format in 7-Zip
 program. LZMA provides high compression ratio and very fast
@@ -115,7 +115,8 @@ LZMA static library.
 Biblioteka statyczna LZMA.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}alpha
+%patch0 -p1
 
 %build
 %configure \
@@ -132,7 +133,7 @@ install -d $RPM_BUILD_ROOT/{etc/env.d,%{_lib}}
        DESTDIR=$RPM_BUILD_ROOT
 
 mv -f $RPM_BUILD_ROOT%{_libdir}/liblzma.so.* $RPM_BUILD_ROOT/%{_lib}
-ln -sf /%{_lib}/liblzma.so.5.0.0 $RPM_BUILD_ROOT%{_libdir}/liblzma.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblzma.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/liblzma.so
 
 echo '#XZ_OPT="--threads=2"' > $RPM_BUILD_ROOT/etc/env.d/XZ_OPT
 
This page took 0.03165 seconds and 4 git commands to generate.