X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=cryptopp.spec;fp=cryptopp.spec;h=cb38970367be22a5f3c165313d06304df67a8f33;hb=17888f8df3efba1d6c2caa3f29e3dcb4201095ad;hp=6cfe5eeac434a60074979bbf0fe948ddbf1572ac;hpb=72a0958d009366debbd9f59a41f106dfacdca85e;p=packages%2Fcryptopp.git 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