%global debug_package %{nil} Name: keyd Version: 2.6.0 Release: 1%{?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 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 < 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 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/" 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/ %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 %license LICENSE %files -n gnome-shell-extension-keyd %{_datadir}/gnome-shell/extensions/keyd@keyd.rvaiya.github.com/ %changelog %autochangelog