[packages/spandsp] convert inline mmx, sse checks into bconds

glen glen at pld-linux.org
Sun Mar 22 06:51:22 CET 2015


commit 18b2bb479ac38358101b2b10930ea759c8cc3596
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 22 07:51:12 2015 +0200

    convert inline mmx, sse checks into bconds

 spandsp.spec | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/spandsp.spec b/spandsp.spec
index 730bb04..b8eba41 100644
--- a/spandsp.spec
+++ b/spandsp.spec
@@ -3,6 +3,18 @@
 #	- build and package the 'tests' (sample programs)
 #		should be conditional, as adds BR!
 #
+# Conditional build:
+%bcond_without	mmx		# use MMX instructions
+%bcond_without	sse		# use SSE instructions
+
+%ifnarch athlon pentium3 pentium4
+%undefine	with_mmx
+%endif
+
+%ifnarch pentium3 pentium4
+%undefine	with_sse
+%endif
+
 %define	subver	pre20
 %define	rel	2
 Summary:	DSP functions for telephony
@@ -73,12 +85,8 @@ Statyczna biblioteka spandsp.
 install /usr/share/automake/config.* config
 %configure \
 	--disable-tests \
-%ifarch athlon pentium3 pentium4
-	--enable-mmx \
-%endif
-%ifarch pentium3 pentium4
-	--enable-sse \
-%endif
+	%{?with_mmx:--enable-mmx} \
+	%{?with_sse:--enable-sse} \
 	--enable-doc
 %{__make}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/spandsp.git/commitdiff/18b2bb479ac38358101b2b10930ea759c8cc3596



More information about the pld-cvs-commit mailing list