From 5d92fffdd308841a81bfbb5ee9a4a4fe8a656813 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 26 Sep 2024 11:58:16 -0400 Subject: [PATCH] Fix automatic provides on Python extension due to SONAME See https://bugzilla.redhat.com/show_bug.cgi?id=2314879. --- python-cramjam.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python-cramjam.spec b/python-cramjam.spec index 747b5fb..0510bc6 100644 --- a/python-cramjam.spec +++ b/python-cramjam.spec @@ -19,6 +19,13 @@ BuildRequires: python3-devel BuildRequires: tomcli BuildRequires: cargo-rpm-macros >= 24 +# The Python extension module now gets a SONAME of libcramjam.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 ^libcramjam\\.so.*$ + %global common_description %{expand: %{summary}.}