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