]> 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 93feffaa29d158873b01ae4b5e7f5a6dcc2368bb..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.0
-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: f3c0706d100ad2b6d63327584d026c50
+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,12 +133,11 @@ 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
 
-:> %{name}.lang
-#%%find_lang %{name}
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -145,15 +145,19 @@ rm -rf $RPM_BUILD_ROOT
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/XZ_OPT
-%attr(755,root,root) %{_bindir}/*lz*
-%attr(755,root,root) %{_bindir}/*xz*
-%{_mandir}/man1/[lx]z*.1*
-%{_mandir}/man1/un[lx]z*.1*
-
-%files libs -f %{name}.lang
+%attr(755,root,root) %{_bindir}/lz*
+%attr(755,root,root) %{_bindir}/unlzma
+%attr(755,root,root) %{_bindir}/unxz
+%attr(755,root,root) %{_bindir}/xz*
+%{_mandir}/man1/lz*.1*
+%{_mandir}/man1/unlzma.1*
+%{_mandir}/man1/unxz.1*
+%{_mandir}/man1/xz*.1*
+
+%files libs
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING README THANKS
 %doc doc/*.txt
This page took 0.036505 seconds and 4 git commands to generate.