The package rpms/rust-hidapi.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-hidapi.git/commit/?id=29cf61....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 29cf616a19bd9379d1671f0cdafaaa04dba99b25
Author: Link Dupont <link(a)sub-pop.net>
Date: Mon Nov 15 14:42:40 2021 -0500
initial package
Relates: RHBZ#2022179
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5491fe9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/hidapi-1.2.6.crate
diff --git a/disable-static-feature.patch b/disable-static-feature.patch
new file mode 100644
index 0000000..ff622c9
--- /dev/null
+++ b/disable-static-feature.patch
@@ -0,0 +1,13 @@
+diff -urN hidapi-1.2.6.orig/Cargo.toml hidapi-1.2.6/Cargo.toml
+--- hidapi-1.2.6.orig/Cargo.toml 1969-12-31 19:00:00.000000000 -0500
++++ hidapi-1.2.6/Cargo.toml 2021-11-14 22:03:37.727932755 -0500
+@@ -30,8 +30,6 @@
+ version = "0.3"
+
+ [features]
+-default = ["linux-static-libusb"]
++default = ["linux-shared-libusb"]
+ linux-shared-hidraw = []
+ linux-shared-libusb = []
+-linux-static-hidraw = []
+-linux-static-libusb = []
diff --git a/rust-hidapi.spec b/rust-hidapi.spec
new file mode 100644
index 0000000..fa98b77
--- /dev/null
+++ b/rust-hidapi.spec
@@ -0,0 +1,103 @@
+# Generated by rust2rpm 18
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate hidapi
+
+Name: rust-%{crate}
+Version: 1.2.6
+Release: 1%{?dist}
+Summary: Rust-y wrapper around hidapi
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/hidapi
+Source: %{crates_source}
+Patch0: disable-static-feature.patch
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+BuildRequires: pkgconfig(hidapi-hidraw)
+
+%global _description %{expand:
+Rust-y wrapper around hidapi.}
+
+%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.txt etc/hidapi/LICENSE.txt etc/hidapi/LICENSE-orig.txt
etc/hidapi/LICENSE-gpl3.txt etc/hidapi/LICENSE-bsd.txt
+%doc examples README.md etc/hidapi/README.md etc/hidapi/HACKING.txt
etc/hidapi/AUTHORS.txt
+%{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
+
+%package -n %{name}+linux-shared-hidraw-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(hidapi-hidraw)
+
+%description -n %{name}+linux-shared-hidraw-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "linux-shared-hidraw" feature of "%{crate}" crate.
+
+%files -n %{name}+linux-shared-hidraw-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+linux-shared-libusb-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(hidapi-libusb)
+
+%description -n %{name}+linux-shared-libusb-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "linux-shared-libusb" feature of "%{crate}" crate.
+
+%files -n %{name}+linux-shared-libusb-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
+* Mon Oct 04 2021 Link Dupont <linkdupont(a)fedoraproject.org> - 1.2.6-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..7edd7b2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (hidapi-1.2.6.crate) =
42a1b687431e72124f0c32972b038435d3ff6ca811fa5bc8c7f9f5fae9584beeb719b29aa393440a36beb1b6c8a473873715c5cb3099fd9fab53274327470e4c