Update to version 4.0.0; Fixes RHBZ#2255466

epel9 imports/e9/rust-owo-colors-4.0.0-1.el9
Fabio Valentini 1 year ago
parent e790a8bc06
commit 7ab8baf5e9
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -1,2 +1,3 @@
/owo-colors-3.3.0.crate /owo-colors-3.3.0.crate
/owo-colors-3.5.0.crate /owo-colors-3.5.0.crate
/owo-colors-4.0.0.crate

@ -1,21 +0,0 @@
--- 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,22 +1,19 @@
# Generated by rust2rpm 24 # Generated by rust2rpm 25
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate owo-colors %global crate owo-colors
Name: rust-owo-colors Name: rust-owo-colors
Version: 3.5.0 Version: 4.0.0
Release: %autorelease Release: %autorelease
Summary: Zero-allocation terminal colors that'll make people go owo Summary: Zero-allocation terminal colors that'll make people go owo
License: MIT License: MIT
URL: https://crates.io/crates/owo-colors URL: https://crates.io/crates/owo-colors
Source: %{crates_source} 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 BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand: %global _description %{expand:
Zero-allocation terminal colors that'll make people go owo.} Zero-allocation terminal colors that'll make people go owo.}
@ -61,11 +58,33 @@ use the "alloc" feature of the "%{crate}" crate.
%files -n %{name}+alloc-devel %files -n %{name}+alloc-devel
%ghost %{crate_instdir}/Cargo.toml %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 %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
# drop examples that depend on the removed "supports-colors" feature
rm examples/{override.rs,supports_color.rs}
%generate_buildrequires %generate_buildrequires
%cargo_generate_buildrequires %cargo_generate_buildrequires

@ -1 +1 @@
SHA512 (owo-colors-3.5.0.crate) = 1718f03d9f3296ffe3145161e038ebdb8dc40b69c0e2cb80a51866b519cf857b6573aedb7704895401e10cea11ca422a384c3594b8762be29eaa90908e24f7aa SHA512 (owo-colors-4.0.0.crate) = 25a606e9e6a17a4ec21b9298707478d904ba1f30862ce855f4223b3273fb3d0323540b6b628c067edc0c9291cd7c370beb298ec000cd679068624031ac9e66ce

Loading…
Cancel
Save