1 %define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
2 %define smpstr %{?_with_smp:smp}%{!?_with_smp:up}
3 %define smp %{?_with_smp:1}%{!?_with_smp:0}
5 Summary: Hardware health monitoring
6 Summary(pl): Monitor stanu sprzêtu
11 Group: Applications/System
12 Group(de): Applikationen/System
13 Group(pl): Aplikacje/System
14 Source0: http://www.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz
15 Patch0: %{name}-make.patch
16 BuildRequires: flex >= 2.5.1
17 BuildRequires: i2c-devel >= 2.6.0
18 Requires: %{name}-modules = %{version}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Tools for monitoring the hardware health of Linux systems containing
23 hardware health monitoring hardware such as the LM78 and LM75.
26 Narzêdzie do monitorowania sprzêtu w systemach Linuxowych wyposa¿onych
27 w sprzêt monitoruj±cy, taki jak LM78 and LM75.
30 Summary: Header files for lm_sensors
31 Summary(pl): Pliki nag³ówkowe dla lm_sensors
32 Group: Development/Libraries
33 Group(de): Entwicklung/Libraries
34 Group(es): Desarrollo/Bibliotecas
35 Group(fr): Development/Librairies
36 Group(pl): Programowanie/Biblioteki
37 Group(pt_BR): Desenvolvimento/Bibliotecas
38 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
39 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
40 Requires: %{name} = %{version}
43 Header files for lm_sensors.
45 %description devel -l pl
46 Pliki nag³ówkowe dla lm_sensors.
49 Summary: Static libraries for lm_sensors
50 Summary(pl): Biblioteki statyczne dla lm_sensors
51 Group: Development/Libraries
52 Group(de): Entwicklung/Libraries
53 Group(es): Desarrollo/Bibliotecas
54 Group(fr): Development/Librairies
55 Group(pl): Programowanie/Biblioteki
56 Group(pt_BR): Desenvolvimento/Bibliotecas
57 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
58 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
59 Requires: %{name}-devel = %{version}
62 Static libraries for lm_sensors.
64 %description static -l pl
65 Biblioteki statyczne dla lm_sensors.
68 Summary: Kernel modules for various buses and monitor chips
69 Summary(pl): Modu³y j±dra dla ró¿nego rodzaju sensorów
70 Group: Applications/System
71 Group(de): Applikationen/System
72 Group(pl): Aplikacje/System
73 Release: %{release}@%{_kernel_ver}%{smpstr}
75 Requires: i2c >= 2.6.0
76 Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}
77 Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}
80 Kernel modules for various buses and monitor chips.
83 Modu³y j±dra dla ró¿nego rodzaju sensorów monitoruj±cych.
91 SMP="-D__KERNEL_SMP=1"
94 OPTS="%{rpmcflags} $SMP" \
96 LINUX_HEADERS=%{_kernelsrcdir}/include \
97 I2C_HEADERS=%{_kernelsrcdir}/include \
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT \
106 ETCDIR=%{_sysconfdir} \
108 MODDIR=/lib/modules/%{_kernel_ver}/misc
110 gzip -9nf BACKGROUND BUGS CHANGES README README.thinkpad TODO
111 find doc -type f ! -name \*.\* -a ! -name \*ticket | xargs gzip -9nf
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
123 rm -rf $RPM_BUILD_ROOT
126 %defattr(644,root,root,755)
128 %doc doc/*.gz doc/*.html doc/busses doc/chips
129 %attr(755,root,root) %{_bindir}/sensors
130 %attr(755,root,root) %{_sbindir}/sensors-detect
131 %attr(755,root,root) %{_libdir}/lib*.so.*.*
132 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sensors.conf
137 %defattr(644,root,root,755)
138 %doc doc/developers doc/kernel
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %{_includedir}/sensors
142 %{_includedir}/linux/*
146 %defattr(644,root,root,755)
147 %{_libdir}/libsensors.a
150 %defattr(644,root,root,755)
151 /lib/modules/*/misc/*