%define build_date %(date +"%Y%m%d") %global debug_package %{nil} %global commit 52bfd57391c65bd55c677d22b918d612870c0e28 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: dual-function-keys Version: 0 Release: 0.6.%{build_date}git%{shortcommit}%{?dist} Summary: Dual Function Keys plugin for interception tools License: MIT URL: https://gitlab.com/interception/linux/plugins/dual-function-keys Source0: https://gitlab.com/interception/linux/plugins/dual-function-keys/-/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc-c++ BuildRequires: kernel-headers BuildRequires: libevdev-devel BuildRequires: yaml-cpp-devel Requires: interception-tools %description Tap for one key, hold for another. Great for modifier keys like: hold for ctrl, tap for delete. A hand-saver for those with restricted finger mobility. %prep %autosetup -n %{name}-%{commit} %build %make_build %install rm -rf $RPM_BUILD_ROOT %make_install PREFIX=%{_prefix} %files %license LICENSE.md %doc README.md doc/examples.md %{_mandir}/man1/dual-function-keys.1* %{_bindir}/dual-function-keys %changelog