]> git.pld-linux.org Git - packages/lm_sensors.git/blob - lm_sensors.spec
- -libs Conflicts base before split
[packages/lm_sensors.git] / lm_sensors.spec
1 # TODO
2 # - unpackaged:
3 #   /usr/sbin/fancontrol.pl (isn't that the same as sh fancontrol script?)
4 # - a big trigger warning how to use fancontrol and to init it first
5 #
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        Hardware health monitoring
8 Summary(pl):    Monitor stanu sprzêtu
9 Summary(pt_BR): Ferramentas para monitoração do hardware
10 Summary(ru):    õÔÉÌÉÔÙ ÄÌÑ ÍÏÎÉÔÏÒÉÎÇÁ ÁÐÐÁÒÁÔÕÒÙ
11 Summary(uk):    õÔÉ̦ÔÉ ÄÌÑ ÍÏΦÔÏÒÉÎÇÕ ÁÐÁÒÁÔÕÒÉ
12 Name:           lm_sensors
13 Version:        2.10.1
14 Release:        1
15 License:        GPL
16 Group:          Applications/System
17 Source0:        http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.gz
18 # Source0-md5:  cdc857b78e813b88cbf8be92441aa299
19 Source1:        sensors.init
20 Source2:        sensors.sysconfig
21 Source3:        fancontrol.init
22 Source4:        fancontrol.sysconfig
23 Patch0:         %{name}-make.patch
24 Patch1:         %{name}-ppc.patch
25 Patch2:         %{name}-iconv-in-libc.patch
26 Patch3:         %{name}-sensors-detect-PATH.patch
27 URL:            http://www.lm-sensors.nu/
28 BuildRequires:  bison
29 BuildRequires:  flex >= 2.5.1
30 BuildRequires:  perl-modules >= 5.6
31 BuildRequires:  rpm-perlprov >= 3.0.3-16
32 BuildRequires:  rpmbuild(macros) >= 1.268
33 BuildRequires:  rrdtool-devel >= 1.2.10
34 BuildRequires:  sysfsutils-devel
35 Requires:       %{name}-libs = %{version}-%{release}
36 Requires:       dev >= 2.9.0-13
37 Requires:       dmidecode
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Tools for monitoring the hardware health of Linux systems containing
42 hardware health monitoring hardware such as the LM78 and LM75.
43
44 %description -l pl
45 Narzêdzie do monitorowania sprzêtu w systemach linuksowych
46 wyposa¿onych w sprzêt monitoruj±cy, taki jak LM78 lub LM75.
47
48 %description -l pt_BR
49 Ferramentas para monitoração do hardware. Contém uma coleção de
50 módulos para acesso genérico ao barramento SMBus e monitoração de
51 hardware.
52
53 %description -l ru
54 ðÁËÅÔ lm_sensors ÓÏÄÅÒÖÉÔ ÎÁÂÏÒ ÍÏÄÕÌÅÊ ÄÌÑ ÓÔÁÎÄÁÒÔÎÏÇÏ ÄÏÓÔÕÐÁ Ë
55 SMBus É ÍÏÎÉÔÏÒÉÎÇÁ. ÷îéíáîéå: ÄÌÑ ÜÔÏÇÏ ÎÅÏÂÈÏÄÉÍÁ ÓÐÅÃÉÁÌØÎÁÑ
56 ÐÏÄÄÅÒÖËÁ, ÏÔÓÕÔÓÔ×ÕÀÝÁÑ × ÓÔÁÎÄÁÒÔÎÙÈ ÓÔÁÒÙÈ ÑÄÒÁÈ 2.2.XX!
57
58 %description -l uk
59 ðÁËÅÔ lm_sensors Í¦ÓÔÉÔØ ÎÁ¦ҠÍÏÄÕ̦נÄÌÑ ÓÔÁÎÄÁÒÔÎÏÇÏ ÄÏÓÔÕÐÕ ÄÏ
60 SMBus ÔÁ ÍÏΦÔÏÒÉÎÇÕ. õ÷áçá: ÄÌÑ ÃØÏÇÏ ÐÏÔÒ¦ÂÎÁ ÓÐÅæÁÌØÎÁ Ð¦ÄÔÒÉÍËÁ,
61 ÑËÁ ×¦ÄÓÕÔÎÑ Õ ÓÔÁÎÄÁÒÔÎÉÈ ÓÔÁÒÉÈ ÑÄÒÁÈ 2.2.XX!
62
63 %package libs
64 Summary:        lm_sensors library
65 Summary(pl):    Biblioteka lm_sensors
66 Group:          Libraries
67 Obsoletes:      liblm_sensors1
68 Conflicts:      lm_sensors <= 2.9.2-2
69
70 %description libs
71 lm_sensors library.
72
73 %description libs -l pl
74 Biblioteka lm_sensors.
75
76 %package devel
77 Summary:        Header files for lm_sensors
78 Summary(pl):    Pliki nag³ówkowe dla lm_sensors
79 Summary(pt_BR): Arquivos necessários ao desenvolvimento de programas que usem o lm_sensors
80 Summary(ru):    æÁÊÌÙ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ lm_sensors
81 Summary(uk):    æÁÊÌÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ lm_sensors
82 Group:          Development/Libraries
83 Requires:       %{name}-libs = %{version}-%{release}
84 Obsoletes:      liblm_sensors1-devel
85
86 %description devel
87 Header files for lm_sensors.
88
89 %description devel -l pl
90 Pliki nag³ówkowe dla lm_sensors.
91
92 %description devel -l pt_BR
93 Arquivos necessários ao desenvolvimento de programas que usem o
94 lm_sensors.
95
96 %description devel -l ru
97 ðÁËÅÔ lm_sensors-devel ×ËÌÀÞÁÅÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ
98 ÐÏÓÔÒÏÅÎÉÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÄÁÎÎÙÅ ÓÅÎÓÏÒÏ×.
99
100 %description devel -l uk
101 ðÁËÅÔ lm_sensors-devel Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ
102 ÐÏÂÕÄÏ×É ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÁΦ ÓÅÎÓÏÒ¦×.
103
104 %package static
105 Summary:        Static libraries for lm_sensors
106 Summary(pl):    Biblioteki statyczne dla lm_sensors
107 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com lm_sensors
108 Summary(ru):    óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ lm_sensors
109 Summary(uk):    óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ lm_sensors
110 Group:          Development/Libraries
111 Requires:       %{name}-devel = %{version}-%{release}
112
113 %description static
114 Static libraries for lm_sensors.
115
116 %description static -l pl
117 Biblioteki statyczne dla lm_sensors.
118
119 %description static -l pt_BR
120 Bibliotecas estáticas para desenvolvimento com lm_sensors
121
122 %description static -l ru
123 ðÁËÅÔ lm_sensors-static ×ËÌÀÞÁÅÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ
124 ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÄÁÎÎÙÅ ÓÅÎÓÏÒÏ×.
125
126 %description static -l uk
127 ðÁËÅÔ lm_sensors-static Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ
128 ÐÏÂÕÄÏ×É ÐÒÏÇÒÁÍ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÄÁΦ ÓÅÎÓÏÒ¦×.
129
130 %package sensord
131 Summary:        Sensord daemon
132 Summary(pl):    Demon sensord
133 Group:          Daemons
134 Requires(post,preun):   /sbin/chkconfig
135 Requires:       %{name} = %{version}-%{release}
136 Requires:       rc-scripts
137
138 %description sensord
139 Sensord daemon.
140
141 %description sensord -l pl
142 Demon sensord.
143
144 %package fancontrol
145 Summary:        Fancontrol daemon
146 Summary(pl):    Demon sterowania wiatraczkami
147 Group:          Daemons
148 Requires(post,preun):   /sbin/chkconfig
149 Requires:       %{name} = %{version}-%{release}
150 Requires:       %{name}-sensord = %{version}-%{release}
151 Requires:       rc-scripts
152
153 %description fancontrol
154 Fancontrol daemon monitors current temperature of the computer and
155 adjusts fans speed acordingly.
156
157 It is crucial to correctly configure this daemon (via running service
158 fancontrol init) and ensuring, that the temperature levels are set not
159 to burn the insides of the computer!
160
161 %description fancontrol -l pl
162 Demon fancontrol monitoruje obecn± temperaturê komputera i ustawia
163 odpowiednio prêdko¶æ wiatraków.
164
165 Kluczowym jest, aby poprawnie skonfigurowaæ tego demona (poprzez
166 uruchomienie service fancontrol init) oraz upewniæ siê, ¿e progi
167 temperatury s± ustawione poprawnie, by nie spaliæ wnêtrza komputera!
168
169 %prep
170 %setup -q
171 %patch0 -p1
172 %patch1 -p1
173 %patch2 -p1
174 %patch3 -p1
175
176 %build
177 %{__make} user \
178         CC="%{__cc}" \
179         OPTS="%{rpmcflags}" \
180         LIBDIR=%{_libdir} \
181         LINUX=/dev/null \
182         LINUX_HEADERS=%{_kernelsrcdir}/include \
183         I2C_HEADERS=/usr/include \
184         PROG_EXTRA:="sensord" \
185         SYSFS_SUPPORT:=1
186
187 %{__make} -C prog/eepromer \
188         CC="%{__cc}" \
189         CFLAGS="%{rpmcflags} -I../../kernel/include"
190
191 %install
192 rm -rf $RPM_BUILD_ROOT
193
194 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
195         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
196
197 %{__make} user_install \
198         DESTDIR=$RPM_BUILD_ROOT \
199         PREFIX=%{_prefix} \
200         ETCDIR=%{_sysconfdir} \
201         LIBDIR=%{_libdir} \
202         MANDIR=%{_mandir} \
203         PROG_EXTRA:="sensord" \
204         LINUX=/dev/null \
205         LINUX_HEADERS=%{_kernelsrcdir}/include \
206         I2C_HEADERS=/usr/include
207
208 install prog/eepromer/{eeprom,eepromer} $RPM_BUILD_ROOT%{_sbindir}
209
210 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sensors
211 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sensors
212 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fancontrol
213 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/fancontrol
214
215 # i2c API for userspace - included in glibc-kernel-headers
216 rm -f $RPM_BUILD_ROOT%{_includedir}/linux/i2c-dev.h
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %post   libs -p /sbin/ldconfig
222 %postun libs -p /sbin/ldconfig
223
224 %post sensord
225 if [ "$1" = 1 ]; then
226         echo "You have to configure sensors modules in /etc/sysconfig/sensors"
227 fi
228 /sbin/chkconfig --add sensors
229 %service sensors restart "sensors daemon"
230
231 %preun sensord
232 if [ "$1" = "0" ]; then
233         %service sensors stop
234         /sbin/chkconfig --del sensors
235 fi
236
237 %post fancontrol
238 if [ "$1" = 1 ]; then
239         echo "You have to configure fancontrol by running service fancontrol init first."
240 fi
241 /sbin/chkconfig --add fancontrol
242 %service fancontrol restart "fancontrol daemon"
243
244 %preun fancontrol
245 if [ "$1" = "0" ]; then
246         %service fancontrol stop
247         /sbin/chkconfig --del fancontrol
248 fi
249
250 %files
251 %defattr(644,root,root,755)
252 %doc BACKGROUND BUGS CHANGES README README.thinkpad TODO doc/{busses,chips}
253 %doc doc/{FAQ,donations,fan-divisors,progs,temperature-sensors,*html,vid}
254 %doc prog/{config,daemon,eepromer/README*,matorb,maxilife}
255 %attr(755,root,root) %{_bindir}/ddcmon
256 %attr(755,root,root) %{_bindir}/decode-*.pl
257 %attr(755,root,root) %{_bindir}/sensors
258 %attr(755,root,root) %{_sbindir}/eeprom*
259 %attr(755,root,root) %{_sbindir}/i2c*
260 %ifarch %{ix86} %{x8664}
261 %attr(755,root,root) %{_sbindir}/isadump
262 %attr(755,root,root) %{_sbindir}/isaset
263 %{_mandir}/man8/isadump.8*
264 %{_mandir}/man8/isaset.8*
265 %endif
266 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sensors.conf
267 %{_mandir}/man1/sensors.1*
268 %{_mandir}/man5/sensors.conf.5*
269 %{_mandir}/man8/i2c*.8*
270
271 %files libs
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/lib*.so.*.*
274
275 %files devel
276 %defattr(644,root,root,755)
277 %doc doc/{developers,kernel}
278 %attr(755,root,root) %{_libdir}/lib*.so
279 %{_includedir}/sensors
280 %{_includedir}/linux/sensors.h
281 %{_mandir}/man3/*
282
283 %files static
284 %defattr(644,root,root,755)
285 %{_libdir}/libsensors.a
286
287 %files sensord
288 %defattr(644,root,root,755)
289 %attr(754,root,root) %{_sbindir}/sensord
290 %attr(755,root,root) %{_sbindir}/sensors-detect
291 %attr(754,root,root) /etc/rc.d/init.d/sensors
292 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sensors
293 %{_mandir}/man8/sensors-detect.8*
294 %{_mandir}/man8/sensord.8*
295
296 %files fancontrol
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_sbindir}/fancontrol
299 %attr(755,root,root) %{_sbindir}/pwmconfig
300 %attr(754,root,root) /etc/rc.d/init.d/fancontrol
301 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fancontrol
302 %{_mandir}/man8/fancontrol.8*
303 %{_mandir}/man8/pwmconfig.8*
This page took 0.084995 seconds and 4 git commands to generate.