]> git.pld-linux.org Git - packages/athcool.git/blobdiff - athcool.spec
- release 2
[packages/athcool.git] / athcool.spec
index ea6da51943efb196a2593766aa82735812087705..4a546fab1e2251a4bdbeb5ddac740356d018b88b 100644 (file)
@@ -1,56 +1,56 @@
-
 Summary:       Athlon Powersaving bits enabler
-Summary(ja):   AMD Athlon/Duron ¤Î¾ÊÅÅÎϵ¡Ç½¤òÍ­¸ú¤Ë¤¹¤ë
-Summary(pl):   Narzêdzie do w³±czania trybu oszczêdno¶ci energii procesorów Athlon
+Summary(ja.UTF-8):     AMD Athlon/Duron の省電力機能を有効にする
+Summary(pl.UTF-8):     Narzędzie do włączania trybu oszczędności energii procesorów Athlon
 Name:          athcool
-Version:       0.3.0
+Version:       0.3.11
 Release:       2
-License:       GPL v2
+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: 4f550f9aaaa68a01d1e8ae31491e5406
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
-Patch0:                %{name}-DESTDIR.patch
-URL:           http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
+URL:           http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
 BuildRequires: pciutils-devel
-PreReq:                rc-scripts
-Requires(post,postun): /sbin/chkconfig
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 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
-¡¡athcool ¤Ï AMD Athlon/Duron
-¤Î¾ÊÅÅÎϵ¡Ç½¤òÍ­¸ú¤Ë¤·¡¢ÌµÂ̤ÊȯǮ¤òÍÞ¤¨¤Þ¤¹¡£ CPU
-ÍøÍÑΨ¤¬Ä㤤»þ¤Ë¤Ï·àŪ¤ËȯǮ¤¬¸º¤ê¤Þ¤¹¡£
-¡¡¥Á¥Ã¥×¥»¥Ã¥È¤Ë¤è¤Ã¤Æ¤ÏÀµ¾ï¤ËºîÆ°¤·¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¾åµ­
-URL ¤ò»²¾È ¤Î¾å¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¡¡¤Ê¤ª¡¢¾ÊÅÅÎϵ¡Ç½¤Ë¤Ï ACPI
-Âбþ¤Î¥«¡¼¥Í¥ë¤¬É¬ÍפǤ¹¡£
+%description -l ja.UTF-8
+ athcool は AMD Athlon/Duron
+の省電力機能を有効にし、無駄な発熱を抑えます。 CPU
+利用率が低い時には劇的に発熱が減ります。
+ チップセットによっては正常に作動しない場合もありますので、上記 URL
+を参照 の上で使用してください。  なお、省電力機能には ACPI
+対応のカーネルが必要です。
 
-%description -l pl
-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.
+%description -l pl.UTF-8
+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
-(z APM nie dzia³a), gdy¿ athcool jedynie ustawia/zeruje flagi bitowe
-"Disconnect enable when STPGNT detected" w mostku pó³nocnym chipsetu.
+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} \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}"
+       CFLAGS="%{rpmcflags}" \
+       LIBS="`pkg-config --libs libpci`"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -67,9 +67,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add athcool
+%service athcool restart
 
 %preun
 if [ "$1" = "0" ]; then
+       %service athcool stop
        /sbin/chkconfig --del athcool
 fi
 
@@ -78,4 +80,5 @@ fi
 %doc README ChangeLog
 %attr(755,root,root) %{_sbindir}/athcool
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
-%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{_mandir}/man8/*
This page took 0.118738 seconds and 4 git commands to generate.