]> git.pld-linux.org Git - packages/athcool.git/blob - athcool.spec
- fix chkconfig, rc-scripts deps
[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.11
6 Release:        1
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:  4f550f9aaaa68a01d1e8ae31491e5406
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 URL:            http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
14 BuildRequires:  pciutils-devel
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 Requires(post,preun):   /sbin/chkconfig
17 Requires:       rc-scripts
18 ExclusiveArch:  %{ix86}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 athcool is a small utility for enabling/disabling powersaving mode on
23 AMD Athlon/Duron processors.
24
25 Powersaving works if your kernel supports ACPI (APM doesn't work),
26 because athcool only sets/unsets "Disconnect enable when STPGNT
27 detected" bits in the northern bridge of the chipset.
28
29 %description -l ja
30 ¡¡athcool ¤Ï AMD Athlon/Duron
31 ¤Î¾ÊÅÅÎϵ¡Ç½¤òÍ­¸ú¤Ë¤·¡¢ÌµÂ̤ÊȯǮ¤òÍÞ¤¨¤Þ¤¹¡£ CPU
32 ÍøÍÑΨ¤¬Ä㤤»þ¤Ë¤Ï·àŪ¤ËȯǮ¤¬¸º¤ê¤Þ¤¹¡£
33 ¡¡¥Á¥Ã¥×¥»¥Ã¥È¤Ë¤è¤Ã¤Æ¤ÏÀµ¾ï¤ËºîÆ°¤·¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¾åµ­ URL
34 ¤ò»²¾È ¤Î¾å¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¡¡¤Ê¤ª¡¢¾ÊÅÅÎϵ¡Ç½¤Ë¤Ï 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
48 %build
49 %{__make} \
50         CC="%{__cc}" \
51         CFLAGS="%{rpmcflags}"
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
61 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 /sbin/chkconfig --add athcool
68 %service athcool restart
69
70 %preun
71 if [ "$1" = "0" ]; then
72         %service athcool stop
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 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
82 %{_mandir}/man8/*
This page took 0.029999 seconds and 4 git commands to generate.