public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-hidapi] epel10: no longer needed
@ 2026-06-15 13:48 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-06-15 13:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-hidapi
Branch : epel10
Commit : cf1ee48b60ef85fee6a05fe3f934f42869e6b252
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2025-10-07T13:55:33+02:00
Stats  : +1/-169 in 9 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-hidapi/c/cf1ee48b60ef85fee6a05fe3f934f42869e6b252?branch=epel10

Log:
no longer needed

---
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 14876eb..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/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
deleted file mode 100644
index 9b31bc2..0000000
--- a/0001-add-missing-linker-flags-for-linking-with-libusb-1.0.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-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
deleted file mode 100644
index 9ca8761..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-hidapi
-
-The rust-hidapi package

diff --git a/changelog b/changelog
deleted file mode 100644
index 821c69d..0000000
--- a/changelog
+++ /dev/null
@@ -1,8 +0,0 @@
-* 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
new file mode 100644
index 0000000..c7912ba
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+no longer needed

diff --git a/hidapi-fix-metadata.diff b/hidapi-fix-metadata.diff
deleted file mode 100644
index 8253654..0000000
--- a/hidapi-fix-metadata.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- 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
deleted file mode 100644
index 41d61b1..0000000
--- a/rust-hidapi.spec
+++ /dev/null
@@ -1,106 +0,0 @@
-# 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
deleted file mode 100644
index 4bd92b9..0000000
--- a/rust2rpm.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-[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
deleted file mode 100644
index f15f8bd..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-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: no longer needed Fabio Valentini

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