|
|
@ -1,6 +1,12 @@
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-setuptools-rust
|
|
|
|
Name: python-setuptools-rust
|
|
|
|
Version: 0.11.6
|
|
|
|
Version: 0.12.0
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Setuptools Rust extension plugin
|
|
|
|
Summary: Setuptools Rust extension plugin
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -21,6 +27,9 @@ BuildRequires: rust-packaging >= 1.45
|
|
|
|
# RHEL has rust-toolset and neither setuptools-scm nor wheel
|
|
|
|
# RHEL has rust-toolset and neither setuptools-scm nor wheel
|
|
|
|
BuildRequires: rust-toolset >= 1.45
|
|
|
|
BuildRequires: rust-toolset >= 1.45
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
BuildRequires: rust-pyo3+default-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Setuptools helpers for Rust Python extensions. Compile and distribute Python
|
|
|
|
Setuptools helpers for Rust Python extensions. Compile and distribute Python
|
|
|
@ -67,6 +76,15 @@ EOF
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
|
|
|
%{__python3} -c "from setuptools_rust import RustExtension, version"
|
|
|
|
%{__python3} -c "from setuptools_rust import RustExtension, version"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
cd examples/tomlgen
|
|
|
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
sed -i 's/"0\.[0-9.]*"/"^0"/g' setup.cfg
|
|
|
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py build
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-setuptools-rust
|
|
|
|
%files -n python3-setuptools-rust
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
@ -74,6 +92,10 @@ 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
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* Thu Feb 11 2021 Christian Heimes <cheimes@redhat.com> - 0.11.6-4
|
|
|
|
- Fix RHEL build: remove wheel build requirements, use rust-toolset
|
|
|
|
- Fix RHEL build: remove wheel build requirements, use rust-toolset
|
|
|
|
|
|
|
|
|
|
|
|