1 Summary: Athlon Powersaving bits enabler
2 Summary(ja.UTF-8): AMD Athlon/Duron の省電力機能を有効にする
3 Summary(pl.UTF-8): Narzędzie do włączania trybu oszczędności energii procesorów Athlon
8 Group: Applications/System
9 Source0: http://members.jcom.home.ne.jp/jacobi/linux/files/%{name}-%{version}.tar.gz
10 # Source0-md5: 4f550f9aaaa68a01d1e8ae31491e5406
12 Source2: %{name}.sysconfig
13 URL: http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
14 BuildRequires: pciutils-devel
15 BuildRequires: pkgconfig
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(post,preun): /sbin/chkconfig
19 ExclusiveArch: %{ix86}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 athcool is a small utility for enabling/disabling powersaving mode on
24 AMD Athlon/Duron processors.
26 Powersaving works if your kernel supports ACPI (APM doesn't work),
27 because athcool only sets/unsets "Disconnect enable when STPGNT
28 detected" bits in the northern bridge of the chipset.
30 %description -l ja.UTF-8
31 athcool は AMD Athlon/Duron
32 の省電力機能を有効にし、無駄な発熱を抑えます。 CPU
34 チップセットによっては正常に作動しない場合もありますので、上記 URL
35 を参照 の上で使用してください。 なお、省電力機能には ACPI
38 %description -l pl.UTF-8
39 athcool jest małym programem narzędziowym służącym do włączania i
40 wyłączania trybu oszczędności energii procesorów AMD Athlon/Duron.
42 Tryb oszczędności energii działa, gdy jądro zawiera wsparcie dla ACPI
43 (z APM nie działa), gdyż athcool jedynie ustawia/zeruje flagi bitowe
44 "Disconnect enable when STPGNT detected" w mostku północnym chipsetu.
52 CFLAGS="%{rpmcflags}" \
53 LIBS="`pkg-config --libs libpci`"
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
60 DESTDIR=$RPM_BUILD_ROOT
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
63 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
66 rm -rf $RPM_BUILD_ROOT
69 /sbin/chkconfig --add athcool
70 %service athcool restart
73 if [ "$1" = "0" ]; then
75 /sbin/chkconfig --del athcool
79 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_sbindir}/athcool
82 %attr(754,root,root) /etc/rc.d/init.d/%{name}
83 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}