The package rpms/rust-supports-color.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-supports-color.git/commit/?i....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 674641c80100fc13512329e61a52d2a90edfb4be
Author: Michel Alexandre Salim <salimma(a)fedoraproject.org>
Date: Mon Apr 4 10:06:21 2022 -0700
Initial Fedora package
Signed-off-by: Michel Alexandre Salim <salimma(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..41104a0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/supports-color-1.3.0.crate
diff --git a/rust-supports-color.spec b/rust-supports-color.spec
new file mode 100644
index 0000000..4f67fa2
--- /dev/null
+++ b/rust-supports-color.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 21
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate supports-color
+
+Name: rust-%{crate}
+Version: 1.3.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
+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
+
+%global _description %{expand:
+Detects whether a terminal supports color, and gives details about that
+support.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENSE
+%doc %{crate_instdir}/CHANGELOG.md
+%doc %{crate_instdir}/README.md
+%{crate_instdir}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..5073fca
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (supports-color-1.3.0.crate) =
3e77067b24e90bf06758a59f5b480c085956b80390c3a1db786de2fd251dc7c737b8e869c88b0a8605fcbc471f1db262890929b009a02398fa059ffbbd946657
diff --git a/supports-color-1.3.0-disable-failed-tests.patch
b/supports-color-1.3.0-disable-failed-tests.patch
new file mode 100644
index 0000000..abe8577
--- /dev/null
+++ b/supports-color-1.3.0-disable-failed-tests.patch
@@ -0,0 +1,14 @@
+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]