Include fix to exclude Cargo.toml from wheels

Merged upstream at https://github.com/pyca/cryptography/pull/12091

[skip changelog]
This commit is contained in:
Jeremy Cline 2025-01-21 18:39:23 +00:00
commit 78a1779124
No known key found for this signature in database
4 changed files with 39 additions and 62 deletions

View file

@ -19,6 +19,10 @@ Source0: https://github.com/pyca/cryptography/archive/%{version}/%{srcnam
Source1: cryptography-%{version}-vendor.tar.bz2
Source2: conftest-skipper.py
# Merged for 45.0.0+
# https://github.com/pyca/cryptography/pull/12091
Patch: 12091.patch
ExclusiveArch: %{rust_arches}
BuildRequires: openssl-devel
@ -102,6 +106,7 @@ export CFLAGS="${CFLAGS} -DOPENSSL_NO_ENGINE=1 "
# Actually other *.c and *.h are appropriate
# see https://github.com/pyca/cryptography/issues/1463
find . -name .keep -print -delete
find . -name Cargo.toml -print -delete
%pyproject_install
%pyproject_save_files %{srcname}