]> git.pld-linux.org Git - packages/libvpx.git/commitdiff
add bcond to enable/disable unittests build
authorElan Ruusamäe <glen@delfi.ee>
Fri, 21 Nov 2014 14:30:52 +0000 (16:30 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 21 Nov 2014 14:30:54 +0000 (16:30 +0200)
unittests are otherwise built automatically if sane g++ is found

libvpx.spec

index 02880f7cfd3147e5eb96691fe7b4743e83f5fb53..653c5027a22c7d6ca602aa4d18c312504bf116ae 100644 (file)
@@ -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
This page took 0.083838 seconds and 4 git commands to generate.