cpufrequtils-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Summary: CPUFreq utilities
  2. Summary(ja): CPUFreq 用のユーティリティ
  3. Name: cpufrequtils
  4. Version: 007
  5. Release: 1%{?_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 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 007-1
  76. - new upstream release
  77. * Mon Sep 22 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 005-1
  78. - new upstream release
  79. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 002-1vl5
  80. - applied new versioning policy, spec in utf-8
  81. - removed *.la
  82. * Sun Jul 15 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 002-0vl1
  83. - initial build for Vine Linux
  84. * Tue Jul 11 2006 Karsten Hopp <karsten@redhat.de>
  85. - buildrequire libsysfs-devel
  86. * Wed Jul 9 2006 Dave Jones <davej@redhat.com>
  87. - Rebuild against new libsysfs
  88. * Wed Jun 7 2006 Dave Jones <davej@redhat.com>
  89. - Upstream -002 release.
  90. * Sat Feb 11 2006 Dave Jones <davej@redhat.com>
  91. - rebuild.
  92. * Thu Feb 09 2006 Dave Jones <davej@redhat.com>
  93. - rebuild.
  94. * Mon Dec 19 2005 Dave Jones <davej@redhat.com>
  95. - New upstream 0.4 release.
  96. * Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
  97. - rebuilt for new gcj
  98. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  99. - rebuilt
  100. * Sun Jul 31 2005 Florian La Roche <laroche@redhat.com>
  101. - package all files
  102. * Mon May 9 2005 Dave Jones <davej@redhat.com>
  103. - Update to upstream 0.3
  104. * Fri Apr 22 2005 Matthias Saou <http://freshrpms.net/> 0.2-2
  105. - Major spec file cleanup. (#155731)
  106. - Use %%find_lang macro.
  107. - Add missing sysfsutils-devel build requirement.
  108. * Fri Apr 15 2005 Florian La Roche <laroche@redhat.com>
  109. - remove empty preun script
  110. * Tue Mar 1 2005 Dave Jones <davej@redhat.com>
  111. - Rebuild for gcc4.
  112. * Sun Feb 27 2005 Dave Jones <davej@redhat.com>
  113. - Update to upstream 0.2
  114. * Tue Feb 8 2005 Dave Jones <davej@redhat.com>
  115. - Rebuild with -D_FORTIFY_SOURCE=2
  116. * Sat Dec 4 2004 Dave Jones <davej@redhat.com>
  117. - Initial packaging