cpufrequtils-vl.spec 3.6 KB

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