2023-07-05 19:18:47 +00:00
|
|
|
Name: jupiter-fan-control
|
|
|
|
Version: {{{ git_dir_version }}}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Steam Deck Fan Controller
|
2023-07-14 16:13:57 +00:00
|
|
|
License: MIT
|
2023-07-05 19:18:47 +00:00
|
|
|
URL: https://github.com/ublue-os/bazzite
|
|
|
|
|
|
|
|
Source: https://gitlab.com/evlaV/%{name}/-/archive/main/%{name}-main.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Patch0: fedora.patch
|
|
|
|
|
2023-07-14 16:13:57 +00:00
|
|
|
Requires: python3
|
2023-07-05 19:18:47 +00:00
|
|
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
|
|
|
%description
|
|
|
|
SteamOS 3.0 Steam Deck Fan Controller
|
|
|
|
|
|
|
|
# Disable debug packages
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
2024-05-19 05:22:49 +00:00
|
|
|
%autosetup -n %{name}-main -p1
|
2023-07-05 19:18:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}/
|
2024-05-19 05:13:28 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/jupiter-fan-control
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/jupiter-fan-control
|
2024-05-19 05:33:58 +00:00
|
|
|
cp -v usr/share/jupiter-fan-control/*.yaml %{buildroot}%{_datadir}/jupiter-fan-control/
|
|
|
|
cp -v usr/share/jupiter-fan-control/*.py %{buildroot}%{_libexecdir}/jupiter-fan-control/
|
2023-07-05 19:18:47 +00:00
|
|
|
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
|
2024-05-19 05:13:28 +00:00
|
|
|
%{_libexecdir}/jupiter-fan-control/fancontrol.py
|
|
|
|
%{_libexecdir}/jupiter-fan-control/PID.py
|
|
|
|
%{_datadir}/jupiter-fan-control/*.yaml
|
2023-07-05 19:18:47 +00:00
|
|
|
%{_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
|
|
|
|
{{{ git_dir_changelog }}}
|