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