From f8eab89ee49353151643091db71deb8f398aa278 Mon Sep 17 00:00:00 2001 From: ocs-bot Date: Mon, 8 Jul 2024 09:28:02 +0800 Subject: [PATCH 1/2] Rebuilt for rust-packaging --- python-setuptools-rust.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index 9cc3933..3a8bb0d 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -3,7 +3,7 @@ Summary: Setuptools Rust extension plugin Name: python-setuptools-rust Version: 1.7.0 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: https://github.com/PyO3/setuptools-rust Source0: %{pypi_source setuptools-rust} @@ -61,6 +61,10 @@ rm -rf setuptools-rust.egg-info %changelog +* Mon Jul 08 2024 Rebuild Robot - 1.7.0-2 +- [Type] bugfix +- [DESC] Rebuilt for rust-packaging + * Mon Sep 25 2023 Miaojun Dong - 1.7.0-1 - Bump version to 1.7.0 -- Gitee From 4c56cc464c77d50d5dc0cbce6623aba7dc1c454f Mon Sep 17 00:00:00 2001 From: gordonwwang Date: Mon, 8 Jul 2024 13:07:52 +0800 Subject: [PATCH 2/2] update rust macros --- python-setuptools-rust.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec index 3a8bb0d..452e834 100644 --- a/python-setuptools-rust.spec +++ b/python-setuptools-rust.spec @@ -1,4 +1,5 @@ %bcond_with tests +%bcond_with rust_pack Summary: Setuptools Rust extension plugin Name: python-setuptools-rust @@ -9,7 +10,13 @@ URL: https://github.com/PyO3/setuptools-rust Source0: %{pypi_source setuptools-rust} BuildRequires: python3-devel python3dist(setuptools) python3dist(semantic-version) -BuildRequires: python3dist(typing-extensions) python3dist(setuptools-scm) python3dist(wheel) rust-packaging +BuildRequires: python3dist(typing-extensions) +%if 0%{?rust_pack} +BuildRequires: python3dist(setuptools-scm) python3dist(wheel) rust-packaging +%else +BuildRequires: rust-toolset +%endif + %if %{with tests} BuildRequires: rust-pyo3+default-devel %endif @@ -22,7 +29,12 @@ Rust as easily as if they were written in C. %package -n python3-setuptools-rust Summary: %{summary} +%if 0%{?rust_pack} Requires: rust-packaging +%else +Requires: rust-toolset +%endif + %description -n python3-setuptools-rust Setuptools helpers for Rust Python extensions. Compile and distribute Python extensions written in -- Gitee