diff --git a/.gitignore b/.gitignore index 2533e8b..c59170d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /supports-color-1.3.0.crate /supports-color-2.0.0.crate /supports-color-2.1.0.crate +/supports-color-3.0.0.crate diff --git a/rust-supports-color.spec b/rust-supports-color.spec index 5c93736..e3dab69 100644 --- a/rust-supports-color.spec +++ b/rust-supports-color.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate supports-color Name: rust-supports-color -Version: 2.1.0 +Version: 3.0.0 Release: %autorelease Summary: Detects whether a terminal supports color, and gives details about that support @@ -13,7 +13,7 @@ License: Apache-2.0 URL: https://crates.io/crates/supports-color Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Detects whether a terminal supports color, and gives details about that @@ -49,7 +49,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -63,8 +63,7 @@ use the "default" feature of the "%{crate}" crate. %if %{with check} %check -# * skip tests that only work on real TTYs -%cargo_test -- -- --skip tests::test_clicolor_ansi --skip tests::test_empty_env +%cargo_test %endif %changelog diff --git a/sources b/sources index 6cbbd50..79483c5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (supports-color-2.1.0.crate) = 29438ef0cd6705b9bc4b5bd1a04383266eaf18d41d2328c35da63d12bafc7150ba01b37253f51fa9ca356279e8bdb8c381843801500ea4e58fce9fef119ca2be +SHA512 (supports-color-3.0.0.crate) = 0d878b7fe60844d28896fb82423eb61d1f070f204042db0c04cb65ff7e1b918588cdd87a98c24b480d4e72ab52d9528fdc8d28ec193768087742deb827ef5142