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