[521] | 1 | Summary: CPU Frequency adjusting daemon. |
---|
| 2 | Summary(ja): CPU 周波数調整デーモン |
---|
| 3 | Name: cpuspeed |
---|
| 4 | Version: 1.5 |
---|
| 5 | Release: 1%{?_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 | BuildPreReq: automake autoconf util-linux groff gettext |
---|
| 24 | ExclusiveArch: i386 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 Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1 |
---|
| 98 | - new upstream release |
---|
| 99 | - update cpuspeed.init, cpuspeed.conf |
---|
| 100 | - use ondemand governor by default. |
---|
| 101 | - comment out older settings. |
---|
| 102 | - add %%triggerpostun to relpace cpuspeed.conf if upgrade from |
---|
| 103 | older (userspace) version. |
---|
| 104 | |
---|
| 105 | * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-3 |
---|
| 106 | - fix typo in %%postun |
---|
| 107 | - spec in utf8 |
---|
| 108 | |
---|
| 109 | * Sun Apr 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.2.1-2 |
---|
| 110 | - update cpuspeed.init & cpuspeed.conf |
---|
| 111 | - use userspace governor (and cpuspeed daemon) as default |
---|
| 112 | - set some default values from previous cpuspeed.conf |
---|
| 113 | - add "|| ;" in %%postun script to avoid scriptlet failure |
---|
| 114 | |
---|
| 115 | * Fri Apr 11 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.2.1-1 |
---|
| 116 | - update Source1&2 (based on fedora development) |
---|
| 117 | - add Patch4 for multicore-workaround (from fedora development) |
---|
| 118 | - apply new versioning policy |
---|
| 119 | |
---|
| 120 | * Thu Nov 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl7 |
---|
| 121 | - add e_powersaver and acpi-cpufreq to driver list. |
---|
| 122 | - change default cpuspeed.conf |
---|
| 123 | - modify polling interval and threshold to change cpu speed |
---|
| 124 | more frequently. |
---|
| 125 | |
---|
| 126 | * Sat Nov 18 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl6 |
---|
| 127 | - change default cpuspeed.conf |
---|
| 128 | - set polling interval to change cpu speed more frequently. |
---|
| 129 | - set cpu idle percentage threshold. |
---|
| 130 | |
---|
| 131 | * Sat Oct 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl5 |
---|
| 132 | - do not load cpufreq-nforce2 automatically (<BTS:247>) |
---|
| 133 | |
---|
| 134 | * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl4 |
---|
| 135 | - update cpuspeed.init to load cpufreq driver automatically. |
---|
| 136 | |
---|
| 137 | * Thu Sep 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl3 |
---|
| 138 | - add Patch10 to modify default configuration. |
---|
| 139 | - add Documents to %%files (<BTS:180>) |
---|
| 140 | - restart daemon on upgrade |
---|
| 141 | |
---|
| 142 | * Sun Jun 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl2 |
---|
| 143 | - add Japanese summary and description |
---|
| 144 | |
---|
| 145 | * Mon Jun 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-0vl1 |
---|
| 146 | - initial build for Vine Linux based on FC package. |
---|
| 147 | |
---|
| 148 | * Mon May 9 2005 Dave Jones <davej@redhat.com> |
---|
| 149 | - Fix debuginfo generation. |
---|
| 150 | |
---|
| 151 | * Wed Apr 6 2005 Dave Jones <davej@redhat.com> |
---|
| 152 | - Don't count nice time as idle time. (#132383) |
---|
| 153 | |
---|
| 154 | * Tue Mar 1 2005 Dave Jones <davej@redhat.com> |
---|
| 155 | - Rebuild for gcc4. |
---|
| 156 | |
---|
| 157 | * Tue Feb 8 2005 Dave Jones <davej@redhat.com> |
---|
| 158 | - Rebuild with -D_FORTIFY_SOURCE=2 |
---|
| 159 | |
---|
| 160 | * Fri Feb 4 2005 Dave Jones <davej@redhat.com> |
---|
| 161 | - Enable builds for PPC (#147089) |
---|
| 162 | |
---|
| 163 | * Tue Jan 11 2005 Dave Jones <davej@redhat.com> |
---|
| 164 | - Add missing Obsoletes: kernel-utils |
---|
| 165 | |
---|
| 166 | * Mon Jan 10 2005 Dave Jones <davej@redhat.com> |
---|
| 167 | - Update to upstream 1.2.1 release. |
---|
| 168 | |
---|
| 169 | * Sat Dec 18 2004 Dave Jones <davej@redhat.com> |
---|
| 170 | - Initial packaging, split out from kernel-utils. |
---|
| 171 | |
---|