Files
fedora-tools/touchpad-hold-tap/touchpad-hold-tap.spec
T
2026-08-30 00:28:02 +00:00

56 lines
1.6 KiB
RPMSpec

Name: touchpad-hold-tap
Version: 0.1.0
Release: 5%{?dist}
Summary: Hold-tap middle-click gesture for touchpads
License: MIT
URL: https://git.ajpanton.se/ajp_anton/fedora-tools
Source0: 90-touchpad-hold-tap.lua
Source1: LICENSE
Source2: test-touchpad-hold-tap.lua
Source3: README.md
BuildRequires: lua
Requires: libinput >= 1.30
%description
A libinput Lua plugin that recognizes a one-finger hold followed by a quick tap
from a second finger and emits a middle click. The held finger may move between
gestures. Other touchpad input continues through libinput normally.
%prep
%build
%check
lua %{SOURCE2} %{SOURCE0}
%install
install -Dpm 0644 %{SOURCE0} \
%{buildroot}%{_libdir}/libinput/plugins/90-touchpad-hold-tap.lua
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_licensedir}/%{name}/LICENSE
install -Dpm 0644 %{SOURCE3} \
%{buildroot}%{_docdir}/%{name}/README.md
%files
%license %{_licensedir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/README.md
%{_libdir}/libinput/plugins/90-touchpad-hold-tap.lua
%changelog
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-5
- Run state-machine tests during RPM builds and package the README
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-4
- Allow the anchor finger to move and become stationary again
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-3
- Route synthesized clicks through an existing pointer device
* Sun Aug 30 2026 fedora-tools contributors - 0.1.0-2
- Route synthesized clicks through a non-clickpad input device
* Sat Aug 29 2026 fedora-tools contributors - 0.1.0-1
- Initial package