diff --git a/python-cryptography.spec b/python-cryptography.spec index eff8c1c..cc6bcc6 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -51,6 +51,13 @@ BuildRequires: python%{python3_pkgversion}-pytz BuildRequires: python%{python3_pkgversion}-pytest >= 6.2.0 %endif +# The Python extension module now gets a SONAME of libcryptography_rust.so; we +# must ensure it is not used to generate automatic Provides. See: +# Rust 1.81+ implicitly / automatically sets soname on cdylib targets +# https://bugzilla.redhat.com/show_bug.cgi?id=2314879 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/#_filtering_provides_and_requires_after_scanning +%global __provides_exclude ^libcryptography_rust\\.so.*$ + %description cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.