Name: ds-inhibit Version: 0.1.1 Release: 2%{?dist} Summary: DualShock 4/DualSense mouse inhibitor License: BSD-2-Clause URL: https://github.com/ublue-os/bazzite Source: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz BuildArch: noarch Patch0: fedora.patch Requires: python3 Requires: python3-inotify BuildRequires: systemd-rpm-macros %description DualShock 4/DualSense mouse inhibitor # Disable debug packages %define debug_package %{nil} %prep %setup -n %{name}-main %patch 0 chmod +x ds_inhibit.py cat << EOF >> %{_builddir}/98-ds-inhibit.preset enable ds-inhibit.service EOF %build %install mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}%{_presetdir}/ install -D -m 755 ds_inhibit.py %{buildroot}%{_bindir}/ds-inhibit install -m 644 systemd.service %{buildroot}%{_unitdir}/ds-inhibit.service install -m 644 %{_builddir}/98-ds-inhibit.preset %{buildroot}%{_presetdir}/ # Do post-installation %post %systemd_post ds-inhibit.service # Do before uninstallation %preun %systemd_preun ds-inhibit.service # Do after uninstallation %postun %systemd_postun_with_restart ds-inhibit.service # This lists all the files that are included in the rpm package and that # are going to be installed into target system where the rpm is installed. %files %license LICENSE %{_bindir}/ds-inhibit %{_unitdir}/ds-inhibit.service %{_presetdir}/98-ds-inhibit.preset # Finally, changes from the latest release of your application are generated from # your project's Git history. It will be empty until you make first annotated Git tag. %changelog {{{ git_dir_changelog }}}