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