[packages/cryptopp] - updated to 8.7.0 - disable sse2 on x86 by default (there is runtime detection, but compilation req

qboosh qboosh at pld-linux.org
Fri Mar 17 18:52:23 CET 2023


commit 638f962c20fe64473e4d96d9deef8ae6d3f523fd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 17 18:54:38 2023 +0100

    - updated to 8.7.0
    - disable sse2 on x86 by default (there is runtime detection, but compilation requires -msse2 then, so detection is useless)

 cryptopp.spec | 18 ++++++++++++------
 1 file 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}"
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cryptopp.git/commitdiff/638f962c20fe64473e4d96d9deef8ae6d3f523fd



More information about the pld-cvs-commit mailing list