-
Notifications
You must be signed in to change notification settings - Fork 0
/
nvidia-power-limit.spec
59 lines (39 loc) · 1.22 KB
/
nvidia-power-limit.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%global filename nvidia-pl
Name: nvidia-power-limit
Version: 1.0.2
Release: 1%{?dist}
Summary: NVIDIA power limit tweak
BuildArch: noarch
License: GPLv3+
URL: https://github.com/tim77/nvidia-power-limit
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: systemd-rpm-macros
%description
Systemd startup service for setting power limit on NVIDIA videocards.
To enable:
# systemctl enable --now nvidia-pl.service
%prep
%autosetup -p1
%install
install -Dpm 0644 src/nvidia-pl.service -t %{buildroot}%{_prefix}/lib/systemd/system/
install -Dpm 0755 src/nvidia-pl.sh -t %{buildroot}%{_sbindir}/
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%doc README.md
%license COPYING
%{_sbindir}/%{filename}.sh
%{_unitdir}/*.service
%changelog
* Sun Oct 23 2022 Artem Polishchuk <[email protected]> - 1.0.2-1
- build(update): 1.0.2
* Thu Oct 20 2022 Artem Polishchuk <[email protected]> - 1.0.1-1
- build(update): 1.0.1
* Tue Oct 13 2020 Artem Polishchuk <[email protected]> - 1.0-3.20201013git1d2f076
- build(update): commit 1d2f076
* Tue Apr 09 2019 Artem Polishchuk <[email protected]> - 1.0-2
- Initial package.