Update to version 2.0.0; Fixes RHBZ#2183739

epel9
Fabio Valentini 2 years ago
parent 2ccf31de58
commit 85a801d117
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -1 +1,2 @@
/supports-color-1.3.0.crate
/supports-color-2.0.0.crate

@ -1,3 +0,0 @@
# rust-supports-color
The rust-supports-color package

@ -1,22 +1,17 @@
# Generated by rust2rpm 21
%bcond_with check
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate supports-color
Name: rust-%{crate}
Version: 1.3.0
Name: rust-supports-color
Version: 2.0.0
Release: %autorelease
Summary: Detects whether a terminal supports color, and gives details about that support
# Upstream license specification: Apache-2.0
License: ASL 2.0
License: Apache-2.0
URL: https://crates.io/crates/supports-color
Source: %{crates_source}
# Disable failed tests for now
Patch: %{crate}-1.3.0-disable-failed-tests.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
@ -68,7 +63,8 @@ use the "default" feature of the "%{crate}" crate.
%if %{with check}
%check
%cargo_test
# * skip tests that only work on real TTYs
%cargo_test -- -- --skip tests::test_clicolor_ansi --skip tests::test_empty_env
%endif
%changelog

@ -1 +1 @@
SHA512 (supports-color-1.3.0.crate) = 3e77067b24e90bf06758a59f5b480c085956b80390c3a1db786de2fd251dc7c737b8e869c88b0a8605fcbc471f1db262890929b009a02398fa059ffbbd946657
SHA512 (supports-color-2.0.0.crate) = eaf4100f7f3974617de525572cc815e76e7033c39ede7b6de11b1305b4eed8de955416f0064707306cefacf0615cce9066d3c838d6ceefa9f4d311c7cf2cde89

@ -1,14 +0,0 @@
diff '--color=auto' -ruN supports-color-1.3.0/src/lib.rs supports-color-1.3.0-disable-failed-tests/src/lib.rs
--- supports-color-1.3.0/src/lib.rs 1973-11-29 13:33:09.000000000 -0800
+++ supports-color-1.3.0-disable-failed-tests/src/lib.rs 2022-04-01 11:34:01.143138693 -0700
@@ -200,8 +200,8 @@
});
assert_eq!(on(atty::Stream::Stdout), expected);
- std::env::set_var("CLICOLOR", "0");
- assert_eq!(on(atty::Stream::Stdout), None);
+ // std::env::set_var("CLICOLOR", "0");
+ // assert_eq!(on(atty::Stream::Stdout), None);
}
#[test]
Loading…
Cancel
Save