1 Summary: ThinkPad fan control program
2 Summary(pl.UTF-8): Program do sterowania wiatraczkiem w ThinkPadach
7 Group: Applications/System
8 Source0: http://downloads.sourceforge.net/thinkfan/%{name}-%{version}.tar.gz
9 # Source0-md5: a981142f2c52ee4b0af69d5abbe03ced
11 URL: http://thinkfan.sourceforge.net/
13 BuildRequires: libatasmart-devel
14 BuildRequires: sed >= 4.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 A minimalist fan control program. Supports any kind of system via the
19 sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as
20 little CPU power as possible. The development was inspired by the
21 excellent work people have done on thinkwiki.org.
23 %description -l pl.UTF-8
24 Minimalistyczny program do sterowania wiatraczkiem. Obsługuje dowolny
25 system poprzez interfejs sysfs hwmon (/sys/class/hwmon). Został tak
26 zaprojektowany, aby obciążać procesor w najmniejszym możliwym stopniu.
27 Stworzenie tego narzędzia zostało zainspirowane wspaniałą pracą
28 wykonaną przez ludzi na thinkwiki.org.
33 %{__sed} -i -e 's#bin#sbin#g' -e 's#man/man1#share/man/man1#g' CMakeLists.txt
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
46 %{__make} -C build install \
47 DESTDIR=$RPM_BUILD_ROOT
49 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
50 cp -p examples/thinkfan.conf.simple $RPM_BUILD_ROOT%{_sysconfdir}/thinkfan.conf
53 rm -rf $RPM_BUILD_ROOT
56 /sbin/chkconfig --add thinkfan
57 %service thinkfan restart
60 if [ "$1" = "0" ]; then
61 /sbin/chkconfig --del thinkfan
62 %service thinkfan stop
66 %defattr(644,root,root,755)
67 %doc NEWS README examples/thinkfan.conf.*
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
69 %attr(754,root,root) /etc/rc.d/init.d/%{name}
70 %attr(755,root,root) %{_sbindir}/thinkfan
71 %{_mandir}/man1/thinkfan.1*