cpufrequtils-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. Summary: CPUFreq utilities
  2. Summary(ja): CPUFreq 用のユーティリティ
  3. Name: cpufrequtils
  4. Version: 007
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Base
  7. License: GPLv2
  8. Source: %{name}-%{version}.tar.bz2
  9. Patch0: disable-gsic.patch
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: sysfsutils-devel
  12. ExclusiveArch: %{ix86} x86_64 ppc ppc64
  13. %description
  14. cpufreq-utils contains several utilities that can be used to control
  15. the cpufreq interface provided by the kernel on hardware that
  16. supports CPU frequency scaling.
  17. %prep
  18. %setup -q
  19. %patch0 -p1
  20. %build
  21. make CFLAGS="$RPM_OPT_FLAGS"
  22. %ifarch %{ix86}
  23. cd debug/i386
  24. make CFLAGS="$RPM_OPT_FLAGS"
  25. %endif
  26. %ifarch x86_64
  27. cd debug/x86_64
  28. make CFLAGS="$RPM_OPT_FLAGS"
  29. %endif
  30. cd ..
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make DESTDIR=%{buildroot} \
  34. mandir=%{_mandir} bindir=%{_bindir} \
  35. includedir=%{_includedir} libdir=%{_libdir} \
  36. install
  37. %find_lang cpufrequtils
  38. %ifarch %{ix86}
  39. cd debug/i386
  40. install centrino-decode %{buildroot}%{_bindir}/centrino-decode
  41. install dump_psb %{buildroot}%{_bindir}/dump_psb
  42. install powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
  43. cd ../..
  44. %endif
  45. %ifarch x86_64
  46. cd debug/x86_64
  47. install powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
  48. cd ../..
  49. %endif
  50. chmod -R a-s %{buildroot}
  51. ## remove unuse files
  52. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT;
  55. %post -p /sbin/ldconfig
  56. %postun -p /sbin/ldconfig
  57. %files -f cpufrequtils.lang
  58. %defattr(-,root,root,0755)
  59. %{_includedir}/cpufreq.h
  60. #%{_libdir}/libcpufreq.la
  61. %{_libdir}/libcpufreq.so*
  62. %{_libdir}/libcpufreq.a
  63. %{_bindir}/cpufreq-aperf
  64. %{_bindir}/cpufreq-info
  65. %{_bindir}/cpufreq-set
  66. %ifarch %{ix86}
  67. %{_bindir}/centrino-decode
  68. %{_bindir}/dump_psb
  69. %endif
  70. %ifarch %{ix86} x86_64
  71. %{_bindir}/powernow-k8-decode
  72. %endif
  73. %{_mandir}/*/*
  74. %changelog
  75. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 007-2
  76. - rebuilt with rpm-4.8.1-3
  77. * Sun Apr 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 007-1
  78. - new upstream release
  79. * Mon Sep 22 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 005-1
  80. - new upstream release
  81. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 002-1vl5
  82. - applied new versioning policy, spec in utf-8
  83. - removed *.la
  84. * Sun Jul 15 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 002-0vl1
  85. - initial build for Vine Linux
  86. * Tue Jul 11 2006 Karsten Hopp <karsten@redhat.de>
  87. - buildrequire libsysfs-devel
  88. * Wed Jul 9 2006 Dave Jones <davej@redhat.com>
  89. - Rebuild against new libsysfs
  90. * Wed Jun 7 2006 Dave Jones <davej@redhat.com>
  91. - Upstream -002 release.
  92. * Sat Feb 11 2006 Dave Jones <davej@redhat.com>
  93. - rebuild.
  94. * Thu Feb 09 2006 Dave Jones <davej@redhat.com>
  95. - rebuild.
  96. * Mon Dec 19 2005 Dave Jones <davej@redhat.com>
  97. - New upstream 0.4 release.
  98. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  99. - rebuilt for new gcj
  100. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  101. - rebuilt
  102. * Sun Jul 31 2005 Florian La Roche <laroche@redhat.com>
  103. - package all files
  104. * Mon May 9 2005 Dave Jones <davej@redhat.com>
  105. - Update to upstream 0.3
  106. * Fri Apr 22 2005 Matthias Saou <http://freshrpms.net/> 0.2-2
  107. - Major spec file cleanup. (#155731)
  108. - Use %%find_lang macro.
  109. - Add missing sysfsutils-devel build requirement.
  110. * Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
  111. - remove empty preun script
  112. * Tue Mar 1 2005 Dave Jones <davej@redhat.com>
  113. - Rebuild for gcc4.
  114. * Sun Feb 27 2005 Dave Jones <davej@redhat.com>
  115. - Update to upstream 0.2
  116. * Tue Feb 8 2005 Dave Jones <davej@redhat.com>
  117. - Rebuild with -D_FORTIFY_SOURCE=2
  118. * Sat Dec 4 2004 Dave Jones <davej@redhat.com>
  119. - Initial packaging