]> 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 59e5553b4b895111a6754e7962e96071a38b0313..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
@@ -18,8 +19,8 @@ Summary:      LZMA Encoder/Decoder
 Summary(pl.UTF-8):     Koder/Dekoder LZMA
 Name:          xz
 Version:       5.4.6
-Release:       1
-Epoch:         1
+Release:       2
+Epoch:         2
 License:       LGPL v2.1+, helper scripts on GPL v2+
 Group:         Applications/Archiving
 Source0:       https://github.com/tukaani-project/xz/releases/download/v%{version}/%{name}-%{version}.tar.bz2
@@ -29,7 +30,7 @@ Patch1:               %{name}-memlimit.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}
@@ -121,7 +122,8 @@ Biblioteka statyczna LZMA.
 
 %build
 %configure \
-       %{!?with_asm:--disable-assembler}
+       %{!?with_asm:--disable-assembler} \
+       %{__enable_disable static_libs static}
 %{__make}
 
 %{?with_tests:%{__make} check}
@@ -203,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.09784 seconds and 4 git commands to generate.