The package rpms/rust-filedescriptor.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-filedescriptor.git/commit/?i....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 67034017f9fd43e3b9817a578b6519c2ee41834d
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Mon May 10 09:36:13 2021 -0700
import #1957903
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..30dfce9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/filedescriptor-0.7.3.crate
diff --git a/filedescriptor-fix-metadata.patch b/filedescriptor-fix-metadata.patch
new file mode 100644
index 0000000..f338a3b
--- /dev/null
+++ b/filedescriptor-fix-metadata.patch
@@ -0,0 +1,10 @@
+diff -Naur a/Cargo.toml b/Cargo.toml
+--- a/Cargo.toml 2020-09-10 15:00:59.000000000 -0700
++++ b/Cargo.toml 2021-05-06 11:09:31.978314346 -0700
+@@ -26,6 +26,3 @@
+
+ [dependencies.libc]
+ version = "0.2"
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = ["winuser", "handleapi", "fileapi",
"namedpipeapi", "processthreadsapi", "winsock2"]
diff --git a/rust-filedescriptor.spec b/rust-filedescriptor.spec
new file mode 100644
index 0000000..3195d1c
--- /dev/null
+++ b/rust-filedescriptor.spec
@@ -0,0 +1,76 @@
+# Generated by rust2rpm 16
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate filedescriptor
+
+Name: rust-%{crate}
+Version: 0.7.3
+Release: 1%{?dist}
+Summary: More ergonomic wrappers around RawFd and RawHandle
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/filedescriptor
+Source: %{crates_source}
+# Drop Windows-specific dependencies
+Patch0: filedescriptor-fix-metadata.patch
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+More ergonomic wrappers around RawFd and RawHandle.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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 "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
+* Thu May 06 08:47:07 PDT 2021 Davide Cavalca <dcavalca(a)fedoraproject.org> -
0.7.3-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..2536956
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (filedescriptor-0.7.3.crate) =
657073f010ae3ecd9f87d8d826e398eba6a336318292c3a659de2afd19c64777e16d37c1673af9c26fe50781d48237d33ee003501b0981209a4b5344f037ea12