-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patht14sg4-thermal.spec
44 lines (31 loc) · 978 Bytes
/
t14sg4-thermal.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: t14s-g4-thermal-policy
Version: 1.2
Release: 1
Summary: personal thermal policy
License: GPLv3+
BuildArch: noarch
#Source0: thermal.tar.xz
Conflicts: tlp*
Conflicts: power-profiles-daemon
Conflicts: tuned
%description
Thermal policy for thinkpad t14s gen4 i7 Vpro 1365U.
%prep
#%autosetup -p1 -n thermal
%build
%install
mkdir -p %{buildroot}/usr/bin/
mkdir -p %{buildroot}/etc/udev/rules.d
cp -a %{_builddir}/t14s-g4-thermal-policy/t14s-ac.sh %{buildroot}/usr/bin/
cp -a %{_builddir}/t14s-g4-thermal-policy/t14s-bat.sh %{buildroot}/usr/bin/
cp -a %{_builddir}/t14s-g4-thermal-policy/t14s-balanced.sh %{buildroot}/usr/bin/
cp -a %{_builddir}/t14s-g4-thermal-policy/t14s-superbat.sh %{buildroot}/usr/bin/
cp -a %{_builddir}/t14s-g4-thermal-policy/99-cTDP.rules %{buildroot}/etc/udev/rules.d/
%files
%{_bindir}/t14s-ac.sh
%{_bindir}/t14s-bat.sh
%{_bindir}/t14s-superbat.sh
%{_bindir}/t14s-balanced.sh
%{_sysconfdir}/udev/rules.d/98-cTDP.rules
%changelog
none