Name: keyd Version: 2.6.0 Release: %autorelease Summary: A powerful key remapper for the Linux desktop License: MIT URL: https://github.com/rvaiya/%{name} Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: kernel-headers %description Linux lacks a good key remapping solution. In order to achieve satisfactory results a medley of tools need to be employed (e.g xcape, xmodmap) with the end result often being tethered to a specified environment (X11). keyd attempts to solve this problem by providing a flexible system wide daemon which remaps keys using kernel level input primitives (evdev, uinput). %package -n gnome-shell-extension-keyd Summary: Gnome Shell Extension used by keyd to obtain active window information. Requires: gnome-shell < 50 %description -n gnome-shell-extension-keyd Gnome Shell Extension used by keyd to obtain active window information. %prep %autosetup %build %make_build PREFIX=%{_prefix} %install %make_install PREFIX=%{_prefix} FORCE_SYSTEMD=1 install -Dm644 LICENSE -t "%{buildroot}/usr/share/licenses/keyd" mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/keyd@keyd.rvaiya.github.com/ cp -r data/gnome-extension-45/* %{buildroot}%{_datadir}/gnome-shell/extensions/keyd@keyd.rvaiya.github.com/ %check [[ "$(bin/keyd --version)" = "keyd v%{version} ()" ]] %files %{_bindir}/%{name} %{_bindir}/%{name}-application-mapper %{_docdir}/%{name} %{_datadir}/%{name} %{_prefix}/lib/systemd/system/%{name}.service %{_prefix}/lib/sysusers.d/%{name}.conf %{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/%{name}-application-mapper.1.gz %dir %{_sysconfdir}/%{name} %license LICENSE %files -n gnome-shell-extension-keyd %{_datadir}/gnome-shell/extensions/keyd@keyd.rvaiya.github.com/ %changelog %autochangelog