%if 0%{?fedora} %global debug_package %{nil} %endif Name: keyd Version: 0.0.git.487.415c1dec Release: 1%{?dist} Summary: A powerful key remapper for the Linux desktop License: MIT URL: https://github.com/ignic/keyd VCS: git+https://github.com/ignic/keyd.git#415c1dec16ba1fd3791297294920d711310255ce: Source: keyd-415c1dec.tar.gz BuildRequires: gcc-c++ BuildRequires: systemd-rpm-macros %description %{summary} %prep %setup -T -b 0 -q -n keyd %build make PREFIX=/usr %install make DESTDIR=%{buildroot} PREFIX=/usr install echo 'g keyd' | install -Dm644 /dev/stdin %{buildroot}%{_sysusersdir}/%{name}.conf %pre #!/bin/sh set -e getent group %{name} >/dev/null || groupadd -r %{name} %files %{_sysconfdir}/%{name} %{_bindir}/%{name} %{_bindir}/%{name}-application-mapper %{_unitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %{_docdir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_mandir}/man1/%{name}-application-mapper.1.gz %license LICENSE %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %changelog * Wed May 15 2024 ignic - 1 - First package