3 # /usr/sbin/fancontrol.pl (isn't that the same as sh fancontrol script?)
4 # - add fancontrol(d) subpackage
5 # - update and use fancontrol.init
6 # - a big trigger warning how to use fancontrol and to init it first
8 %include /usr/lib/rpm/macros.perl
9 Summary: Hardware health monitoring
10 Summary(pl): Monitor stanu sprzêtu
11 Summary(pt_BR): Ferramentas para monitoração do hardware
12 Summary(ru): õÔÉÌÉÔÙ ÄÌÑ ÍÏÎÉÔÏÒÉÎÇÁ ÁÐÐÁÒÁÔÕÒÙ
13 Summary(uk): õÔÉ̦ÔÉ ÄÌÑ ÍÏΦÔÏÒÉÎÇÕ ÁÐÁÒÁÔÕÒÉ
18 Group: Applications/System
19 Source0: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.gz
20 # Source0-md5: cdc857b78e813b88cbf8be92441aa299
22 Source2: sensors.sysconfig
23 Source3: fancontrol.init
24 Patch0: %{name}-make.patch
25 Patch1: %{name}-ppc.patch
26 Patch2: %{name}-iconv-in-libc.patch
27 Patch3: %{name}-sensors-detect-PATH.patch
28 URL: http://www.lm-sensors.nu/
30 BuildRequires: flex >= 2.5.1
31 BuildRequires: perl-modules >= 5.6
32 BuildRequires: rpm-perlprov >= 3.0.3-16
33 BuildRequires: rpmbuild(macros) >= 1.268
34 BuildRequires: rrdtool-devel >= 1.2.10
35 BuildRequires: sysfsutils-devel
36 Requires: dev >= 2.9.0-13
38 Obsoletes: liblm_sensors1
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Tools for monitoring the hardware health of Linux systems containing
43 hardware health monitoring hardware such as the LM78 and LM75.
46 Narzêdzie do monitorowania sprzêtu w systemach linuksowych
47 wyposa¿onych w sprzêt monitoruj±cy, taki jak LM78 lub LM75.
50 Ferramentas para monitoração do hardware. Contém uma coleção de
51 módulos para acesso genérico ao barramento SMBus e monitoração de
55 ðÁËÅÔ lm_sensors ÓÏÄÅÒÖÉÔ ÎÁÂÏÒ ÍÏÄÕÌÅÊ ÄÌÑ ÓÔÁÎÄÁÒÔÎÏÇÏ ÄÏÓÔÕÐÁ Ë
56 SMBus É ÍÏÎÉÔÏÒÉÎÇÁ. ÷îéíáîéå: ÄÌÑ ÜÔÏÇÏ ÎÅÏÂÈÏÄÉÍÁ ÓÐÅÃÉÁÌØÎÁÑ
57 ÐÏÄÄÅÒÖËÁ, ÏÔÓÕÔÓÔ×ÕÀÝÁÑ × ÓÔÁÎÄÁÒÔÎÙÈ ÓÔÁÒÙÈ ÑÄÒÁÈ 2.2.XX!
60 ðÁËÅÔ lm_sensors ͦÓÔÉÔØ ÎÁÂ¦Ò ÍÏÄÕÌ¦× ÄÌÑ ÓÔÁÎÄÁÒÔÎÏÇÏ ÄÏÓÔÕÐÕ ÄÏ
61 SMBus ÔÁ ÍÏΦÔÏÒÉÎÇÕ. õ÷áçá: ÄÌÑ ÃØÏÇÏ ÐÏÔÒ¦ÂÎÁ ÓÐÅæÁÌØÎÁ ЦÄÔÒÉÍËÁ,
62 ÑËÁ צÄÓÕÔÎÑ Õ ÓÔÁÎÄÁÒÔÎÉÈ ÓÔÁÒÉÈ ÑÄÒÁÈ 2.2.XX!
65 Summary: lm_sensors library
66 Summary(pl): Biblioteka lm_sensors
72 %description libs -l pl
73 Biblioteka lm_sensors.
76 Summary: Header files for lm_sensors
77 Summary(pl): Pliki nag³ówkowe dla lm_sensors
78 Summary(pt_BR): Arquivos necessários ao desenvolvimento de programas que usem o lm_sensors
79 Summary(ru): æÁÊÌÙ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ lm_sensors
80 Summary(uk): æÁÊÌÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ lm_sensors
81 Group: Development/Libraries
82 Requires: %{name}-libs = %{version}-%{release}
83 Obsoletes: liblm_sensors1-devel
86 Header files for lm_sensors.
88 %description devel -l pl
89 Pliki nag³ówkowe dla lm_sensors.
91 %description devel -l pt_BR
92 Arquivos necessários ao desenvolvimento de programas que usem o
95 %description devel -l ru
96 ðÁËÅÔ lm_sensors-devel ×ËÌÀÞÁÅÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ
97 ÐÏÓÔÒÏÅÎÉÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÄÁÎÎÙÅ ÓÅÎÓÏÒÏ×.
99 %description devel -l uk
100 ðÁËÅÔ lm_sensors-devel ͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ
101 ÐÏÂÕÄÏ×É ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÁΦ ÓÅÎÓÏÒ¦×.
104 Summary: Static libraries for lm_sensors
105 Summary(pl): Biblioteki statyczne dla lm_sensors
106 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com lm_sensors
107 Summary(ru): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ lm_sensors
108 Summary(uk): óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ lm_sensors
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
113 Static libraries for lm_sensors.
115 %description static -l pl
116 Biblioteki statyczne dla lm_sensors.
118 %description static -l pt_BR
119 Bibliotecas estáticas para desenvolvimento com lm_sensors
121 %description static -l ru
122 ðÁËÅÔ lm_sensors-static ×ËÌÀÞÁÅÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ
123 ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÄÁÎÎÙÅ ÓÅÎÓÏÒÏ×.
125 %description static -l uk
126 ðÁËÅÔ lm_sensors-static ͦÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ
127 ÐÏÂÕÄÏ×É ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÁΦ ÓÅÎÓÏÒ¦×.
130 Summary: Sensord daemon
131 Summary(pl): Demon sensord
133 Requires(post,preun): /sbin/chkconfig
134 Requires: %{name} = %{version}-%{release}
140 %description sensord -l pl
153 OPTS="%{rpmcflags}" \
156 LINUX_HEADERS=%{_kernelsrcdir}/include \
157 I2C_HEADERS=/usr/include \
158 PROG_EXTRA:="sensord" \
161 %{__make} -C prog/eepromer \
163 CFLAGS="%{rpmcflags} -I../../kernel/include"
166 %{__sed} -i -e "s@/etc/fancontrol@/etc/sysconfig/fancontrol@g" prog/pwm/fancontrol
167 %{__sed} -i -e "s@/etc/fancontrol@/etc/sysconfig/fancontrol@g" prog/pwm/pwmconfig
170 rm -rf $RPM_BUILD_ROOT
172 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
173 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
175 %{__make} user_install \
176 DESTDIR=$RPM_BUILD_ROOT \
178 ETCDIR=%{_sysconfdir} \
181 PROG_EXTRA:="sensord" \
183 LINUX_HEADERS=%{_kernelsrcdir}/include \
184 I2C_HEADERS=/usr/include
186 install prog/eepromer/{eeprom,eepromer} $RPM_BUILD_ROOT%{_sbindir}
188 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sensors
189 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sensors
191 # i2c API for userspace - included in glibc-kernel-headers
192 rm -f $RPM_BUILD_ROOT%{_includedir}/linux/i2c-dev.h
195 rm -rf $RPM_BUILD_ROOT
197 %post libs -p /sbin/ldconfig
198 %postun libs -p /sbin/ldconfig
201 if [ "$1" = 1 ]; then
202 echo "You have to configure sensors modules in /etc/sysconfig/sensors"
204 /sbin/chkconfig --add sensors
205 %service sensors restart "sensors daemon"
208 if [ "$1" = "0" ]; then
209 %service sensors stop
210 /sbin/chkconfig --del sensors
214 %defattr(644,root,root,755)
215 %doc BACKGROUND BUGS CHANGES README README.thinkpad TODO doc/{busses,chips}
216 %doc doc/{FAQ,donations,fan-divisors,progs,temperature-sensors,*html,vid}
217 %doc prog/{config,daemon,eepromer/README*,matorb,maxilife}
218 %attr(755,root,root) %{_bindir}/ddcmon
219 %attr(755,root,root) %{_bindir}/decode-*.pl
220 %attr(755,root,root) %{_bindir}/sensors
221 %attr(755,root,root) %{_sbindir}/sensors-detect
222 %attr(755,root,root) %{_sbindir}/eeprom*
223 %attr(755,root,root) %{_sbindir}/fancontrol
224 %attr(755,root,root) %{_sbindir}/i2c*
225 %ifarch %{ix86} %{x8664}
226 %attr(755,root,root) %{_sbindir}/isadump
227 %attr(755,root,root) %{_sbindir}/isaset
228 %{_mandir}/man8/isadump.8*
229 %{_mandir}/man8/isaset.8*
231 %attr(755,root,root) %{_sbindir}/pwmconfig
232 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sensors.conf
233 %{_mandir}/man1/sensors.1*
234 %{_mandir}/man5/sensors.conf.5*
235 %{_mandir}/man8/fancontrol.8*
236 %{_mandir}/man8/i2c*.8*
237 %{_mandir}/man8/pwmconfig.8*
238 %{_mandir}/man8/sensors-detect.8*
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/lib*.so.*.*
245 %defattr(644,root,root,755)
246 %doc doc/{developers,kernel}
247 %attr(755,root,root) %{_libdir}/lib*.so
248 %{_includedir}/sensors
249 %{_includedir}/linux/sensors.h
253 %defattr(644,root,root,755)
254 %{_libdir}/libsensors.a
257 %defattr(644,root,root,755)
258 %attr(754,root,root) %{_sbindir}/sensord
259 %attr(754,root,root) /etc/rc.d/init.d/sensors
260 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sensors
261 %{_mandir}/man8/sensord.8*