X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cryptopp.spec;fp=cryptopp.spec;h=6cfe5eeac434a60074979bbf0fe948ddbf1572ac;hb=72a0958d009366debbd9f59a41f106dfacdca85e;hp=3449e60b4bd7290fa70952a94c92388ae4841c5d;hpb=98033b6edc115201aea9448403d055b920d70d5d;p=packages%2Fcryptopp.git diff --git a/cryptopp.spec b/cryptopp.spec index 3449e60..6cfe5ee 100644 --- a/cryptopp.spec +++ b/cryptopp.spec @@ -1,9 +1,17 @@ +# +# Conditional build: +%bcond_without asm # disable x86 assembly code +# +%ifarch x32 +%undefine with_asm +%endif + %define orig_ver 561 Summary: Cryptopp Library - a free C++ class library of cryptographic schemes Summary(pl.UTF-8): Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii Name: cryptopp Version: 5.6.1 -Release: 2 +Release: 3 License: BSD-like Group: Libraries Source0: http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip @@ -62,6 +70,10 @@ Statyczna biblioteka Cryptopp. %{__autoheader} %{__automake} +%if %{without asm} +CFLAGS="%{rpmcflags} -DCRYPTOPP_DISABLE_X86ASM" +CXXFLAGS="%{rpmcxxflags} -DCRYPTOPP_DISABLE_X86ASM" +%endif %configure %{__make}