#
# 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(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
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}
%build
%configure \
- %{!?with_asm:--disable-assembler}
+ %{!?with_asm:--disable-assembler} \
+ %{__enable_disable static_libs static}
%{__make}
%{?with_tests:%{__make} check}
%{_pkgconfigdir}/liblzma.pc
%{_examplesdir}/%{name}-%{version}
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/liblzma.a
+%endif