lm-sensors-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Summary: Hardware monitoring tools
  2. Summary(ja): ハードウェア監視ツール集
  3. Name: lm-sensors
  4. Version: 3.4.0
  5. Release: 1%{?_dist_release}
  6. Group: Applications/System
  7. License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain
  8. URL: http://www.lm-sensors.org/
  9. Source0: http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-%{version}.tar.bz2
  10. Source1: lm_sensors.sysconfig
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: bison
  13. BuildRequires: flex
  14. BuildRequires: gawk
  15. BuildRequires: kernel-headers >= 2.2.16
  16. %if "%{_dist_release}" >= "vl7"
  17. BuildRequires: libsysfs-devel
  18. %else
  19. BuildRequires: sysfsutils-devel
  20. %endif
  21. BuildRequires: rrdtool-devel
  22. Requires: perl
  23. Requires: initscripts
  24. Requires(post): /sbin/chkconfig
  25. Requires(preun): /sbin/chkconfig
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: shaolin, owa
  29. %description
  30. The lm-sensors package includes a collection of modules for general SMBus
  31. access and hardware monitoring.
  32. %package libs
  33. Summary: Lm_sensors core libraries
  34. Summary(ja): Lm_sensors コアライブラリ
  35. Group: System Environment/Libraries
  36. %description libs
  37. Core libraries for lm_sensors applications
  38. %package devel
  39. Summary: Development files for programs which will use lm_sensors
  40. Summary(ja): lm_sensors を使用するプログラムのための開発用ファイル
  41. Group: Development/Libraries
  42. Requires: %{name}-libs = %{version}-%{release}
  43. %description devel
  44. The %{name}-devel package includes a header files and libraries for use
  45. when building applications that make use of sensor data.
  46. %package sensord
  47. Summary: Daemon that periodically logs sensor readings
  48. Summary(ja): センサーの読み取り値を定期的に記録するデーモン
  49. Group: System Environment/Daemons
  50. Requires: %{name} = %{version}-%{release}
  51. %description sensord
  52. Daemon that periodically logs sensor readings to syslog or a round-robin
  53. database, and warns of sensor alarms.
  54. %prep
  55. %setup -q -n lm_sensors-%{version}
  56. %build
  57. export CFLAGS="%{optflags}"
  58. make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} EXLDFLAGS= user
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. make user_install \
  62. DESTDIR=$RPM_BUILD_ROOT \
  63. PREFIX=%{_prefix} \
  64. LIBDIR=%{_libdir} \
  65. ETCDIR=%{_sysconfdir} \
  66. MANDIR=%{_mandir}
  67. ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz
  68. # add initscript from proc/init
  69. mkdir -p $RPM_BUILD_ROOT%{_initdir}
  70. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sensors.d
  71. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
  72. install -m755 prog/init/lm_sensors.init $RPM_BUILD_ROOT%{_initdir}/lm_sensors
  73. install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lm_sensors
  74. # remove unuse files
  75. rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT
  78. %post
  79. if [ "$1" = 1 ] ; then
  80. /sbin/chkconfig --add lm_sensors
  81. fi
  82. %{_initdir}/lm_sensors condrestart
  83. %preun
  84. if [ "$1" = 0 ] ; then
  85. %{_initdir}/lm_sensors stop > /dev/null 2>&1
  86. /sbin/chkconfig --del lm_sensors
  87. fi
  88. %post libs -p /sbin/ldconfig
  89. %postun libs -p /sbin/ldconfig
  90. %files
  91. %defattr(-,root,root,-)
  92. %doc CHANGES CONTRIBUTORS COPYING INSTALL README doc
  93. %dir %{_sysconfdir}/sensors.d
  94. %config(noreplace) %{_sysconfdir}/sensors3.conf
  95. %config(noreplace) %{_sysconfdir}/sysconfig/lm_sensors
  96. %config %{_initdir}/lm_sensors
  97. %{_bindir}/sensors
  98. %{_bindir}/sensors-conf-convert
  99. %{_sbindir}/fancontrol
  100. %ifarch %{ix86} x86_64
  101. %{_sbindir}/isadump
  102. %{_sbindir}/isaset
  103. %endif
  104. %{_sbindir}/pwmconfig
  105. %{_sbindir}/sensors-detect
  106. %{_mandir}/man1/*
  107. %{_mandir}/man5/*
  108. %{_mandir}/man8/*
  109. %files libs
  110. %{_libdir}/lib*.so.*
  111. %files devel
  112. %{_includedir}/sensors
  113. %{_libdir}/lib*.so
  114. %{_mandir}/man3/*
  115. %changelog
  116. * Sat Nov 7 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 3.4.0-1
  117. - update to 3.4.0
  118. * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.3.5-1
  119. - updated to 3.3.5
  120. - built on current VineSeed
  121. - split libraries to libs subpackage
  122. * Tue Apr 12 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.0-1
  123. - new upstrem release 3.3.0
  124. * Tue Dec 14 2010 Shu KONNO <owa@bg.wakwak.com> 3.2.0-1
  125. - updated lm-sensors to 3.2.0
  126. - added RQ: initscripts
  127. * Tue Mar 16 2010 Shu KONNO <owa@bg.wakwak.com> 3.1.2-1
  128. - updated lm-sensors to 3.1.2
  129. * Tue Oct 20 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.1.1-2
  130. - isadump/isaset only available on ix86/x86_64 archs
  131. * Mon Aug 31 2009 Shu KONNO <owa@bg.wakwak.com> 3.1.1-1
  132. - updated lm-sensors to 3.1.1
  133. - added japanese summary, spec in utf-8
  134. - added %{_initdir}/lm_sensors to %%files
  135. - added %%post, %%preun, %%postun scripts
  136. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.10.7-1vl5
  137. - new upstream release
  138. - applied new versioning policy
  139. * Sun Nov 25 2007 Shu KONNO <owa@bg.wakwak.com> - 2.10.3-0vl2
  140. - fixed libdir in Makefile (for support lib64)
  141. * Thu May 29 2007 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.10.3-0vl1
  142. - Initial build.