public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Link Dupont <link@sub-pop.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-hidapi] epel10: initial package
Date: Mon, 15 Jun 2026 13:48:49 GMT	[thread overview]
Message-ID: <178153132975.1.4686108514811929538.rpms-rust-hidapi-29cf616a19bd@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-hidapi
            Branch : epel10
            Commit : 29cf616a19bd9379d1671f0cdafaaa04dba99b25
            Author : Link Dupont <link@sub-pop.net>
            Date   : 2021-11-15T14:42:40-05:00
            Stats  : +118/-0 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-hidapi/c/29cf616a19bd9379d1671f0cdafaaa04dba99b25?branch=epel10

            Log:
            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@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

                 reply	other threads:[~2026-06-15 13:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178153132975.1.4686108514811929538.rpms-rust-hidapi-29cf616a19bd@fedoraproject.org \
    --to=link@sub-pop.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox