diff --git a/.gitignore b/.gitignore index 4092376..a1a4928 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /pyo3-build-config-0.14.5.crate /pyo3-build-config-0.15.1.crate /pyo3-build-config-0.15.2.crate +/pyo3-build-config-0.16.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index 289187f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pyo3-build-config - -Build configuration for the PyO3 ecosystem \ No newline at end of file diff --git a/pyo3-build-config-fix-metadata.diff b/pyo3-build-config-fix-metadata.diff new file mode 100644 index 0000000..6a5cd71 --- /dev/null +++ b/pyo3-build-config-fix-metadata.diff @@ -0,0 +1,19 @@ +--- pyo3-build-config-0.16.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-build-config-0.16.6/Cargo.toml 2023-01-17T18:52:28.305934+00:00 +@@ -35,16 +35,8 @@ + [dependencies.once_cell] + version = "1" + +-[dependencies.python3-dll-a] +-version = "0.2.2" +-optional = true +- + [dependencies.target-lexicon] + version = "0.12" +- +-[build-dependencies.python3-dll-a] +-version = "0.2.2" +-optional = true + + [build-dependencies.target-lexicon] + version = "0.12" diff --git a/rust-pyo3-build-config.spec b/rust-pyo3-build-config.spec index e41e831..d399cae 100644 --- a/rust-pyo3-build-config.spec +++ b/rust-pyo3-build-config.spec @@ -1,20 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate pyo3-build-config -Name: rust-%{crate} -Version: 0.15.2 +Name: rust-pyo3-build-config +Version: 0.16.6 Release: %autorelease Summary: Build configuration for the PyO3 ecosystem -# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: https://crates.io/crates/pyo3-build-config Source: %{crates_source} - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop MSVC- and MinGW-only "python3-dll-a" dependency +Patch: pyo3-build-config-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -72,18 +72,6 @@ use the "abi3-py310" feature of the "%{crate}" crate. %files -n %{name}+abi3-py310-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+abi3-py36-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+abi3-py36-devel %{_description} - -This package contains library source intended for building other packages which -use the "abi3-py36" feature of the "%{crate}" crate. - -%files -n %{name}+abi3-py36-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+abi3-py37-devel Summary: %{summary} BuildArch: noarch @@ -120,6 +108,18 @@ use the "abi3-py39" feature of the "%{crate}" crate. %files -n %{name}+abi3-py39-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+extension-module-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extension-module-devel %{_description} + +This package contains library source intended for building other packages which +use the "extension-module" feature of the "%{crate}" crate. + +%files -n %{name}+extension-module-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+resolve-config-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 0631442..9462b94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-build-config-0.15.2.crate) = e05e68bc54bc7287d3fb037251767dcbcb512e3cae29948507deb7e0ca18ec4d7fd5d598f1dca1a595b6edcd5395fb443189fe56724e67ef68422bf050b10324 +SHA512 (pyo3-build-config-0.16.6.crate) = a015bb4c328f0d1e643d64831e029bbd66cbf635ab616533f35aefce59abf1c5d596099feaccb81bff02e863867c14f975ce6fc55bc05d99ea47b5f6fdc2da5d