-# TODO:
-# - convert Japanese to EUCJP
-# - make init-script (?)
-#
Summary: Athlon Powersaving bits enabler
-Summary(ja): AMD Athlon/Duron \e$B$N>JEENO5!G=$rM-8z$K$9$k\e(B
+Summary(ja): AMD Athlon/Duron ¤Î¾ÊÅÅÎϵ¡Ç½¤ò͸ú¤Ë¤¹¤ë
Summary(pl): Narzêdzie do w³±czania trybu oszczêdno¶ci energii procesorów Athlon
Name: athcool
-Version: 0.3.0
-Release: 1
+Version: 0.3.8
+Release: 3
License: GPL v2
Group: Applications/System
Source0: http://members.jcom.home.ne.jp/jacobi/linux/files/%{name}-%{version}.tar.gz
-# Source0-md5: a97a48071d0af234fbc788b7ee82878e
+# Source0-md5: 42562a1155981e573898606e0f2534be
Source1: %{name}.init
-Patch0: %{name}-DESTDIR.patch
-URL: http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
+Source2: %{name}.sysconfig
+URL: http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
BuildRequires: pciutils-devel
PreReq: rc-scripts
Requires(post,postun): /sbin/chkconfig
ExclusiveArch: %{ix86}
-Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-athcool is a small utility, enabling/disabling Powersaving mode for
+athcool is a small utility for enabling/disabling powersaving mode on
AMD Athlon/Duron processors.
-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.
+Powersaving works if your kernel supports ACPI (APM doesn't work),
+because athcool only sets/unsets "Disconnect enable when STPGNT
+detected" bits in the northern bridge of the chipset.
%description -l ja
-\e$B!!\e(Bathcool \e$B$O\e(B AMD Athlon/Duron
-\e$B$N>JEENO5!G=$rM-8z$K$7!"L5BL$JH/G.$rM^$($^$9!#\e(B CPU
-\e$BMxMQN($,Dc$$;~$K$O7`E*$KH/G.$,8:$j$^$9!#\e(B
-\e$B!!%A%C%W%;%C%H$K$h$C$F$O@5>o$K:nF0$7$J$$>l9g$b$"$j$^$9$N$G!">e5-\e(B
-URL \e$B$r;2>H\e(B \e$B$N>e$G;HMQ$7$F$/$@$5$$!#\e(B
-\e$B!!$J$*!">JEENO5!G=$K$O\e(B ACPI \e$BBP1~$N%+!<%M%k$,I,MW$G$9!#\e(B
+¡¡athcool ¤Ï AMD Athlon/Duron
+¤Î¾ÊÅÅÎϵ¡Ç½¤ò͸ú¤Ë¤·¡¢ÌµÂ̤ÊȯǮ¤òÍÞ¤¨¤Þ¤¹¡£ CPU
+ÍøÍÑΨ¤¬Ä㤤»þ¤Ë¤Ï·àŪ¤ËȯǮ¤¬¸º¤ê¤Þ¤¹¡£
+¡¡¥Á¥Ã¥×¥»¥Ã¥È¤Ë¤è¤Ã¤Æ¤ÏÀµ¾ï¤ËºîÆ°¤·¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¾åµ
+URL ¤ò»²¾È ¤Î¾å¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¡¡¤Ê¤ª¡¢¾ÊÅÅÎϵ¡Ç½¤Ë¤Ï ACPI
+Âбþ¤Î¥«¡¼¥Í¥ë¤¬É¬ÍפǤ¹¡£
%description -l pl
-athcool jest ma³ym programem narzêdziwym s³u¿acym do w³±czania i
+athcool jest ma³ym programem narzêdziowym s³u¿±cym do w³±czania i
wy³±czania trybu oszczêdno¶ci energii procesorów AMD Athlon/Duron.
-Tryb oszczêdno¶ci energii dzia³a gdy j±dro zawiera wsparcie dla ACPI
+Tryb oszczêdno¶ci energii dzia³a, gdy j±dro zawiera wsparcie dla ACPI
(z APM nie dzia³a), gdy¿ athcool jedynie ustawia/zeruje flagi bitowe
"Disconnect enable when STPGNT detected" w mostku pó³nocnym chipsetu.
%prep
%setup -q
-%patch0 -p1
%build
%{__make} \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README ChangeLog
%attr(755,root,root) %{_sbindir}/athcool
-%attr(755,root,root) /etc/rc.d/init.d/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
+%{_mandir}/man8/*