Summary: Athlon Powersaving bits enabler
Name: athcool
Version: 0.3.11
Release: 1
License: GPL
Group: Applications/System
URL: http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
Source: athcool-%{version}.tar.gz
BuildPrereq: pciutils-devel
Buildroot: /var/tmp/%{name}-root
ExclusiveArch: %{ix86}
Prereq: /sbin/chkconfig, /sbin/service

%description
athcool is a small utility, enabling/disabling Powersaving mode
for AMD Athlon/Duron processors.

Since enabling Powersaving mode, you can save power consumption, 
lower CPU temprature when CPU is idle.

Powersaving works if your kernel support ACPI (APM not work),
because athcool only set/unset "Disconnect enable when STPGNT detected"
bits in the Northbridge of Chipset.
To really save power, someone has to send the STPGNT signal when idle.
This is done by the ACPI subsystem when C2 state entered.

!!!WARNING!!!
Depending on your motherboard and/or hardware components, 
enabling powersaving mode may cause that:

 * noisy or distorted sound playback
 * a slowdown in harddisk performance
 * system locks or instability
 * massive filesystem corruption (rare, but observed at least once)

If you met those problems, you should not use athcool.
Please use athcool AT YOUR OWN RISK.

%prep
%setup -q

%build
make

%install
rm -rf $RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

#%post
#/sbin/chkconfig --add athcool

#%preun
#if [ "$1" = "0" ]; then
#	/sbin/service athcool stop >/dev/null 2>&1
#	/sbin/chkconfig --del athcool
#fi

%files
%defattr(-, root, root)
%doc README COPYING ChangeLog
%{_sbindir}/athcool
%{_mandir}/man8/*
#%attr(0755,root,root) %{_sysconfdir}/init.d/athcool

