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