1 Summary: CPU frequency scaling daemon
2 Summary(pl): Demon skalowania czêstotliwo¶ci procesora
8 Source0: http://www.deater.net/john/%{name}-%{version}.tar.gz
9 # Source0-md5: 9c7131bce36bbb3e8b688478e8dc34c7
10 Source1: powernowd.init
11 Source2: powernowd.sysconfig
12 URL: http://www.deater.net/john/powernowd.html
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Powernowd reduces CPU's freuency when it's idle.
19 Powernowd zmniejsza czêstotliwo¶æ procesora gdy jest bezczynny.
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sbindir},%{_sysconfdir}/sysconfig}
31 install -m 755 %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
32 install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/%{name}
33 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
36 rm -rf $RPM_BUILD_ROOT
39 /sbin/chkconfig --add powernowd
40 if [ -f /var/lock/subsys/powernowd ]; then
41 /etc/rc.d/init.d/powernowd restart >&2
43 echo "Run \"/etc/rc.d/init.d/powernowd start\" to start powernowd daemon."
47 if [ "$1" = "0" ]; then
48 if [ -f /var/lock/subsys/powernowd ]; then
49 /etc/rc.d/init.d/powernowd stop>&2
51 /sbin/chkconfig --del powernowd
55 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_sbindir}/*
60 # initscript and its config
61 %attr(754,root,root) /etc/rc.d/init.d/%{name}
62 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}