diff --git a/rust-wyz.spec b/rust-wyz.spec index e6d8cad..f485689 100644 --- a/rust-wyz.spec +++ b/rust-wyz.spec @@ -12,6 +12,9 @@ Summary: Myrrlyn’s utility collection License: MIT URL: https://crates.io/crates/wyz Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused "garbage" feature with missing dependencies +Patch: wyz-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -58,30 +61,6 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+garbage-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+garbage-devel %{_description} - -This package contains library source intended for building other packages which -use the "garbage" feature of the "%{crate}" crate. - -%files -n %{name}+garbage-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+once_cell-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+once_cell-devel %{_description} - -This package contains library source intended for building other packages which -use the "once_cell" feature of the "%{crate}" crate. - -%files -n %{name}+once_cell-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -94,18 +73,6 @@ use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+typemap-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+typemap-devel %{_description} - -This package contains library source intended for building other packages which -use the "typemap" feature of the "%{crate}" crate. - -%files -n %{name}+typemap-devel -%ghost %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/wyz-fix-metadata.diff b/wyz-fix-metadata.diff new file mode 100644 index 0000000..8a6a8cc --- /dev/null +++ b/wyz-fix-metadata.diff @@ -0,0 +1,25 @@ +--- wyz-0.5.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ wyz-0.5.1/Cargo.toml 2023-03-02T15:30:04.570364+00:00 +@@ -29,22 +29,10 @@ + license = "MIT" + repository = "https://github.com/myrrlyn/wyz" + +-[dependencies.once_cell] +-version = "1" +-optional = true +- + [dependencies.tap] + version = "1" +- +-[dependencies.typemap] +-version = "0.3" +-optional = true + + [features] + alloc = [] + default = ["std"] +-garbage = [ +- "once_cell", +- "typemap", +-] + std = ["alloc"]