%define _disable_source_fetch 0 %define debug_package %{nil} Name: sway-input-config Version: 1.4.1 Release: 1%{?dist} Summary: sway input config License: GPL-3.0 URL: https://github.com/Sunderland93/sway-input-config Source0: https://github.com/Sunderland93/%{name}/archive/refs/tags/v%{version}.tar.gz BuildRequires: python BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-i3ipc BuildRequires: python3-pyqt6-devel BuildRequires: qt6-qtwayland Requires: python Requires: python3-i3ipc Requires: qt6-qtwayland %description Input device configurator for SwayWM, written in Python and Qt6, inspired by nwg-shell-config. It uses standard libinput options to configure keyboard, touchpad and pointer devices. %prep %autosetup %build %{python3} setup.py build %install %{python3} setup.py install --skip-build --optimize 1 --root="%{buildroot}" sed -i '1s/python/python3/' %{buildroot}/usr/bin/sway-input-config %files %{_bindir}/sway-input-config %{_datadir}/applications/sway-input-config.desktop %{_datadir}/icons/hicolor/128x128/apps/sway-input-config.png %{_datadir}/metainfo/io.github.Sunderland93.sway-input-config.metainfo.xml /usr/lib/python3.12/site-packages/sway_input_config /usr/lib/python3.12/site-packages/sway_input_config-1.4.1-py3.12.egg-info