lm-sensors-vl.spec 4.6 KB

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