Update to v43.0.0

Additionally, this builds the package with OPENSSL_NO_ENGINE=1

This drops the skip-overflow-tests-32bit.patch as its included in
v43.0.0. It picks up the patch in
https://github.com/pyca/cryptography/pull/11328 to allow building with
OPENSSL_NO_ENGINE=1.
This commit is contained in:
Jeremy Cline 2024-07-24 16:23:21 -04:00
commit 696a6afd84
No known key found for this signature in database
5 changed files with 43 additions and 83 deletions

View file

@ -5,7 +5,7 @@
%global srcname cryptography
Name: python-%{srcname}
Version: 42.0.8
Version: 43.0.0
Release: %autorelease
Summary: PyCA's cryptography library
@ -19,12 +19,11 @@ Source0: https://github.com/pyca/cryptography/archive/%{version}/%{srcnam
Source1: cryptography-%{version}-vendor.tar.bz2
Source2: conftest-skipper.py
Patch1: skip-overflow-tests-32bit.patch
Patch: 11328.patch
ExclusiveArch: %{rust_arches}
BuildRequires: openssl-devel
BuildRequires: openssl-devel-engine
BuildRequires: gcc
BuildRequires: gnupg2
%if 0%{?fedora}
@ -97,11 +96,7 @@ cd ../..
%build
export RUSTFLAGS="%build_rustflags"
export OPENSSL_NO_VENDOR=1
# Temporary work-around for using pyo3 0.20 with Python 3.13 on ELN; This can
# be dropped when a cryptography release bumps to pyo3 >= 0.22
%if 0%{?rhel}
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
%endif
export CFLAGS="${CFLAGS} -DOPENSSL_NO_ENGINE=1 "
%pyproject_wheel