1 | Summary: CPU Frequency adjusting daemon. |
---|
2 | Summary(ja): CPU 周波数調整デーモン |
---|
3 | Name: cpuspeed |
---|
4 | Version: 1.5 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | Group: System Environment/Base |
---|
7 | License: GPLv2+ |
---|
8 | |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | Packager: daisuke, kazutaka |
---|
12 | |
---|
13 | |
---|
14 | Source0: cpuspeed-1.5.tar.bz2 |
---|
15 | Source1: cpuspeed.init |
---|
16 | Source2: cpuspeed.conf |
---|
17 | Source3: cpuspeed.8 |
---|
18 | Patch1: cpuspeed-1.5-Makefile.patch |
---|
19 | Patch2: cpuspeed-1.5-no-affected_cpus-fallback.patch |
---|
20 | |
---|
21 | |
---|
22 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | BuildRequires: automake autoconf util-linux groff gettext |
---|
24 | ExclusiveArch: %{ix86} x86_64 ppc ppc64 |
---|
25 | |
---|
26 | |
---|
27 | %description |
---|
28 | cpuspeed is a daemon that dynamically changes the speed |
---|
29 | of your processor(s) depending upon its current workload |
---|
30 | if it is capable (needs Intel Speedstep, AMD PowerNow!, |
---|
31 | or similar support). |
---|
32 | |
---|
33 | %description -l ja |
---|
34 | cpuspeed は、システムの現在のワークロードに応じて CPU の速度(周波数)を |
---|
35 | 動的に変化させるデーモンです。これを利用するには Intel の Speedstep や |
---|
36 | AMD のPowerNow! などの省電力機構が必要になります。 |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | |
---|
41 | %patch1 -p1 -b .make |
---|
42 | %patch2 -p1 -b .ac |
---|
43 | |
---|
44 | %build |
---|
45 | rm -rf $RPM_BUILD_ROOT |
---|
46 | |
---|
47 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
---|
48 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
49 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8/ |
---|
50 | |
---|
51 | make |
---|
52 | |
---|
53 | %install |
---|
54 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
55 | install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cpuspeed |
---|
56 | install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpuspeed.conf |
---|
57 | install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpuspeed.conf.dist |
---|
58 | install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man8/cpuspeed.8 |
---|
59 | |
---|
60 | %clean |
---|
61 | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
---|
62 | |
---|
63 | %files |
---|
64 | %defattr(-,root,root) |
---|
65 | %doc CHANGES EXAMPLES CONTRIBUTORS FEATURES README USAGE |
---|
66 | %{_sbindir}/cpuspeed |
---|
67 | %{_sysconfdir}/rc.d/init.d/cpuspeed |
---|
68 | %{_sysconfdir}/cpuspeed.conf.dist |
---|
69 | %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cpuspeed.conf |
---|
70 | %{_mandir}/man8/* |
---|
71 | |
---|
72 | %preun |
---|
73 | if [ "$1" = "0" ] ; then |
---|
74 | /sbin/chkconfig --del cpuspeed |
---|
75 | fi |
---|
76 | |
---|
77 | %postun |
---|
78 | if [ "$1" -ge "1" ]; then |
---|
79 | service cpuspeed condrestart > /dev/null 2>&1 || : |
---|
80 | fi |
---|
81 | |
---|
82 | %post |
---|
83 | /sbin/chkconfig --add cpuspeed |
---|
84 | |
---|
85 | %triggerpostun -- cpuspeed < 1.5-1 |
---|
86 | if [ -f /etc/cpuspeed.conf ]; then |
---|
87 | if (! grep -q "GOVERNER=$" /etc/cpuspeed.conf); then |
---|
88 | if [ -f /etc/cpuspeed.conf.dist ]; then |
---|
89 | cp -f /etc/cpuspeed.conf /etc/cpuspeed.conf.rpmsave |
---|
90 | cp -f /etc/cpuspeed.conf.dist /etc/cpuspeed.conf |
---|
91 | fi |
---|
92 | fi |
---|
93 | fi |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Thu Apr 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-2 |
---|
98 | - rebuild for Vine 6 |
---|
99 | - s/BuildPreReq/BuildRequires |
---|
100 | |
---|
101 | * Thu Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1 |
---|
102 | - new upstream release |
---|
103 | - update cpuspeed.init, cpuspeed.conf |
---|
104 | - use ondemand governor by default. |
---|
105 | - comment out older settings. |
---|
106 | - add %%triggerpostun to relpace cpuspeed.conf if upgrade from |
---|
107 | older (userspace) version. |
---|
108 | |
---|
109 | * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-3 |
---|
110 | - fix typo in %%postun |
---|
111 | - spec in utf8 |
---|
112 | |
---|
113 | * Sun Apr 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.2.1-2 |
---|
114 | - update cpuspeed.init & cpuspeed.conf |
---|
115 | - use userspace governor (and cpuspeed daemon) as default |
---|
116 | - set some default values from previous cpuspeed.conf |
---|
117 | - add "|| ;" in %%postun script to avoid scriptlet failure |
---|
118 | |
---|
119 | * Fri Apr 11 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.2.1-1 |
---|
120 | - update Source1&2 (based on fedora development) |
---|
121 | - add Patch4 for multicore-workaround (from fedora development) |
---|
122 | - apply new versioning policy |
---|
123 | |
---|
124 | * Thu Nov 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl7 |
---|
125 | - add e_powersaver and acpi-cpufreq to driver list. |
---|
126 | - change default cpuspeed.conf |
---|
127 | - modify polling interval and threshold to change cpu speed |
---|
128 | more frequently. |
---|
129 | |
---|
130 | * Sat Nov 18 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl6 |
---|
131 | - change default cpuspeed.conf |
---|
132 | - set polling interval to change cpu speed more frequently. |
---|
133 | - set cpu idle percentage threshold. |
---|
134 | |
---|
135 | * Sat Oct 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl5 |
---|
136 | - do not load cpufreq-nforce2 automatically (<BTS:247>) |
---|
137 | |
---|
138 | * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl4 |
---|
139 | - update cpuspeed.init to load cpufreq driver automatically. |
---|
140 | |
---|
141 | * Thu Sep 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl3 |
---|
142 | - add Patch10 to modify default configuration. |
---|
143 | - add Documents to %%files (<BTS:180>) |
---|
144 | - restart daemon on upgrade |
---|
145 | |
---|
146 | * Sun Jun 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl2 |
---|
147 | - add Japanese summary and description |
---|
148 | |
---|
149 | * Mon Jun 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl1 |
---|
150 | - initial build for Vine Linux based on FC package. |
---|
151 | |
---|
152 | * Mon May 9 2005 Dave Jones <davej@redhat.com> |
---|
153 | - Fix debuginfo generation. |
---|
154 | |
---|
155 | * Wed Apr 6 2005 Dave Jones <davej@redhat.com> |
---|
156 | - Don't count nice time as idle time. (#132383) |
---|
157 | |
---|
158 | * Tue Mar 1 2005 Dave Jones <davej@redhat.com> |
---|
159 | - Rebuild for gcc4. |
---|
160 | |
---|
161 | * Tue Feb 8 2005 Dave Jones <davej@redhat.com> |
---|
162 | - Rebuild with -D_FORTIFY_SOURCE=2 |
---|
163 | |
---|
164 | * Fri Feb 4 2005 Dave Jones <davej@redhat.com> |
---|
165 | - Enable builds for PPC (#147089) |
---|
166 | |
---|
167 | * Tue Jan 11 2005 Dave Jones <davej@redhat.com> |
---|
168 | - Add missing Obsoletes: kernel-utils |
---|
169 | |
---|
170 | * Mon Jan 10 2005 Dave Jones <davej@redhat.com> |
---|
171 | - Update to upstream 1.2.1 release. |
---|
172 | |
---|
173 | * Sat Dec 18 2004 Dave Jones <davej@redhat.com> |
---|
174 | - Initial packaging, split out from kernel-utils. |
---|
175 | |
---|