Name: jupiter-fan-control Version: 0.0.git.7767.abbd6721 Release: 1%{?dist} Summary: Steam Deck Fan Controller License: MIT URL: https://github.com/evlav/jupiter-fan-control/ Source: %{url}archive/refs/heads/main.tar.gz BuildArch: noarch Requires: python3 Requires: python3-pyyaml BuildRequires: systemd-rpm-macros %description SteamOS 3.0 Steam Deck Fan Controller # Disable debug packages %define debug_package %{nil} %prep %autosetup -n %{name}-main -p1 # Use a versioned interpreter so the build's shebang mangling succeeds sed -i '1s|^#!/usr/bin/python\b|#!/usr/bin/python3|' usr/share/jupiter-fan-control/fancontrol.py %build %install mkdir -p %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}%{_datadir}/jupiter-fan-control cp -v usr/share/jupiter-fan-control/*.yaml %{buildroot}%{_datadir}/jupiter-fan-control/ install -v -m 0755 usr/share/jupiter-fan-control/fancontrol.py %{buildroot}%{_datadir}/jupiter-fan-control/fancontrol.py 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 %{_datadir}/jupiter-fan-control/fancontrol.py %{_datadir}/jupiter-fan-control/*.yaml %{_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