diff --git a/.gitignore b/.gitignore index ff489ca..8c61d9d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /pyo3-build-config-0.19.1.crate /pyo3-build-config-0.19.2.crate /pyo3-build-config-0.20.0.crate +/pyo3-build-config-0.20.1.crate diff --git a/pyo3-build-config-fix-metadata.diff b/pyo3-build-config-fix-metadata.diff index 41bfc0a..73bfb45 100644 --- a/pyo3-build-config-fix-metadata.diff +++ b/pyo3-build-config-fix-metadata.diff @@ -1,5 +1,5 @@ ---- pyo3-build-config-0.20.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pyo3-build-config-0.20.0/Cargo.toml 2023-11-13T23:43:53.587944+00:00 +--- pyo3-build-config-0.20.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-build-config-0.20.1/Cargo.toml 2023-12-31T22:21:16.775279+00:00 @@ -35,16 +35,8 @@ [dependencies.once_cell] version = "1" diff --git a/rust-pyo3-build-config.spec b/rust-pyo3-build-config.spec index 19e542a..2d95e67 100644 --- a/rust-pyo3-build-config.spec +++ b/rust-pyo3-build-config.spec @@ -5,14 +5,14 @@ %global crate pyo3-build-config Name: rust-pyo3-build-config -Version: 0.20.0 +Version: 0.20.1 Release: %autorelease Summary: Build configuration for the PyO3 ecosystem License: MIT OR Apache-2.0 URL: https://crates.io/crates/pyo3-build-config Source: %{crates_source} -# Manually created patch for downstream crate metadata changes# +# Manually created patch for downstream crate metadata changes # * drop MSVC- and MinGW-only "python3-dll-a" dependency Patch: pyo3-build-config-fix-metadata.diff @@ -85,6 +85,18 @@ use the "abi3-py311" feature of the "%{crate}" crate. %files -n %{name}+abi3-py311-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+abi3-py312-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+abi3-py312-devel %{_description} + +This package contains library source intended for building other packages which +use the "abi3-py312" feature of the "%{crate}" crate. + +%files -n %{name}+abi3-py312-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+abi3-py37-devel Summary: %{summary} BuildArch: noarch @@ -151,6 +163,9 @@ use the "resolve-config" feature of the "%{crate}" crate. %generate_buildrequires %cargo_generate_buildrequires +%if %{with check} +echo 'python3' +%endif %build %cargo_build diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..7c416a1 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[requires] +test = ["python3"] + diff --git a/sources b/sources index 75faf9e..52de06e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-build-config-0.20.0.crate) = a01d06ebeb4b9cfe6ff6731046101e9437498453ca5aa68ec53df3bfb2f34665a489f8072636c2da16c1e867f536032fd293f05a43561117fd131bde5fe5aac7 +SHA512 (pyo3-build-config-0.20.1.crate) = 7e94e506bbcfe1c52fdf5ce2af16a38c62ca20f95571b930aa49ad3ff8da9356ca9dab1ad2952089920256d9ba24f5de819c3c88591bb62023dd2f17b7edf42f