cpufreqd-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. %description
  16. cpufreqd is used to monitor the status of the battery and adjust the frequency
  17. of the CPU accordingly in order to preserve battery power while providing
  18. optimal performance. The behaviour of the daemon is fully configurable. Logs
  19. are reported through syslogd.
  20. %prep
  21. %setup -q
  22. %patch11 -p1
  23. %build
  24. %configure
  25. make
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. %makeinstall
  29. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/
  30. install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cpufreqd
  31. mv $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf \
  32. $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf.org
  33. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cpufreqd.conf
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %post
  37. /sbin/chkconfig --add cpufreqd
  38. %{_sysconfdir}/init.d/cpufreqd condrestart
  39. %preun
  40. if [ $1 = 0 ]; then
  41. /sbin/chkconfig --del cpufreqd
  42. %{_sysconfdir}/init.d/cpufreqd stop
  43. fi
  44. %files
  45. %defattr(-,root,root)
  46. %doc COPYING README TODO examples/ scripts/
  47. %attr(0711,root,root) %{_sbindir}/*
  48. %{_libdir}/*.so
  49. %config %{_sysconfdir}/cpufreqd.conf
  50. %config %{_sysconfdir}/cpufreqd.conf.org
  51. %{_sysconfdir}/rc.d/init.d/cpufreqd
  52. %{_mandir}/man*/*
  53. %changelog
  54. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl5
  55. - applied new versioning policy, spec in utf-8
  56. * Sun May 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-0vl1
  57. - new upstream release
  58. - add condrestart in initscript
  59. - check cpufreq and power management interface in initscript
  60. - use condrestart in %%post script instead of restart
  61. * Thu Jun 17 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.2-0vl1
  62. - new upstream release
  63. - use macros %configure
  64. - fix cpufreqd.conf and added original config file
  65. - added pmu swich in rc.cpufreqd
  66. * Thu Mar 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1
  67. - new upstream release
  68. - add PreReq: initscripts
  69. * Sat Aug 16 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0-0vl0.4
  70. - added Patch11 to enable building with non-root user
  71. * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.3
  72. - add small patch to work apm support.
  73. * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.2
  74. - fix scripts
  75. - add post/preun script to restart/stop daemon.
  76. * Tue May 13 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0.1
  77. - new upstream release 1.0-beta1
  78. * Tue Jan 14 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl0
  79. - initial release