diff --git a/eyre-fix-metadata.diff b/eyre-fix-metadata.diff index f165bac..07dc7a4 100644 --- a/eyre-fix-metadata.diff +++ b/eyre-fix-metadata.diff @@ -1,14 +1,25 @@ --- eyre-0.6.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ eyre-0.6.8/Cargo.toml 2022-04-05T02:48:25.755837+00:00 -@@ -80,11 +80,6 @@ - version = "0.3" - default-features = false ++++ eyre-0.6.8/Cargo.toml 2022-07-15T12:02:08.664203+00:00 +@@ -66,10 +66,6 @@ + [dependencies.once_cell] + version = "1.4.0" --[dev-dependencies.pyo3] +-[dependencies.pyo3] -version = "0.13" --features = ["auto-initialize"] +-optional = true +-default-features = false + [dev-dependencies.anyhow] + version = "1.0.28" + +@@ -78,11 +74,6 @@ + + [dev-dependencies.futures] + version = "0.3" -default-features = false - - [dev-dependencies.rustversion] - version = "1.0" +-[dev-dependencies.pyo3] +-version = "0.13" +-features = ["auto-initialize"] + default-features = false + [dev-dependencies.rustversion] diff --git a/rust-eyre.spec b/rust-eyre.spec index 87a1ef1..5d6ffc7 100644 --- a/rust-eyre.spec +++ b/rust-eyre.spec @@ -7,13 +7,14 @@ Name: rust-%{crate} Version: 0.6.8 Release: %autorelease -Summary: Flexible concrete Error Reporting type built on std::error::Error with customizable Reports +Summary: Flexible concrete Error Reporting type built on std::error::Error # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/eyre Source: %{crates_source} -# Drop optional pyo3/auto-initialize dependency, not available yet +# Initial patched metadata +# * drop optional pyo3 dependencies (version does not match what is in Fedora) Patch0: eyre-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -66,18 +67,6 @@ use the "auto-install" feature of the "%{crate}" crate. %files -n %{name}+auto-install-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+pyo3-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+pyo3-devel %{_description} - -This package contains library source intended for building other packages which -use the "pyo3" feature of the "%{crate}" crate. - -%files -n %{name}+pyo3-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+track-caller-devel Summary: %{summary} BuildArch: noarch