]> git.pld-linux.org Git - packages/xz.git/blobdiff - xz.spec
Revert back to 5.4.6 as 5.6.x are BACKDOORED! https://www.openwall.com/lists/oss...
[packages/xz.git] / xz.spec
diff --git a/xz.spec b/xz.spec
index e1ca66abb5ee2d29042aa20ed7d3f048cd58a1cf..8094d11af072c300704b8956038087613314bf1e 100644 (file)
--- a/xz.spec
+++ b/xz.spec
@@ -1,7 +1,8 @@
 #
 # Conditional build:
-%bcond_without tests   # don't perform make check
-%bcond_without asm     # ix86 asm optimizations
+%bcond_without tests           # don't perform make check
+%bcond_without asm             # ix86 asm optimizations
+%bcond_without static_libs     # static library
 
 %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.2.6
+Version:       5.4.6
 Release:       2
-Epoch:         1
+Epoch:         2
 License:       LGPL v2.1+, helper scripts on GPL v2+
 Group:         Applications/Archiving
-Source0:       https://tukaani.org/xz/%{name}-%{version}.tar.bz2
-# Source0-md5: 2138d1c1ccd9cc4c972fd89cff0bb2b4
+Source0:       https://github.com/tukaani-project/xz/releases/download/v%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 098549e685e27620f2fe2883b02c35f2
 Patch0:                %{name}-parallel.patch
 Patch1:                %{name}-memlimit.patch
-Patch2:                %{name}-ksh.patch
 URL:           https://tukaani.org/xz/
 %{?with_asm:BuildRequires:     gcc >= 5:3.4}
 BuildRequires: rpm >= 4.4.9-56
-BuildRequires: rpmbuild(macros) >= 1.402
+BuildRequires: rpmbuild(macros) >= 1.527
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Suggests:      mktemp
 Provides:      lzma = %{epoch}:%{version}-%{release}
@@ -91,7 +91,7 @@ Biblioteka współdzielona LZMA.
 Summary:       Header file for LZMA library
 Summary(pl.UTF-8):     Plik nagłówkowy biblioteki LZMA
 Group:         Development/Libraries
-Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+Requires:      %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
 Provides:      lzma-devel = %{epoch}:%{version}-%{release}
 Obsoletes:     lzma-devel < 1:4.999.6
 
@@ -119,11 +119,11 @@ Biblioteka statyczna LZMA.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
 %configure \
-       %{!?with_asm:--disable-assembler}
+       %{!?with_asm:--disable-assembler} \
+       %{__enable_disable static_libs static}
 %{__make}
 
 %{?with_tests:%{__make} check}
@@ -143,8 +143,6 @@ cp -a doc/examples*  $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 mv -f $RPM_BUILD_ROOT%{_libdir}/liblzma.so.* $RPM_BUILD_ROOT/%{_lib}
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblzma.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/liblzma.so
 
-mv $RPM_BUILD_ROOT%{_mandir}/fr{_FR,}
-
 echo '#XZ_OPT="--threads=2"' > $RPM_BUILD_ROOT/etc/env.d/XZ_OPT
 
 %find_lang %{name}
@@ -174,6 +172,22 @@ rm -rf $RPM_BUILD_ROOT
 %lang(fr) %{_mandir}/fr/man1/unlzma.1*
 %lang(fr) %{_mandir}/fr/man1/unxz.1*
 %lang(fr) %{_mandir}/fr/man1/xz*.1*
+%lang(ko) %{_mandir}/ko/man1/lz*.1*
+%lang(ko) %{_mandir}/ko/man1/unlzma.1*
+%lang(ko) %{_mandir}/ko/man1/unxz.1*
+%lang(ko) %{_mandir}/ko/man1/xz*.1*
+%lang(pt_BR) %{_mandir}/pt_BR/man1/lz*.1*
+%lang(pt_BR) %{_mandir}/pt_BR/man1/unlzma.1*
+%lang(pt_BR) %{_mandir}/pt_BR/man1/unxz.1*
+%lang(pt_BR) %{_mandir}/pt_BR/man1/xz*.1*
+%lang(ro) %{_mandir}/ro/man1/lz*.1*
+%lang(ro) %{_mandir}/ro/man1/unlzma.1*
+%lang(ro) %{_mandir}/ro/man1/unxz.1*
+%lang(ro) %{_mandir}/ro/man1/xz*.1*
+%lang(uk) %{_mandir}/uk/man1/lz*.1*
+%lang(uk) %{_mandir}/uk/man1/unlzma.1*
+%lang(uk) %{_mandir}/uk/man1/unxz.1*
+%lang(uk) %{_mandir}/uk/man1/xz*.1*
 
 %files libs
 %defattr(644,root,root,755)
@@ -191,6 +205,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/liblzma.pc
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/liblzma.a
+%endif
This page took 0.640442 seconds and 4 git commands to generate.