Remove unused "supports-colors" feature with outdated dependencies

epel9
Fabio Valentini 2 years ago
parent 57b96cd40e
commit a33178e389
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,3 +0,0 @@
# rust-owo-colors
The rust-owo-colors package

@ -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"]

@ -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

Loading…
Cancel
Save