]> git.pld-linux.org Git - packages/athcool.git/blob - athcool.spec
- release 4 for Ac (3 is for Ra)
[packages/athcool.git] / athcool.spec
1 Summary:        Athlon Powersaving bits enabler
2 Summary(ja):    AMD Athlon/Duron ¤Î¾ÊÅÅÎϵ¡Ç½¤òÍ­¸ú¤Ë¤¹¤ë
3 Summary(pl):    Narzêdzie do w³±czania trybu oszczêdno¶ci energii procesorów Athlon
4 Name:           athcool
5 Version:        0.3.0
6 Release:        4
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        http://members.jcom.home.ne.jp/jacobi/linux/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  a97a48071d0af234fbc788b7ee82878e
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 Patch0:         %{name}-DESTDIR.patch
14 URL:            http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
15 BuildRequires:  pciutils-devel
16 PreReq:         rc-scripts
17 Requires(post,postun):  /sbin/chkconfig
18 ExclusiveArch:  %{ix86}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 athcool is a small utility, enabling/disabling Powersaving mode for
23 AMD Athlon/Duron processors.
24
25 Powersaving works if your kernel support ACPI (APM not work), because
26 athcool only set/unset "Disconnect enable when STPGNT detected" bits
27 in the Northbridge of Chipset.
28
29 %description -l ja
30 ¡¡athcool ¤Ï AMD Athlon/Duron
31 ¤Î¾ÊÅÅÎϵ¡Ç½¤òÍ­¸ú¤Ë¤·¡¢ÌµÂ̤ÊȯǮ¤òÍÞ¤¨¤Þ¤¹¡£ CPU
32 ÍøÍÑΨ¤¬Ä㤤»þ¤Ë¤Ï·àŪ¤ËȯǮ¤¬¸º¤ê¤Þ¤¹¡£
33 ¡¡¥Á¥Ã¥×¥»¥Ã¥È¤Ë¤è¤Ã¤Æ¤ÏÀµ¾ï¤ËºîÆ°¤·¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¾åµ­
34 URL ¤ò»²¾È ¤Î¾å¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¡¡¤Ê¤ª¡¢¾ÊÅÅÎϵ¡Ç½¤Ë¤Ï ACPI
35 Âбþ¤Î¥«¡¼¥Í¥ë¤¬É¬ÍפǤ¹¡£
36
37 %description -l pl
38 athcool jest ma³ym programem narzêdziowym s³u¿±cym do w³±czania i
39 wy³±czania trybu oszczêdno¶ci energii procesorów AMD Athlon/Duron.
40
41 Tryb oszczêdno¶ci energii dzia³a gdy j±dro zawiera wsparcie dla ACPI
42 (z APM nie dzia³a), gdy¿ athcool jedynie ustawia/zeruje flagi bitowe
43 "Disconnect enable when STPGNT detected" w mostku pó³nocnym chipsetu.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48
49 %build
50 %{__make} \
51         CC="%{__cc}" \
52         CFLAGS="%{rpmcflags}"
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
62 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post
68 /sbin/chkconfig --add athcool
69
70 %preun
71 if [ "$1" = "0" ]; then
72         /sbin/chkconfig --del athcool
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README ChangeLog
78 %attr(755,root,root) %{_sbindir}/athcool
79 %attr(754,root,root) /etc/rc.d/init.d/%{name}
80 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
This page took 0.080786 seconds and 4 git commands to generate.