diff --git a/README.md b/README.md deleted file mode 100644 index 79b1f0f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-owo-colors - -The rust-owo-colors package diff --git a/owo-colors-fix-metadata.diff b/owo-colors-fix-metadata.diff new file mode 100644 index 0000000..2c4177a --- /dev/null +++ b/owo-colors-fix-metadata.diff @@ -0,0 +1,21 @@ +--- owo-colors-3.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ owo-colors-3.5.0/Cargo.toml 2023-04-01T16:16:40.986788+00:00 +@@ -37,18 +37,5 @@ + "doc_cfg", + ] + +-[[example]] +-name = "supports_color" +-required-features = ["supports-colors"] +- +-[[example]] +-name = "override" +-required-features = ["supports-colors"] +- +-[dependencies.supports-color] +-version = "1.3" +-optional = true +- + [features] + alloc = [] +-supports-colors = ["supports-color"] diff --git a/rust-owo-colors.spec b/rust-owo-colors.spec index 458e1d8..ca78f86 100644 --- a/rust-owo-colors.spec +++ b/rust-owo-colors.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} @@ -12,6 +12,9 @@ Summary: Zero-allocation terminal colors that'll make people go owo License: MIT URL: https://crates.io/crates/owo-colors Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove unused "supports-colors" feature with outdated dependencies +Patch: owo-colors-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -58,33 +61,11 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+supports-color-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+supports-color-devel %{_description} - -This package contains library source intended for building other packages which -use the "supports-color" feature of the "%{crate}" crate. - -%files -n %{name}+supports-color-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+supports-colors-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+supports-colors-devel %{_description} - -This package contains library source intended for building other packages which -use the "supports-colors" feature of the "%{crate}" crate. - -%files -n %{name}+supports-colors-devel -%ghost %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +# drop examples that depend on the removed "supports-colors" feature +rm examples/{override.rs,supports_color.rs} %generate_buildrequires %cargo_generate_buildrequires