Convert from Fedora for the Python 3.14 stack in RHEL

Fedora contributions by:
    Christian Heimes <cheimes@redhat.com>
    Maxwell G <maxwell@gtmx.me>
    Miro Hrončok <miro@hroncok.cz>
    Benjamin A. Beasley <code@musicinmybrain.net>
    Fabio Valentini <decathorpe@gmail.com>
    Gwyn Ciesla <limb@fedoraproject.org>
    Tomáš Hrnčiar <thrnciar@redhat.com>
    Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Tomáš Hrnčiar 2025-09-05 14:48:07 +02:00 committed by Lumir Balhar
parent 3e22da0627
commit 4b7e68cde8
2 changed files with 7 additions and 39 deletions

View File

@ -1,25 +0,0 @@
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.12.1-2
- Rebuilt for Python 3.10
* Thu Mar 11 2021 Christian Heimes <cheimes@redhat.com> - 0.12.1-1
- Update to 0.12.1
* Tue Mar 09 2021 Christian Heimes <cheimes@redhat.com> - 0.12.0-1
- Update to 0.12.0 (#1936679)
- Run tomlgen example as test case
* Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-4
- Fix RHEL build: remove wheel build requirements, use rust-toolset
* Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-3
- Add RHEL packaging support
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 14 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-1
- Initial package.
- Resolves: rhbz#1906490

View File

@ -1,3 +1,5 @@
%global python3_pkgversion 3.14
# RHEL does not have packaged rust libraries # RHEL does not have packaged rust libraries
%bcond packaged_rust_libraries %{undefined rhel} %bcond packaged_rust_libraries %{undefined rhel}
# The integration tests depend on the presence of these libraries # The integration tests depend on the presence of these libraries
@ -6,7 +8,7 @@
# * html-py-ever requires unpackaged rust crates # * html-py-ever requires unpackaged rust crates
%global integration_tests_exc '^(html-py-ever)' %global integration_tests_exc '^(html-py-ever)'
Name: python-setuptools-rust Name: python%{python3_pkgversion}-setuptools-rust
Version: 1.11.1 Version: 1.11.1
Release: %autorelease Release: %autorelease
Summary: Setuptools Rust extension plugin Summary: Setuptools Rust extension plugin
@ -17,8 +19,8 @@ Source0: %{pypi_source setuptools_rust}
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: %{py3_dist pytest} BuildRequires: python%{python3_pkgversion}-pytest
%if 0%{?fedora} %if 0%{?fedora}
BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo-rpm-macros >= 24
%else %else
@ -30,19 +32,10 @@ BuildRequires: %{py3_dist cffi}
%endif %endif
%global _description %{expand: %description
Setuptools helpers for Rust Python extensions. Compile and distribute Python Setuptools helpers for Rust Python extensions. Compile and distribute Python
extensions written in Rust as easily as if they were written in C.} 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 %prep
%autosetup -p1 -n setuptools_rust-%{version} %autosetup -p1 -n setuptools_rust-%{version}
@ -111,7 +104,7 @@ done
%endif %endif
%files -n python3-setuptools-rust -f %{pyproject_files} %files -n python%{python3_pkgversion}-setuptools-rust -f %{pyproject_files}
%doc README.md CHANGELOG.md %doc README.md CHANGELOG.md