The package rpms/rust-netstat2.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-netstat2.git/commit/?id=aaba....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit aabac60fefa247b28131a27dde791a985cbee552
Author: Davide Cavalca <dcavalca(a)fedoraproject.org>
Date: Tue Oct 25 19:50:04 2022 -0700
Initial import; Fixes: RHBZ#1990706
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9784e5e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/netstat2-0.9.1.crate
diff --git a/netstat2-fix-metadata-auto.diff b/netstat2-fix-metadata-auto.diff
new file mode 100644
index 0000000..73b0fcd
--- /dev/null
+++ b/netstat2-fix-metadata-auto.diff
@@ -0,0 +1,14 @@
+--- netstat2-0.9.1/Cargo.toml 2020-11-18T18:06:16+00:00
++++ netstat2-0.9.1/Cargo.toml 2020-11-18T18:06:16+00:00
+@@ -30,11 +30,3 @@
+
+ [dependencies.thiserror]
+ version = "1"
+-[target."cfg(any(target_os = \"macos\", target_os =
\"ios\"))".dependencies.byteorder]
+-version = "1.3.2"
+-
+-[target."cfg(any(target_os = \"macos\", target_os =
\"ios\"))".dependencies.num-derive]
+-version = "0.3"
+-
+-[target."cfg(any(target_os = \"macos\", target_os =
\"ios\"))".dependencies.num-traits]
+-version = "0.2.8"
diff --git a/rust-netstat2.spec b/rust-netstat2.spec
new file mode 100644
index 0000000..0d079e5
--- /dev/null
+++ b/rust-netstat2.spec
@@ -0,0 +1,73 @@
+# Generated by rust2rpm 22
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate netstat2
+
+Name: rust-netstat2
+Version: 0.9.1
+Release: %autorelease
+Summary: Cross-platform library to retrieve network sockets information
+
+License: MIT OR Apache-2.0
+URL:
https://crates.io/crates/netstat2
+Source: %{crates_source}
+# Automatically generated patch to strip foreign dependencies
+Patch: netstat2-fix-metadata-auto.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Cross-platform library to retrieve network sockets information.}
+
+%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
+%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..1d6b654
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (netstat2-0.9.1.crate) =
0cd850e1cc1ae145c4665c0f00929539233d79941b266dd8b7f27ada7010027b1c463055fa8690aa47269963bbb69aba940b5fb346a6b30186b90049218c4c61