]> git.pld-linux.org Git - packages/cryptopp.git/commitdiff
tests bcond
authorElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jan 2016 15:42:49 +0000 (17:42 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 20 Jan 2016 15:42:49 +0000 (17:42 +0200)
cryptopp.spec

index 6cfe5eeac434a60074979bbf0fe948ddbf1572ac..cb38970367be22a5f3c165313d06304df67a8f33 100644 (file)
@@ -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
This page took 0.12919 seconds and 4 git commands to generate.