From 03409e15bbfd962a8ed1a9834ab2e335a9bcd3bd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 5 Jan 2026 02:03:56 -0800 Subject: [PATCH] add: wooting-udev-rules (#8934) (#8949) * add: wooting-udev-rules * fix: typo and remnant from other udev package this was based on * refactor: Simplify rules (cherry picked from commit 06041a59426f6559dd9d26549e4ac07277f08ce9) Co-authored-by: Roice Young --- .../games/wooting-udev-rules/70-wooting.rules | 7 ++++ anda/games/wooting-udev-rules/anda.hcl | 6 +++ .../wooting-udev-rules.spec | 40 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 anda/games/wooting-udev-rules/70-wooting.rules create mode 100644 anda/games/wooting-udev-rules/anda.hcl create mode 100644 anda/games/wooting-udev-rules/wooting-udev-rules.spec diff --git a/anda/games/wooting-udev-rules/70-wooting.rules b/anda/games/wooting-udev-rules/70-wooting.rules new file mode 100644 index 0000000000..8c9617e136 --- /dev/null +++ b/anda/games/wooting-udev-rules/70-wooting.rules @@ -0,0 +1,7 @@ +# Legacy Wootings +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", MODE:="0660", TAG+="uaccess" +SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", MODE:="0660", TAG+="uaccess" + +# Generic Wootings +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="31e3", MODE:="0660", TAG+="uaccess" +SUBSYSTEM=="usb", ATTRS{idVendor}=="31e3", MODE:="0660", TAG+="uaccess" diff --git a/anda/games/wooting-udev-rules/anda.hcl b/anda/games/wooting-udev-rules/anda.hcl new file mode 100644 index 0000000000..955d43a034 --- /dev/null +++ b/anda/games/wooting-udev-rules/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + rpm { + spec = "wooting-udev-rules.spec" + } + arches = ["x86_64"] +} diff --git a/anda/games/wooting-udev-rules/wooting-udev-rules.spec b/anda/games/wooting-udev-rules/wooting-udev-rules.spec new file mode 100644 index 0000000000..27f7706c27 --- /dev/null +++ b/anda/games/wooting-udev-rules/wooting-udev-rules.spec @@ -0,0 +1,40 @@ +%global appid io.wooting.Udev + + +Name: wooting-udev-rules +Version: 1 +Release: 1%{?dist} +Summary: Udev rules for wooting keyboards +Provides: wooting-udev = %{version}-%{release} +License: Unlicense +Source0: 70-wooting.rules +BuildArch: noarch +BuildRequires: systemd +BuildRequires: anda-srpm-macros +Requires: systemd-udev + +%global udev_order 70 + +%description +Udev rules for Wooting keyboards to enable device access for use with the Wootility AppImage on Linux systems. + +%prep + +%build + +%install +install -D -p -m 644 %SOURCE0 %{buildroot}%{_udevrulesdir}/%{udev_order}-wooting.rules +# +%post +%udev_rules_update + +%postun +%udev_rules_update + +%files +%_udevrulesdir/%{udev_order}-wooting.rules + + +%changelog +* Mon Jan 05 2026 Roice Young +- Initial release