[packages/lrzip] ASM is 32 bit only
glen
glen at pld-linux.org
Sun Apr 10 14:38:50 CEST 2016
commit 2bb9831ef438e2cfdbc9bd8a8bb440c375d96d2f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 10 15:38:07 2016 +0300
ASM is 32 bit only
lrzip.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/lrzip.spec b/lrzip.spec
index 50c0f5e..ebb2fc7 100644
--- a/lrzip.spec
+++ b/lrzip.spec
@@ -3,6 +3,11 @@
#
# Conditional build:
%bcond_with system_lzma # use system lzma instead of internal
+%bcond_without asm # Enable native Assembly code (ia32 only)
+
+%ifnarch %{ix86}
+%undefine with_asm
+%endif
Summary: Long Range ZIP or Lzma RZIP
Summary(pl.UTF-8): Long Range ZIP lub Lzma RZIP
@@ -21,7 +26,7 @@ BuildRequires: bzip2-devel
BuildRequires: libstdc++-devel
%{?with_system_lzma:BuildRequires: lzma-devel >= 4.43-5}
BuildRequires: lzo-devel >= 2.02-1
-BuildRequires: nasm
+%{?with_asm:BuildRequires: nasm}
BuildRequires: perl-tools-pod
BuildRequires: zlib-devel
Requires: %{name}-libs = %{version}-%{release}
@@ -73,7 +78,7 @@ rm -rf lzma
--disable-static \
--disable-static-bin \
--enable-shared \
- --enable-asm
+ %{__enable_disable asm}
%{__make}
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lrzip.git/commitdiff/2bb9831ef438e2cfdbc9bd8a8bb440c375d96d2f
More information about the pld-cvs-commit
mailing list