1 Summary: Fan control for MacBook
3 # note fedora and opensuse repos have same code but version as 3.8.4, wtf
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)
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.
27 Important: macfanctld depends on applesmc-dkms.
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}
45 rm -rf $RPM_BUILD_ROOT
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