[521] | 1 | Summary: Cpu Frequency Monitor/Control Daemon |
---|
| 2 | Summary(ja): CPUFreq 監視・制御デーモン |
---|
| 3 | Name: cpufreqd |
---|
| 4 | Version: 1.2.2 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | Source0: %{name}-%{version}.tar.gz |
---|
| 7 | Source1: %{name}.init |
---|
| 8 | Source2: cpufreqd.conf |
---|
| 9 | Patch11: cpufreqd-1.1.1-fix-Makefile.patch |
---|
| 10 | License: GPL |
---|
| 11 | Group: System Environment/Daemons |
---|
| 12 | URL: http://sourceforge.net/projects/cpufreqd/ |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-root |
---|
| 14 | PreReq: initscripts |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | cpufreqd is used to monitor the status of the battery and adjust the frequency |
---|
| 18 | of the CPU accordingly in order to preserve battery power while providing |
---|
| 19 | optimal performance. The behaviour of the daemon is fully configurable. Logs |
---|
| 20 | are reported through syslogd. |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | %setup -q |
---|
| 25 | %patch11 -p1 |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | %configure |
---|
| 30 | make |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %install |
---|
| 34 | rm -rf $RPM_BUILD_ROOT |
---|
| 35 | %makeinstall |
---|
| 36 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/ |
---|
| 37 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cpufreqd |
---|
| 38 | mv $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf \ |
---|
| 39 | $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf.org |
---|
| 40 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf |
---|
| 41 | |
---|
| 42 | %clean |
---|
| 43 | rm -rf $RPM_BUILD_ROOT |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %post |
---|
| 47 | /sbin/chkconfig --add cpufreqd |
---|
| 48 | %{_sysconfdir}/init.d/cpufreqd condrestart |
---|
| 49 | |
---|
| 50 | %preun |
---|
| 51 | if [ $1 = 0 ]; then |
---|
| 52 | /sbin/chkconfig --del cpufreqd |
---|
| 53 | %{_sysconfdir}/init.d/cpufreqd stop |
---|
| 54 | fi |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root) |
---|
| 59 | %doc COPYING README TODO examples/ scripts/ |
---|
| 60 | %attr(0711,root,root) %{_sbindir}/* |
---|
| 61 | %{_libdir}/*.so |
---|
| 62 | %config %{_sysconfdir}/cpufreqd.conf |
---|
| 63 | %config %{_sysconfdir}/cpufreqd.conf.org |
---|
| 64 | %{_sysconfdir}/rc.d/init.d/cpufreqd |
---|
| 65 | %{_mandir}/man*/* |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %changelog |
---|
| 69 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl5 |
---|
| 70 | - applied new versioning policy, spec in utf-8 |
---|
| 71 | |
---|
| 72 | * Sun May 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-0vl1 |
---|
| 73 | - new upstream release |
---|
| 74 | - add condrestart in initscript |
---|
| 75 | - check cpufreq and power management interface in initscript |
---|
| 76 | - use condrestart in %%post script instead of restart |
---|
| 77 | |
---|
| 78 | * Thu Jun 17 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.2-0vl1 |
---|
| 79 | - new upstream release |
---|
| 80 | - use macros %configure |
---|
| 81 | - fix cpufreqd.conf and added original config file |
---|
| 82 | - added pmu swich in rc.cpufreqd |
---|
| 83 | |
---|
| 84 | * Thu Mar 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1 |
---|
| 85 | - new upstream release |
---|
| 86 | - add PreReq: initscripts |
---|
| 87 | |
---|
| 88 | * Sat Aug 16 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0-0vl0.4 |
---|
| 89 | - added Patch11 to enable building with non-root user |
---|
| 90 | |
---|
| 91 | * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.3 |
---|
| 92 | - add small patch to work apm support. |
---|
| 93 | |
---|
| 94 | * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.2 |
---|
| 95 | - fix scripts |
---|
| 96 | - add post/preun script to restart/stop daemon. |
---|
| 97 | |
---|
| 98 | * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.1 |
---|
| 99 | - new upstream release 1.0-beta1 |
---|
| 100 | |
---|
| 101 | * Tue Jan 14 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0 |
---|
| 102 | - initial release |
---|