The package rpms/rust-nix0.20.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-nix0.20.git/commit/?id=ea5fc....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit ea5fcc97b9a89334e1dd5a6495a4b6b3e38ede07
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Thu Jul 29 18:19:34 2021 +0200
Initial import (nix 0.20 compat package)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0b400b4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/nix-0.20.0.crate
diff --git a/nix-fix-metadata.diff b/nix-fix-metadata.diff
new file mode 100644
index 0000000..166411d
--- /dev/null
+++ b/nix-fix-metadata.diff
@@ -0,0 +1,10 @@
+--- nix-0.20.0/Cargo.toml 1970-01-01T00:00:00+00:00
++++ nix-0.20.0/Cargo.toml 2021-07-29T16:16:03.834607+00:00
+@@ -72,7 +72,3 @@
+ version = "3.0.5"
+ [target."cfg(any(target_os = \"android\", target_os =
\"linux\"))".dev-dependencies.caps]
+ version = "0.5.1"
+-[target."cfg(target_os = \"dragonfly\")".build-dependencies.cc]
+-version = "1"
+-[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl]
+-version = "0.1"
diff --git a/rust-nix0.20.spec b/rust-nix0.20.spec
new file mode 100644
index 0000000..f9c6bdf
--- /dev/null
+++ b/rust-nix0.20.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm 18
+# * skip unreliable tests in the compat package
+%bcond_with check
+%global debug_package %{nil}
+
+%global crate nix
+
+Name: rust-%{crate}0.20
+Version: 0.20.0
+Release: %autorelease
+Summary: Rust friendly bindings to *nix APIs
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/nix
+Source: %{crates_source}
+# Initial patched metadata
+# * drop DragonflyBSD/FreeBSD-specific dependencies
+Patch0: nix-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Rust friendly bindings to *nix APIs.}
+
+%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
+%license LICENSE
+%doc README.md CONVENTIONS.md CONTRIBUTING.md CHANGELOG.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
+# skip a test that does not work in systemd-nspawn containers
+%cargo_test -- -- --skip sys::test_socket::test_vsock
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..eaca245
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (nix-0.20.0.crate) =
4efb0a6147870aca6b5612428216f36cd826320b75f4f12fb0c75140d47561834695db7745908a23d08ac7114d69848cdafcf87830718da1f03aa6f2c664c5d5