]> git.pld-linux.org Git - packages/macfanctld.git/blob - macfanctld.spec
pass CC, CFLAGS
[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         CC="%{__cc}" \
37         CFLAGS="%{rpmcflags}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{systemdunitdir}}
42 install -p macfanctld $RPM_BUILD_ROOT%{_sbindir}
43 cp -p macfanctl.conf $RPM_BUILD_ROOT%{_sysconfdir}
44 cp -p macfanctld.service $RPM_BUILD_ROOT%{systemdunitdir}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/macfanctl.conf
52 %attr(755,root,root) %{_sbindir}/macfanctld
53 %{systemdunitdir}/macfanctld.service
This page took 0.105664 seconds and 3 git commands to generate.