diff --git a/.gitignore b/.gitignore index 658a22c..9a20275 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /owo-colors-3.3.0.crate /owo-colors-3.5.0.crate +/owo-colors-4.0.0.crate diff --git a/owo-colors-fix-metadata.diff b/owo-colors-fix-metadata.diff deleted file mode 100644 index 2c4177a..0000000 --- a/owo-colors-fix-metadata.diff +++ /dev/null @@ -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"] diff --git a/rust-owo-colors.spec b/rust-owo-colors.spec index ca78f86..ac18035 100644 --- a/rust-owo-colors.spec +++ b/rust-owo-colors.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate owo-colors Name: rust-owo-colors -Version: 3.5.0 +Version: 4.0.0 Release: %autorelease 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 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: 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 %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 +%autosetup -n %{crate}-%{version} -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 diff --git a/sources b/sources index 8a9d9ea..7e4d2f9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (owo-colors-3.5.0.crate) = 1718f03d9f3296ffe3145161e038ebdb8dc40b69c0e2cb80a51866b519cf857b6573aedb7704895401e10cea11ca422a384c3594b8762be29eaa90908e24f7aa +SHA512 (owo-colors-4.0.0.crate) = 25a606e9e6a17a4ec21b9298707478d904ba1f30862ce855f4223b3273fb3d0323540b6b628c067edc0c9291cd7c370beb298ec000cd679068624031ac9e66ce