mirror of
https://github.com/ublue-os/packages.git
synced 2026-11-03 21:49:48 -09:00
feat: Update fw-fanctrl
This commit is contained in:
parent
0d5110f26f
commit
937a00d52b
1 changed files with 5 additions and 14 deletions
|
|
@ -1,20 +1,15 @@
|
|||
%global jobid 899
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global reponame fw-fanctrl
|
||||
%global commit b040da6686f694504b8dc22918be5cb655e75bf5
|
||||
%global commit_date 20260606
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global gitrel .%{commit_date}.git%{shortcommit}
|
||||
|
||||
Name: fw-fanctrl
|
||||
Version: 0.0.0
|
||||
Release: 11%{gitrel}%{?dist}
|
||||
# renovate: datasource=github-releases depName=TamtamHero/fw-fanctrl
|
||||
Version: 1.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Framework FanControl Software
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/TamtamHero/%{name}
|
||||
Source0: https://github.com/TamtamHero/%{name}/archive/%{commit}.tar.gz
|
||||
Source0: https://github.com/TamtamHero/%{name}/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
|
|
@ -26,13 +21,11 @@ BuildRequires: python3-build
|
|||
Requires: python3
|
||||
Requires: fw-ectool
|
||||
|
||||
Source1: 99-fw-fanctrl.rules
|
||||
|
||||
%description
|
||||
Framework Fan control script
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{commit}
|
||||
%autosetup -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
|
@ -49,7 +42,6 @@ sed -i 's|%{buildroot}||g' %{buildroot}%{_unitdir}/fw-fanctrl.service
|
|||
sed -i 's|%{buildroot}||g' %{buildroot}%{_unitdir}/fw-fanctrl-suspend.service
|
||||
%pyproject_install
|
||||
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-fw-fanctrl.rules
|
||||
# framework_tool already included in framework-system package
|
||||
rm -f %{buildroot}%{_bindir}/framework_tool
|
||||
|
||||
|
|
@ -73,7 +65,6 @@ rm -f %{buildroot}%{_bindir}/framework_tool
|
|||
%{_unitdir}/%{name}-suspend.service
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/config.json
|
||||
%{_sysconfdir}/%{name}/config.schema.json
|
||||
%{_udevrulesdir}/99-fw-fanctrl.rules
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Reference in a new issue