Name: sway-magickey Version: 0.0.1 Release: 1%{?dist} Summary: sway-magic-key License: GPLv2 and MIT URL: https://github.com/kohnish/magickey Source0: https://github.com/kohnish/magickey/archive/refs/heads/master.zip Requires: python3-evdev python3-pyudev %define debug_package %{nil} %undefine __brp_mangle_shebangs %description sway-magic-key %prep %setup -q -n magickey-master %build echo Nothing %install mkdir -p %{buildroot}/opt/sway-magickey cp magickey.py %{buildroot}/opt/sway-magickey/ mkdir -p %{buildroot}/usr/lib/systemd/system cat > %{buildroot}/usr/lib/systemd/system/sway-magickey.service << "EOF" [Unit] Description=sway-magickey [Service] Type=simple ExecStart=/opt/sway-magickey/magickey.py -u 1000 EOF %files /usr/lib/systemd/system/sway-magickey.service /opt/sway-magickey/magickey.py %changelog * Mon May 04 2020 kohnish gmx - 1.5.1-1 - Initial