]> git.pld-linux.org Git - packages/macfanctld.git/commitdiff
new, version 0.6 from github
authorElan Ruusamäe <glen@delfi.ee>
Wed, 6 Feb 2013 18:45:37 +0000 (20:45 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 6 Feb 2013 18:49:30 +0000 (20:49 +0200)
based on opensuse src.rpm with different version but same code
http://oem.suse.com/repositories/home:/aapletux/Fedora_17/src/macfanctld-3.8.4-3.2.src.rpm

macfanctld.service [new file with mode: 0644]
macfanctld.spec [new file with mode: 0644]

diff --git a/macfanctld.service b/macfanctld.service
new file mode 100644 (file)
index 0000000..8ef74fb
--- /dev/null
@@ -0,0 +1,8 @@
+[Unit]
+Description=Macfand
+
+[Service]
+ExecStart=/usr/sbin/macfanctld
+
+[Install]
+WantedBy=multi-user.target
diff --git a/macfanctld.spec b/macfanctld.spec
new file mode 100644 (file)
index 0000000..5f8df5d
--- /dev/null
@@ -0,0 +1,51 @@
+Summary:       Fan control for MacBook
+Name:          macfanctld
+# note fedora and opensuse repos have same code but version as 3.8.4, wtf
+Version:       0.6
+Release:       0.1
+License:       GPL v3
+Group:         X11/Applications
+Source0:       https://github.com/MikaelStrom/macfanctld/archive/master.tar.gz?/%{name}-%{version}.tgz
+# Source0-md5: 903ee608f5e3a08f5908c581eab456fd
+Source1:       %{name}.service
+URL:           https://github.com/MikaelStrom/macfanctld
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: rpmbuild(macros) >= 1.647
+Requires:      systemd-units >= 38
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+macfanctld is a daemon that reads temperature sensors and adjust the
+fan(s) speed on MacBook's. mac‐ fanctld is configurable and logs temp
+and fan data to a file. macfanctld uses three sources to deter‐ mine
+the fan speeed: 1) average temperature from all sensors, 2) sensor
+TC0P [CPU 0 Proximity Temp and 3] and sensor TG0P [GPU 0 Proximity
+Temp]. Each source's impact on fan speed can be individually adjusted
+to fine tune working temperature on different MacBooks.
+
+Important: macfanctld depends on applesmc-dkms.
+
+%prep
+%setup -qc
+mv %{name}-*/* .
+cp -p %{SOURCE1} .
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{systemdunitdir}}
+install -p macfanctld $RPM_BUILD_ROOT%{_sbindir}
+cp -p macfanctl.conf $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p macfanctld.service $RPM_BUILD_ROOT%{systemdunitdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/macfanctl.conf
+%attr(755,root,root) %{_sbindir}/macfanctld
+%{systemdunitdir}/macfanctld.service
This page took 0.111433 seconds and 4 git commands to generate.