Name: jupiter-fan-control Version: 0.0.git.45.4fa2db59 Release: 1%{?dist} Summary: Steam Deck Fan Controller License: MIT URL: https://github.com/KyleGospo/jupiter-fan-control VCS: git+https://github.com/KyleGospo/jupiter-fan-control.git#4fa2db594812b54fd4090aad710eee6a713a0779: Source: jupiter-fan-control-4fa2db59.tar.gz BuildArch: noarch Patch0: fedora.patch Requires: python3 BuildRequires: systemd-rpm-macros %description SteamOS 3.0 Steam Deck Fan Controller # Disable debug packages %define debug_package %{nil} %prep %setup -T -b 0 -q -n jupiter-fan-control %patch0 %build %install mkdir -p %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}%{_datadir}/ cp -rv usr/share/* %{buildroot}%{_datadir} cp -v usr/lib/systemd/system/jupiter-fan-control.service %{buildroot}%{_unitdir}/jupiter-fan-control.service # Do post-installation %post %systemd_post jupiter-fan-control.service # Do before uninstallation %preun %systemd_preun jupiter-fan-control.service # Do after uninstallation %postun %systemd_postun_with_restart jupiter-fan-control.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 %doc README.md %license LICENSE %{_datadir}/jupiter-fan-control/fancontrol.py %{_datadir}/jupiter-fan-control/jupiter-fan-control-config.yaml %{_datadir}/jupiter-fan-control/PID.py %{_unitdir}/jupiter-fan-control.service # 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