Name: joystickwake Version: 0.4.1 Release: 1%{?dist} Summary:A joystick-aware screen waker License: MIT URL: https://github.com/foresto/joystickwake Source0: %{name}-%{version}.tar.gz BuildRequires: python3-setuptools Requires: python3 python-pyudev BuildArch: noarch %description Linux gamers often find themselves unexpectedly staring at a blank screen, because their display server fails to recognize game controllers as input devices, allowing the screen blanker to activate during gameplay. This program works around the problem by suppressing screen blankers while joystick activity is detected. %prep %setup -q %global _enable_debug_package 0 %global debug_package %{nil} %install python3 setup.py install --root=%{buildroot} --optimize=1 install -Dm644 LICENSE -t %{buildroot}%{_datadir}/licenses/%{name} %files %{_sysconfdir}/xdg/autostart/joystickwake.desktop %{_bindir}/joystickwake %dir %{_prefix}/lib/python3.12/site-packages/joystickwake-0.4.1-py3.12.egg-info %{_prefix}/lib/python3.12/site-packages/joystickwake-0.4.1-py3.12.egg-info/* %{_datadir}/licenses/%{name}/LICENSE %clean rm -rf $RPM_BUILD_ROOT %changelog