Name: ds-inhibit Version: 0.0.git.3294.a771bf79 Release: 1%{?dist} Summary: DualShock 4/DualSense mouse inhibitor License: BSD-2-Clause URL: https://github.com/ublue-os/bazzite Source0: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz Source1: 10-modprobe-ds.conf 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 %build %install mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d cp -v ds_inhibit.py %{buildroot}%{_bindir}/ds-inhibit cp -v systemd.service %{buildroot}%{_unitdir}/ds-inhibit.service cp %{SOURCE1} %{buildroot}%{_sysconfdir}/modules-load.d # 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 %{_sysconfdir}/modules-load.d/10-modprobe-ds.conf # 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