public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-hidapi] epel10: Unretirement request: https://pagure.io/releng/fedora-scm-requests/issue/83743
@ 2026-06-15 13:48 releng-bot
  0 siblings, 0 replies; only message in thread
From: releng-bot @ 2026-06-15 13:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-hidapi
Branch : epel10
Commit : 062dd38532a072b1d66acd147000464a6c23dfb6
Author : releng-bot <releng-bot@fedoraproject.org>
Date   : 2026-05-23T16:03:08+00:00
Stats  : +169/-1 in 9 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-hidapi/c/062dd38532a072b1d66acd147000464a6c23dfb6?branch=epel10

Log:
Unretirement request: https://pagure.io/releng/fedora-scm-requests/issue/83743

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..14876eb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/hidapi-1.2.6.crate
+/hidapi-1.4.1.crate

diff --git a/0001-add-missing-linker-flags-for-linking-with-libusb-1.0.patch b/0001-add-missing-linker-flags-for-linking-with-libusb-1.0.patch
new file mode 100644
index 0000000..9b31bc2
--- /dev/null
+++ b/0001-add-missing-linker-flags-for-linking-with-libusb-1.0.patch
@@ -0,0 +1,24 @@
+From 4e07786f0790d05222183fd52736b82fc40c67f7 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Thu, 11 Aug 2022 00:27:08 +0200
+Subject: [PATCH] add missing linker flags for linking with libusb-1.0
+
+---
+ build.rs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/build.rs b/build.rs
+index 3298590..897303c 100644
+--- a/build.rs
++++ b/build.rs
+@@ -86,6 +86,7 @@ fn compile_linux() {
+             "LINUX_SHARED_LIBUSB",
+             Box::new(|| {
+                 pkg_config::probe_library("hidapi-libusb").expect("Unable to find hidapi-libusb");
++                println!("cargo:rustc-link-lib=usb-1.0");
+             }),
+         ),
+     ];
+-- 
+2.37.1
+

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..9ca8761
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# rust-hidapi
+
+The rust-hidapi package

diff --git a/changelog b/changelog
new file mode 100644
index 0000000..821c69d
--- /dev/null
+++ b/changelog
@@ -0,0 +1,8 @@
+* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Mon Oct 04 2021 Link Dupont <linkdupont@fedoraproject.org> - 1.2.6-1
+- Initial package

diff --git a/dead.package b/dead.package
deleted file mode 100644
index c7912ba..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-no longer needed

diff --git a/hidapi-fix-metadata.diff b/hidapi-fix-metadata.diff
new file mode 100644
index 0000000..8253654
--- /dev/null
+++ b/hidapi-fix-metadata.diff
@@ -0,0 +1,17 @@
+--- hidapi-1.4.1/Cargo.toml	1970-01-01T00:00:01+00:00
++++ hidapi-1.4.1/Cargo.toml	2022-08-10T20:59:24.213467+00:00
+@@ -43,13 +43,6 @@
+ version = "0.3"
+ 
+ [features]
+-default = [
+-    "linux-static-libusb",
+-    "illumos-static-libusb",
+-]
+-illumos-shared-libusb = []
+-illumos-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..41d61b1
--- /dev/null
+++ b/rust-hidapi.spec
@@ -0,0 +1,106 @@
+# Generated by rust2rpm 22
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate hidapi
+
+Name:           rust-hidapi
+Version:        1.4.1
+Release:        %autorelease
+Summary:        Rust-y wrapper around hidapi
+
+License:        MIT
+URL:            https://crates.io/crates/hidapi
+Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * remove features for Illumos OS support
+# * remove features for statically linking with hidapi
+Patch:          hidapi-fix-metadata.diff
+Patch:          0001-add-missing-linker-flags-for-linking-with-libusb-1.0.patch
+
+ExclusiveArch:  %{rust_arches}
+
+BuildRequires:  rust-packaging >= 21
+
+%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 the "%{crate}" crate.
+
+%files          devel
+%license %{crate_instdir}/LICENSE.txt
+%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
+
+%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 the "linux-shared-hidraw" feature of the "%{crate}" crate.
+
+%files       -n %{name}+linux-shared-hidraw-devel
+%ghost %{crate_instdir}/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 the "linux-shared-libusb" feature of the "%{crate}" crate.
+
+%files       -n %{name}+linux-shared-libusb-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+# remove bundled hidapi sources
+rm -rf etc/
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo 'pkgconfig(hidapi-hidraw)'
+echo 'pkgconfig(hidapi-libusb)'
+echo 'pkgconfig(libusb-1.0)'
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog

diff --git a/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..4bd92b9
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+buildrequires =
+  pkgconfig(hidapi-libusb)
+  pkgconfig(hidapi-hidraw)
+lib+linux-shared-hidraw.requires =
+  pkgconfig(hidapi-hidraw)
+lib+linux-shared-libusb.requires =
+  pkgconfig(hidapi-libusb)

diff --git a/sources b/sources
new file mode 100644
index 0000000..f15f8bd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (hidapi-1.4.1.crate) = b9ed7f9d812c0874374b93ea05d58db6845e55c46b0ce5d7d8c5357f85f9b4f2dcf3e9760c7f9c2a6f8a99235492252fcd19a4d298f3becaddfae022f000af4b

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15 13:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 13:48 [rpms/rust-hidapi] epel10: Unretirement request: https://pagure.io/releng/fedora-scm-requests/issue/83743 releng-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox