]> git.pld-linux.org Git - packages/athcool.git/blob - athcool.spec
- added pre/post play
[packages/athcool.git] / athcool.spec
1 # TODO:
2 # - convert Japanese to EUCJP
3 # - make init-script (?)
4 #
5 Summary:        Athlon Powersaving bits enabler
6 Summary(ja):    AMD Athlon/Duron \e$B$N>JEENO5!G=$rM-8z$K$9$k\e(B
7 Summary(pl):    Narzêdzie do w³±czania trybu oszczêdno¶ci energii procesorów Athlon
8 Name:           athcool
9 Version:        0.3.0
10 Release:        1
11 License:        GPL v2
12 Group:          Applications/System
13 Source0:        http://members.jcom.home.ne.jp/jacobi/linux/files/%{name}-%{version}.tar.gz
14 # Source0-md5:  a97a48071d0af234fbc788b7ee82878e
15 Source1:        %{name}.init
16 Patch0:         %{name}-DESTDIR.patch
17 URL:            http://members.jcom.home.ne.jp/jacobi/linux/softwares-ja.html
18 BuildPrereq:    pciutils-devel
19 Requires(post,postun):  /sbin/chkconfig
20 ExclusiveArch:  %{ix86}
21 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 athcool is a small utility, enabling/disabling Powersaving mode for
25 AMD Athlon/Duron processors.
26
27 Powersaving works if your kernel support ACPI (APM not work), because
28 athcool only set/unset "Disconnect enable when STPGNT detected" bits
29 in the Northbridge of Chipset.
30
31 %description -l ja
32 \e$B!!\e(Bathcool \e$B$O\e(B AMD Athlon/Duron
33 \e$B$N>JEENO5!G=$rM-8z$K$7!"L5BL$JH/G.$rM^$($^$9!#\e(B CPU
34 \e$BMxMQN($,Dc$$;~$K$O7`E*$KH/G.$,8:$j$^$9!#\e(B
35 \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
36 URL \e$B$r;2>H\e(B \e$B$N>e$G;HMQ$7$F$/$@$5$$!#\e(B
37 \e$B!!$J$*!">JEENO5!G=$K$O\e(B ACPI \e$BBP1~$N%+!<%M%k$,I,MW$G$9!#\e(B
38
39 %description -l pl
40 athcool jest ma³ym programem narzêdziwym s³u¿acym do w³±czania i wy³±czania
41 trybu oszczêdno¶ci energii procesorów AMD Athlon/Duron.
42
43 Tryb oszczêdno¶ci energii dzia³a gdy j±dro zawiera wsparcie dla ACPI (z APM
44 nie dzia³a), gdy¿ athcool jedynie ustawia/zeruje flagi bitowe "Disconnect
45 enable when STPGNT detected" w mostku pó³nocnym chipsetu.
46
47 %prep
48 %setup -q
49 %patch0 -p1
50
51 %build
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/chkconfig --add athcool
67
68 %preun
69 if [ "$1" = "0" ]; then
70         /sbin/chkconfig --del athcool
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc README ChangeLog
76 %attr(755,root,root) %{_sbindir}/athcool
77 %attr(755,root,root) /etc/rc.d/init.d/%{name}
This page took 0.060039 seconds and 3 git commands to generate.