%global debug_package %{nil} Name: keyd Version: 2.5.0 Release: 4%{?dist} 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 Patch: 0001-Enable-GNOME-extension-for-v47.patch Patch: 0002-keyd-application-mapper-Add-explicit-support-for-gno.patch Patch: 0003-make-Move-service-generation-into-install-target-801.patch Patch: 0004-make-fedora-packaging-fixes.patch Patch: 0005-Enable-GNOME-extension-for-v49.patch BuildRequires: gcc-c++ BuildRequires: kernel-headers %description %{summary} %package -n gnome-shell-extension-keyd Summary: Gnome Shell Extension used by keyd to obtain active window information. Requires: gnome-shell <= 49 %description -n gnome-shell-extension-keyd Gnome Shell Extension used by keyd to obtain active window information. %prep %autosetup -p1 %build %make_build PREFIX=%{_prefix} %install %make_install PREFIX=%{_prefix} FORCE_SYSTEMD=1 install -Dm644 keyd.service -t "%{buildroot}/usr/lib/systemd/system/" install -Dm755 scripts/dump-xkb-config -t "%{buildroot}/usr/share/keyd/" install -Dm755 scripts/generate_xcompose -t "%{buildroot}/usr/share/keyd/" install -Dm644 LICENSE -t "%{buildroot}/usr/share/licenses/keyd" install -Dm644 README.md -t "%{buildroot}/usr/share/doc/keyd/" %files %{_bindir}/%{name} %{_bindir}/%{name}-application-mapper %{_docdir}/%{name} %{_datadir}/%{name} %{_unitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/%{name}-application-mapper.1.gz %license LICENSE %files -n gnome-shell-extension-keyd %{_datadir}/gnome-shell/extensions/keyd@keyd.rvaiya.github.com/ %changelog %autochangelog