From 44e4490489ba682661675875075bb4a7da9d2606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Fri, 5 Sep 2025 14:48:07 +0200 Subject: [PATCH] Convert from Fedora for the Python 3.14 stack in RHEL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fedora contributions by: Christian Heimes Maxwell G Miro Hrončok Benjamin A. Beasley Fabio Valentini Gwyn Ciesla Tomáš Hrnčiar Yaakov Selkowitz --- changelog | 25 ------------------------- python3.14-setuptools-rust.spec | 21 +++++++-------------- 2 files changed, 7 insertions(+), 39 deletions(-) delete mode 100644 changelog diff --git a/changelog b/changelog deleted file mode 100644 index 27175ff..0000000 --- a/changelog +++ /dev/null @@ -1,25 +0,0 @@ -* Fri Jul 23 2021 Fedora Release Engineering - 0.12.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jun 02 2021 Python Maint - 0.12.1-2 -- Rebuilt for Python 3.10 - -* Thu Mar 11 2021 Christian Heimes - 0.12.1-1 -- Update to 0.12.1 - -* Tue Mar 09 2021 Christian Heimes - 0.12.0-1 -- Update to 0.12.0 (#1936679) -- Run tomlgen example as test case - -* Thu Feb 11 2021 Christian Heimes - 0.11.6-4 -- Fix RHEL build: remove wheel build requirements, use rust-toolset - -* Thu Feb 11 2021 Christian Heimes - 0.11.6-3 -- Add RHEL packaging support - -* Wed Jan 27 2021 Fedora Release Engineering - 0.11.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Thu Jan 14 2021 Christian Heimes - 0.11.6-1 -- Initial package. -- Resolves: rhbz#1906490 diff --git a/python3.14-setuptools-rust.spec b/python3.14-setuptools-rust.spec index 007e512..86a16d1 100644 --- a/python3.14-setuptools-rust.spec +++ b/python3.14-setuptools-rust.spec @@ -1,3 +1,5 @@ +%global python3_pkgversion 3.14 + # RHEL does not have packaged rust libraries %bcond packaged_rust_libraries %{undefined rhel} # The integration tests depend on the presence of these libraries @@ -6,7 +8,7 @@ # * html-py-ever requires unpackaged rust crates %global integration_tests_exc '^(html-py-ever)' -Name: python-setuptools-rust +Name: python%{python3_pkgversion}-setuptools-rust Version: 1.11.1 Release: %autorelease Summary: Setuptools Rust extension plugin @@ -17,8 +19,8 @@ Source0: %{pypi_source setuptools_rust} BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: %{py3_dist pytest} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-pytest %if 0%{?fedora} BuildRequires: cargo-rpm-macros >= 24 %else @@ -30,19 +32,10 @@ BuildRequires: %{py3_dist cffi} %endif -%global _description %{expand: +%description Setuptools helpers for Rust Python extensions. Compile and distribute Python extensions written in Rust as easily as if they were written in C.} -%description %{_description} - - -%package -n python3-setuptools-rust -Summary: %{summary} -Requires: cargo - -%description -n python3-setuptools-rust %{_description} - %prep %autosetup -p1 -n setuptools_rust-%{version} @@ -111,7 +104,7 @@ done %endif -%files -n python3-setuptools-rust -f %{pyproject_files} +%files -n python%{python3_pkgversion}-setuptools-rust -f %{pyproject_files} %doc README.md CHANGELOG.md