lm-sensors-vl.spec 3.2 KB

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