Fix RHEL build: remove wheel build requirements, use rust-toolset

f38
Christian Heimes 4 years ago
parent e5d1d1a932
commit 1182f8f185

@ -1,6 +1,6 @@
Name: python-setuptools-rust Name: python-setuptools-rust
Version: 0.11.6 Version: 0.11.6
Release: 3%{?dist} Release: 4%{?dist}
Summary: Setuptools Rust extension plugin Summary: Setuptools Rust extension plugin
License: MIT License: MIT
@ -13,12 +13,13 @@ BuildRequires: python3-devel
BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(semantic-version) >= 2.6 BuildRequires: python3dist(semantic-version) >= 2.6
BuildRequires: python3dist(toml) >= 0.9.0 BuildRequires: python3dist(toml) >= 0.9.0
BuildRequires: python3dist(wheel)
%if 0%{?fedora} %if 0%{?fedora}
BuildRequires: python3dist(setuptools-scm) >= 3.4.3 BuildRequires: python3dist(setuptools-scm) >= 3.4.3
BuildRequires: rust-packaging BuildRequires: python3dist(wheel)
BuildRequires: rust-packaging >= 1.45
%else %else
BuildRequires: rust-toolset # RHEL has rust-toolset and neither setuptools-scm nor wheel
BuildRequires: rust-toolset >= 1.45
%endif %endif
%description %description
@ -27,7 +28,11 @@ extensions written in Rust as easily as if they were written in C.
%package -n python3-setuptools-rust %package -n python3-setuptools-rust
Summary: %{summary} Summary: %{summary}
Requires: rust-packaging %if 0%{?fedora}
Requires: rust-packaging >= 1.45
%else
Requires: rust-toolset >= 1.45
%endif
%description -n python3-setuptools-rust %description -n python3-setuptools-rust
Setuptools helpers for Rust Python extensions. Compile and distribute Python Setuptools helpers for Rust Python extensions. Compile and distribute Python
@ -69,6 +74,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/
%changelog %changelog
* 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 * Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-3
- Add RHEL packaging support - Add RHEL packaging support

Loading…
Cancel
Save