]> git.pld-linux.org Git - packages/xz.git/commitdiff
add static_libs bcond auto/th/xz-5.4.6-1
authorJan Palus <atler@pld-linux.org>
Fri, 26 Jan 2024 16:39:04 +0000 (17:39 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 26 Jan 2024 16:39:04 +0000 (17:39 +0100)
xz.spec

diff --git a/xz.spec b/xz.spec
index 59e5553b4b895111a6754e7962e96071a38b0313..a36b5df73366bacebdda92f5aeaedfc7d380f641 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
@@ -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.040794 seconds and 4 git commands to generate.