%global debug_package %{nil} Name: fw-fanctrl Version: 1.0.4 Release: 3%{?dist} Summary: Framework FanControl Software License: BSD-3-Clause URL: https://github.com/TamtamHero/%{name} Source0: https://github.com/TamtamHero/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: systemd-rpm-macros BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3dist(setuptools) BuildRequires: python3dist(wheel) Requires: python3 Requires: fw-ectool Patch0: 138-no-build.patch Patch1: 199-critical-temperature.patch Source1: 99-fw-fanctrl.rules %description Framework Fan control script %prep %autosetup -n %{name}-%{version} -p1 %build %pyproject_wheel %install ./install.sh --no-sudo \ --no-ectool \ --no-pip-install \ --no-pip-build \ --no-post-install \ -d %{buildroot} \ --effective-installation-dir /usr/bin %pyproject_install install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-fw-fanctrl.rules %post %systemd_post %{name}.service %udev_rules_update %preun %systemd_preun %{name}.service %udev_rules_update %postun %systemd_postun %{name}.service %udev_rules_update %files %license LICENSE %{_bindir}/%{name} %{python3_sitelib}/fw_fanctrl* %{_unitdir}/%{name}.service %config(noreplace) %{_sysconfdir}/%{name}/config.json %{_sysconfdir}/%{name}/config.schema.json %{_prefix}/lib/systemd/system-sleep/%{name}-suspend %{_udevrulesdir}/99-fw-fanctrl.rules %changelog %autochangelog