]> git.pld-linux.org Git - packages/thinkfan.git/blame - thinkfan.spec
- install generic sysfs config by default, update desc
[packages/thinkfan.git] / thinkfan.spec
CommitLineData
4c854604
AM
1Summary: ThinkPad fan control program
2Name: thinkfan
3Version: 0.7.1
4Release: 1
5License: GPL
6Group: Base
7Source0: http://downloads.sourceforge.net/thinkfan/%{name}-%{version}.tar.gz
8# Source0-md5: 0e98ec7854edbb8186544f3aec6d95e4
9Source1: %{name}.init
5f5f68ff 10URL: http://thinkfan.sourceforge.net/
4c854604
AM
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
5f5f68ff
ER
14A minimalist fan control program. Supports any kind of system via the
15sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as
16little CPU power as possible. The development was inspired by the
17excellent work people have done on thinkwiki.org.
4c854604
AM
18
19%prep
20%setup -q
21sed -i -e 's#gcc#%{__cc}#g' Makefile
22
23%build
24%{__make} \
25 CC="%{__cc}" \
26 CFLAGS="%{rpmcppflags} %{rpmcflags}"
27
4c854604
AM
28%install
29rm -rf $RPM_BUILD_ROOT
4c854604
AM
30install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
31
5f5f68ff
ER
32install -p thinkfan $RPM_BUILD_ROOT%{_sbindir}
33install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
34cp -p thinkfan.conf.sysfs $RPM_BUILD_ROOT%{_sysconfdir}/thinkfan.conf
35cp -p thinkfan.1 $RPM_BUILD_ROOT%{_mandir}/man1
4c854604
AM
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%post
41/sbin/chkconfig --add thinkfan
5f5f68ff 42%service thinkfan restart
4c854604
AM
43
44%preun
45if [ "$1" = "0" ]; then
5f5f68ff
ER
46 /sbin/chkconfig --del thinkfan
47 %service thinkfan stop
4c854604
AM
48fi
49
50%files
51%defattr(644,root,root,755)
5f5f68ff
ER
52%doc NEWS README ChangeLog thinkfan.conf.thinkpad
53%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
54%attr(754,root,root) /etc/rc.d/init.d/%{name}
4c854604
AM
55%attr(755,root,root) %{_sbindir}/thinkfan
56%{_mandir}/man1/thinkfan.1*
This page took 0.149492 seconds and 4 git commands to generate.