[packages/libvpx] add bcond to enable/disable unittests build

glen glen at pld-linux.org
Fri Nov 21 15:31:17 CET 2014


commit 2f397753fcf62bea2f3f22973cc4c21fe229e45a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Nov 21 16:30:52 2014 +0200

    add bcond to enable/disable unittests build
    
    unittests are otherwise built automatically if sane g++ is found

 libvpx.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libvpx.spec b/libvpx.spec
index 02880f7..653c502 100644
--- a/libvpx.spec
+++ b/libvpx.spec
@@ -2,6 +2,7 @@
 # Conditional build:
 %bcond_without	asm	# x86 assembler
 %bcond_without	doc	# don't build doc
+%bcond_without	tests	# build without tests
 %bcond_without	ssse3	# use SSSE3 instructions (Intel since Core2, Via Nano)
 
 %ifnarch %{ix86} %{x8664}
@@ -101,6 +102,7 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
 %endif
 	%{!?with_ssse3:--disable-ssse3} \
 	--disable-optimizations \
+	--%{!?with_tests:dis}%{?with_tests:en}able-unit-tests \
 	--enable-vp8 \
 	--enable-postproc \
 	--enable-runtime-cpu-detect
@@ -136,7 +138,7 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvpx.git/commitdiff/2f397753fcf62bea2f3f22973cc4c21fe229e45a



More information about the pld-cvs-commit mailing list