#
# Conditional build:
%bcond_without asm # disable x86 assembly code
-#
+%bcond_without tests # build without tests
+
%ifarch x32
%undefine with_asm
%endif
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