[packages/cryptopp] tests bcond
glen
glen at pld-linux.org
Wed Jan 20 16:55:39 CET 2016
commit 17888f8df3efba1d6c2caa3f29e3dcb4201095ad
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 20 17:42:49 2016 +0200
tests bcond
cryptopp.spec | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/cryptopp.spec b/cryptopp.spec
index 6cfe5ee..cb38970 100644
--- a/cryptopp.spec
+++ b/cryptopp.spec
@@ -1,7 +1,8 @@
#
# Conditional build:
%bcond_without asm # disable x86 assembly code
-#
+%bcond_without tests # build without tests
+
%ifarch x32
%undefine with_asm
%endif
@@ -75,15 +76,16 @@ CFLAGS="%{rpmcflags} -DCRYPTOPP_DISABLE_X86ASM"
CXXFLAGS="%{rpmcxxflags} -DCRYPTOPP_DISABLE_X86ASM"
%endif
%configure
-
%{__make}
+%if %{with tests}
./cryptest v
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
+ INSTALL="install -p -c " \
DESTDIR=$RPM_BUILD_ROOT
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cryptopp.git/commitdiff/d0c3dcd58105dee3c8c9fe2a4b58334ce95e96ab
More information about the pld-cvs-commit
mailing list