lm-sensors-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Summary: Linux hardware monitoring
  2. Summary(ja): Linux ハードウェア監視ソフト
  3. Name: lm-sensors
  4. Version: 3.1.2
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. URL: http://www.lm-sensors.org/
  9. Source0: http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-%{version}.tar.bz2
  10. Requires: perl
  11. BuildRequires: sysfsutils-devel
  12. BuildRequires: bison, flex
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: shaolin, owa
  17. %description
  18. The lm-sensors package, version 3, provides user-space support for the
  19. hardware monitoring drivers in Linux 2.6.5 and later. For older kernel
  20. versions, you have to use lm-sensors version 2.
  21. Lm-sensors is a hardware health monitoring package for Linux.
  22. It allows you to access information from temperature, voltage,
  23. and fan speed sensors. It works with most newer systems.
  24. %package devel
  25. Summary: Development libraries and headers for %{name}
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. %description devel
  29. Development libraries and headers for %{name}.
  30. %prep
  31. %setup -q -n lm_sensors-%{version}
  32. %build
  33. make all
  34. %install
  35. rm -rf %{buildroot}
  36. make install \
  37. PREFIX=%{buildroot}%{_prefix} \
  38. LIBDIR=%{buildroot}%{_libdir} \
  39. ETCDIR=%{buildroot}%{_sysconfdir} \
  40. MANDIR=%{buildroot}%{_mandir}
  41. # add initscript from proc/init
  42. mkdir -p %{buildroot}%{_initdir}
  43. install -m755 prog/init/lm_sensors.init %{buildroot}%{_initdir}/lm_sensors
  44. # remove unuse files
  45. rm -f %{buildroot}/%{_libdir}/*.a
  46. %clean
  47. rm -rf %{buildroot}
  48. %post
  49. /sbin/ldconfig
  50. if [ "$1" = 1 ] ; then
  51. /sbin/chkconfig --add lm_sensors
  52. fi
  53. %{_initdir}/lm_sensors condrestart
  54. %preun
  55. if [ "$1" = 0 ] ; then
  56. %{_initdir}/lm_sensors stop > /dev/null 2>&1
  57. /sbin/chkconfig --del lm_sensors
  58. fi
  59. %postun
  60. /sbin/ldconfig
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc CHANGES CONTRIBUTORS COPYING INSTALL README doc
  64. %dir %{_sysconfdir}/sensors.d
  65. %config(noreplace) %{_sysconfdir}/sensors3.conf
  66. %config %{_initdir}/lm_sensors
  67. %{_bindir}/sensors
  68. %{_bindir}/sensors-conf-convert
  69. %{_sbindir}/fancontrol
  70. %ifarch %{ix86} x86_64
  71. %{_sbindir}/isadump
  72. %{_sbindir}/isaset
  73. %endif
  74. %{_sbindir}/pwmconfig
  75. %{_sbindir}/sensors-detect
  76. %{_libdir}/libsensors.so*
  77. %{_mandir}/*/*
  78. %files devel
  79. %{_includedir}/sensors
  80. %changelog
  81. * Tue Mar 16 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.2-1
  82. - updated lm-sensors to 3.1.2
  83. * Tue Oct 20 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.1.1-2
  84. - isadump/isaset only available on ix86/x86_64 archs
  85. * Mon Aug 31 2009 Shu KONNO <owa@bg.wakwak.com> 3.1.1-1
  86. - updated lm-sensors to 3.1.1
  87. - added japanese summary, spec in utf-8
  88. - added %{_initdir}/lm_sensors to %%files
  89. - added %%post, %%preun, %%postun scripts
  90. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.10.7-1vl5
  91. - new upstream release
  92. - applied new versioning policy
  93. * Sun Nov 25 2007 Shu KONNO <owa@bg.wakwak.com> - 2.10.3-0vl2
  94. - fixed libdir in Makefile (for support lib64)
  95. * Thu May 29 2007 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.10.3-0vl1
  96. - Initial build.