diff options
author | Jakub Bogusz | 2023-03-17 17:54:38 (GMT) |
---|---|---|
committer | Jakub Bogusz | 2023-03-17 17:54:38 (GMT) |
commit | 638f962c20fe64473e4d96d9deef8ae6d3f523fd (patch) | |
tree | ce52d2f481947200f6523527f2aed84c5d6d0d3b | |
parent | b1c64d076cf11eba6808e4f0e27ef6d38fe12e9b (diff) | |
download | cryptopp-638f962c20fe64473e4d96d9deef8ae6d3f523fd.zip cryptopp-638f962c20fe64473e4d96d9deef8ae6d3f523fd.tar.gz |
- updated to 8.7.0
- disable sse2 on x86 by default (there is runtime detection, but compilation requires -msse2 then, so detection is useless)
-rw-r--r-- | cryptopp.spec | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/cryptopp.spec b/cryptopp.spec index 8b71e96..8a287e1 100644 --- a/cryptopp.spec +++ b/cryptopp.spec @@ -1,23 +1,29 @@ # # Conditional build: -%bcond_without tests # build without tests +%bcond_without tests # testing +%bcond_with sse2 # SSE2 instructions + +%ifarch pentium4 %{x8664} x32 +%define with_sse2 1 +%endif 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: 8.2.0 +Version: 8.7.0 %define tag_ver %(echo %{version} | tr . _) Release: 1 License: Boost v1.0 (BSD-like) Group: Libraries #Source0Download: https://github.com/weidai11/cryptopp/releases Source0: https://github.com/weidai11/cryptopp/archive/CRYPTOPP_%{tag_ver}/%{name}-%{tag_ver}.tar.gz -# Source0-md5: 5bc45a6047132f49dbff9261e5ca0fac +# Source0-md5: 69b11e59094c10d437f295f11e51c16a Source1: %{name}.pc -URL: http://www.cryptopp.com/ +URL: https://cryptopp.com/ BuildRequires: libstdc++-devel BuildRequires: unzip -Obsoletes: cryptopp-progs +%{?with_sse2:Requires: cpuinfo(sse2)} +Obsoletes: cryptopp-progs < 5.6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -55,7 +61,7 @@ Statyczna biblioteka Cryptopp. %setup -q -n %{name}-CRYPTOPP_%{tag_ver} %build -CXXFLAGS="%{rpmcxxflags}" \ +CXXFLAGS="%{rpmcxxflags} %{!?with_sse2:-DCRYPTOPP_DISABLE_SSE2} %{?with_sse2:-msse2}" \ %{__make} shared static %{?with_tests:cryptest.exe} \ CXX="%{__cxx}" |