]> git.pld-linux.org Git - packages/macfanctld.git/blob - macfanctld.spec
5f8df5dd5004ab611b44e9312e4a539f5c40cf08
[packages/macfanctld.git] / macfanctld.spec
1 Summary:        Fan control for MacBook
2 Name:           macfanctld
3 # note fedora and opensuse repos have same code but version as 3.8.4, wtf
4 Version:        0.6
5 Release:        0.1
6 License:        GPL v3
7 Group:          X11/Applications
8 Source0:        https://github.com/MikaelStrom/macfanctld/archive/master.tar.gz?/%{name}-%{version}.tgz
9 # Source0-md5:  903ee608f5e3a08f5908c581eab456fd
10 Source1:        %{name}.service
11 URL:            https://github.com/MikaelStrom/macfanctld
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  rpmbuild(macros) >= 1.647
15 Requires:       systemd-units >= 38
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 macfanctld is a daemon that reads temperature sensors and adjust the
20 fan(s) speed on MacBook's. mac‐ fanctld is configurable and logs temp
21 and fan data to a file. macfanctld uses three sources to deter‐ mine
22 the fan speeed: 1) average temperature from all sensors, 2) sensor
23 TC0P [CPU 0 Proximity Temp and 3] and sensor TG0P [GPU 0 Proximity
24 Temp]. Each source's impact on fan speed can be individually adjusted
25 to fine tune working temperature on different MacBooks.
26
27 Important: macfanctld depends on applesmc-dkms.
28
29 %prep
30 %setup -qc
31 mv %{name}-*/* .
32 cp -p %{SOURCE1} .
33
34 %build
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{systemdunitdir}}
40 install -p macfanctld $RPM_BUILD_ROOT%{_sbindir}
41 cp -p macfanctl.conf $RPM_BUILD_ROOT%{_sysconfdir}
42 cp -p macfanctld.service $RPM_BUILD_ROOT%{systemdunitdir}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/macfanctl.conf
50 %attr(755,root,root) %{_sbindir}/macfanctld
51 %{systemdunitdir}/macfanctld.service
This page took 0.108752 seconds and 2 git commands to generate.