]> git.pld-linux.org Git - packages/thinkfan.git/blame - thinkfan.spec
cmake cosmetics
[packages/thinkfan.git] / thinkfan.spec
CommitLineData
4c854604 1Summary: ThinkPad fan control program
e3fa13dc 2Summary(pl.UTF-8): Program do sterowania wiatraczkiem w ThinkPadach
4c854604 3Name: thinkfan
f4d0b43c 4Version: 0.9.1
4c854604 5Release: 1
e3fa13dc
JB
6License: GPL v3+
7Group: Applications/System
4c854604 8Source0: http://downloads.sourceforge.net/thinkfan/%{name}-%{version}.tar.gz
f4d0b43c 9# Source0-md5: a981142f2c52ee4b0af69d5abbe03ced
4c854604 10Source1: %{name}.init
5f5f68ff 11URL: http://thinkfan.sourceforge.net/
afaf75d5 12BuildRequires: cmake >= 2.6
708da53e 13BuildRequires: libatasmart-devel
09bd32e7 14BuildRequires: rpmbuild(macros) >= 1.605
e3fa13dc 15BuildRequires: sed >= 4.0
4c854604
AM
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
5f5f68ff
ER
19A minimalist fan control program. Supports any kind of system via the
20sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as
21little CPU power as possible. The development was inspired by the
22excellent work people have done on thinkwiki.org.
4c854604 23
e3fa13dc
JB
24%description -l pl.UTF-8
25Minimalistyczny program do sterowania wiatraczkiem. Obsługuje dowolny
26system poprzez interfejs sysfs hwmon (/sys/class/hwmon). Został tak
27zaprojektowany, aby obciążać procesor w najmniejszym możliwym stopniu.
28Stworzenie tego narzędzia zostało zainspirowane wspaniałą pracą
29wykonaną przez ludzi na thinkwiki.org.
30
4c854604
AM
31%prep
32%setup -q
e3fa13dc 33
f4d0b43c 34%{__sed} -i -e 's#bin#sbin#g' -e 's#man/man1#share/man/man1#g' CMakeLists.txt
4c854604
AM
35
36%build
f4d0b43c
AM
37install -d build
38cd build
09bd32e7 39%cmake \
708da53e
AM
40 -DUSE_ATASMART=1 \
41 ..
4c854604 42
4c854604
AM
43%install
44rm -rf $RPM_BUILD_ROOT
f4d0b43c
AM
45install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
46
47%{__make} -C build install \
48 DESTDIR=$RPM_BUILD_ROOT
4c854604 49
5f5f68ff 50install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
f4d0b43c 51cp -p examples/thinkfan.conf.simple $RPM_BUILD_ROOT%{_sysconfdir}/thinkfan.conf
4c854604
AM
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%post
57/sbin/chkconfig --add thinkfan
5f5f68ff 58%service thinkfan restart
4c854604
AM
59
60%preun
61if [ "$1" = "0" ]; then
5f5f68ff
ER
62 /sbin/chkconfig --del thinkfan
63 %service thinkfan stop
4c854604
AM
64fi
65
66%files
67%defattr(644,root,root,755)
f4d0b43c 68%doc NEWS README examples/thinkfan.conf.*
5f5f68ff
ER
69%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
70%attr(754,root,root) /etc/rc.d/init.d/%{name}
4c854604
AM
71%attr(755,root,root) %{_sbindir}/thinkfan
72%{_mandir}/man1/thinkfan.1*
This page took 0.099316 seconds and 4 git commands to generate.