The package rpms/rust-num_threads.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-num_threads.git/commit/?id=5....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 525e3f30b09d802c22e629bb41a95012dcdce5cd
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue May 31 21:54:37 2022 +0200
Initial import (#2086091)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cd0c2e4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/num_threads-0.1.6.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index abfad80..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-num_threads
-
-The rust-num_threads package
diff --git a/num_threads-fix-metadata.diff b/num_threads-fix-metadata.diff
new file mode 100644
index 0000000..e5380a7
--- /dev/null
+++ b/num_threads-fix-metadata.diff
@@ -0,0 +1,9 @@
+--- num_threads-0.1.6/Cargo.toml 1970-01-01T00:00:01+00:00
++++ num_threads-0.1.6/Cargo.toml 2022-05-13T19:38:33.207825+00:00
+@@ -31,6 +31,3 @@
+ targets = ["x86_64-unknown-linux-gnu"]
+
+ [dependencies]
+-
+-[target."cfg(any(target_os = \"macos\", target_os = \"ios\",
target_os = \"freebsd\"))".dependencies.libc]
+-version = "0.2.107"
diff --git a/rust-num_threads.spec b/rust-num_threads.spec
new file mode 100644
index 0000000..80d8832
--- /dev/null
+++ b/rust-num_threads.spec
@@ -0,0 +1,76 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate num_threads
+
+Name: rust-%{crate}
+Version: 0.1.6
+Release: %autorelease
+Summary: Determine the number of running threads for the current process
+
+# Upstream license specification: MIT OR Apache-2.0
+License: MIT or ASL 2.0
+URL:
https://crates.io/crates/num_threads
+Source: %{crates_source}
+# Initial patched metadata
+# * drop non-linux dependencies
+Patch0: num_threads-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Minimal library that determines the number of running threads for the current
+process.}
+
+%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-Apache
+%license %{crate_instdir}/LICENSE-MIT
+%{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
+# * tests expect to be run from a single thread
+%cargo_test -- -- --test-threads 1
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..d2ab838
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (num_threads-0.1.6.crate) =
b2d9897e29e59353379b6372a629fc7f9afc89f777b4410eaeac7b4729527948a8dbecb175f056899f9076693ef855cc0d40e725cc54f28af588fbac5f7ce3b6