[thinkfan/f17] Initial commit (#861694)

Matt Spaulding madsa at fedoraproject.org
Wed Oct 3 05:40:01 UTC 2012


commit 27640d2736cdfb4f90ef36034d9d02029179e32e
Author: Matt Spaulding <mspaulding06 at gmail.com>
Date:   Tue Oct 2 22:38:38 2012 -0700

    Initial commit (#861694)

 .gitignore        |    1 +
 sources           |    1 +
 thinkfan.modprobe |    1 +
 thinkfan.spec     |   82 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7a769e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/thinkfan-0.8.1.tar.gz
diff --git a/sources b/sources
index e69de29..2abc1a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aaa6c88bab3b43756ac5a1638622828c  thinkfan-0.8.1.tar.gz
diff --git a/thinkfan.modprobe b/thinkfan.modprobe
new file mode 100644
index 0000000..00e1014
--- /dev/null
+++ b/thinkfan.modprobe
@@ -0,0 +1 @@
+options thinkpad_acpi fan_control=1
diff --git a/thinkfan.spec b/thinkfan.spec
new file mode 100644
index 0000000..ba9b908
--- /dev/null
+++ b/thinkfan.spec
@@ -0,0 +1,82 @@
+Name:		thinkfan
+Version:	0.8.1
+Release:	2%{?dist}
+Summary:	A simple fan control program
+
+Group:		Applications/System
+License:	GPLv3+
+URL:		http://thinkfan.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1:    thinkfan.modprobe
+
+BuildRequires:	systemd-units
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+%description
+A simple fan control program.  Works with any Linux hwmon driver,
+especially with thinkpad_acpi.  It is designed to eat as little
+CPU power as possible.
+
+
+%prep
+%setup -q
+
+# Make man page documentation UTF-8
+iconv -f ISO-8859-1 -t UTF-8 thinkfan.1 > thinkfan.1
+
+%build
+CFLAGS="-ggdb" make %{?_smp_mflags}
+
+
+%install
+# Install unit file
+install -d $RPM_BUILD_ROOT%{_unitdir}
+install -pm 0644 rcscripts/thinkfan.service $RPM_BUILD_ROOT%{_unitdir}
+
+# Install configuration file
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/thinkfan
+install -pm 0644 examples/thinkfan.conf.thinkpad $RPM_BUILD_ROOT%{_sysconfdir}/thinkfan/thinkfan.conf
+
+# Install modprobe configuration file
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
+install -pm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/thinkfan.conf
+
+# Install thinkfan daemon
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -pm 0755 thinkfan $RPM_BUILD_ROOT%{_sbindir}
+
+# Install manpages
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -pm 0644 thinkfan.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%post
+%systemd_post thinkfan.service
+
+%preun
+%systemd_preun thinkfan.service
+
+%postun
+%systemd_postun_with_restart thinkfan.service
+
+
+%files
+%{_sbindir}/thinkfan
+%{_unitdir}/thinkfan.service
+%dir %{_sysconfdir}/thinkfan
+%config(noreplace) %{_sysconfdir}/thinkfan/thinkfan.conf
+%config(noreplace) %{_sysconfdir}/modprobe.d/thinkfan.conf
+%{_mandir}/man1/thinkfan.1.*
+%doc examples ChangeLog README NEWS COPYING
+
+
+
+%changelog
+* Mon Oct 01 2012 Matt Spaulding <mspaulding06 at gmail.com> - 0.8.1-2
+- Fixed license type
+- Fixed manpages entry in files section
+
+* Sat Sep 29 2012 Matt Spaulding <mspaulding06 at gmail.com> - 0.8.1-1
+- Initial packaging
+


More information about the scm-commits mailing list