The package rpms/rust-is-terminal.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-is-terminal.git/commit/?id=d....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit dcd2a822bcbaebf15c778b20472a69df6fb29aca
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Thu May 5 21:16:55 2022 +0200
Initial import (#2076615)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..881fa0f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/is-terminal-0.1.0.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index e9df402..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-is-terminal
-
-The rust-is-terminal package
diff --git a/is-terminal-fix-metadata.diff b/is-terminal-fix-metadata.diff
new file mode 100644
index 0000000..0646252
--- /dev/null
+++ b/is-terminal-fix-metadata.diff
@@ -0,0 +1,13 @@
+--- is-terminal-0.1.0/Cargo.toml 1970-01-01T00:00:01+00:00
++++ is-terminal-0.1.0/Cargo.toml 2022-04-13T23:29:40.278164+00:00
+@@ -27,10 +27,5 @@
+ version = "0.2.14"
+ [target."cfg(not(any(windows, target_os =
\"hermit\")))".dependencies.rustix]
+ version = "0.33.0"
+-[target."cfg(target_os = \"hermit\")".dependencies.hermit-abi]
+-version = "0.2.0"
+ [target."cfg(unix)".dev-dependencies.libc]
+ version = "0.2.110"
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = ["consoleapi", "processenv", "minwinbase",
"minwindef", "winbase"]
diff --git a/rust-is-terminal.spec b/rust-is-terminal.spec
new file mode 100644
index 0000000..352c081
--- /dev/null
+++ b/rust-is-terminal.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate is-terminal
+
+Name: rust-%{crate}
+Version: 0.1.0
+Release: %autorelease
+Summary: Test whether a given stream is a terminal
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/is-terminal
+Source: %{crates_source}
+# Initial patched metadata
+# * drop non-linux dependencies
+Patch0: is-terminal-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Test whether a given stream is a terminal.}
+
+%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-MIT
+%license %{crate_instdir}/LICENSE-MIT-atty
+%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..7cea160
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (is-terminal-0.1.0.crate) =
8ccd437e73c841654d1e411c84cdde53ccbc410c3b4c9f5bebface95e8de16c4cf4d6dd3eb07957ddf74403a0474a646bf64ecdca72312c7471d110c99343501