1 %define _kernel_ver %(grep UTS_RELEASE %{_kernelsrcdir}/include/linux/version.h 2>/dev/null | cut -d'"' -f2)
2 %define _kernel_ver_str %(echo %{_kernel_ver} | sed s/-/_/g)
3 %define smpstr %{?_with_smp:-smp}
4 %define smp %{?_with_smp:1}%{!?_with_smp:0}
6 Summary: Hardware health monitoring
7 Summary(pl): Monitor stanu sprzêtu
12 Group: Applications/System
13 Group(de): Applikationen/System
14 Group(pl): Aplikacje/System
15 Source0: http://www.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz
16 Patch0: %{name}-make.patch
17 URL: http://www.netroedge.com/~lm78/
18 BuildRequires: flex >= 2.5.1
19 BuildRequires: i2c-devel >= 2.6.0
20 Requires: %{name}-modules = %{version}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Tools for monitoring the hardware health of Linux systems containing
25 hardware health monitoring hardware such as the LM78 and LM75.
28 Narzêdzie do monitorowania sprzêtu w systemach Linuxowych wyposa¿onych
29 w sprzêt monitoruj±cy, taki jak LM78 lub LM75.
32 Summary: Header files for lm_sensors
33 Summary(pl): Pliki nag³ówkowe dla lm_sensors
34 Group: Development/Libraries
35 Group(de): Entwicklung/Libraries
36 Group(es): Desarrollo/Bibliotecas
37 Group(fr): Development/Librairies
38 Group(pl): Programowanie/Biblioteki
39 Group(pt_BR): Desenvolvimento/Bibliotecas
40 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
41 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
42 Requires: %{name} = %{version}
45 Header files for lm_sensors.
47 %description devel -l pl
48 Pliki nag³ówkowe dla lm_sensors.
51 Summary: Static libraries for lm_sensors
52 Summary(pl): Biblioteki statyczne dla lm_sensors
53 Group: Development/Libraries
54 Group(de): Entwicklung/Libraries
55 Group(es): Desarrollo/Bibliotecas
56 Group(fr): Development/Librairies
57 Group(pl): Programowanie/Biblioteki
58 Group(pt_BR): Desenvolvimento/Bibliotecas
59 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
60 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
61 Requires: %{name}-devel = %{version}
64 Static libraries for lm_sensors.
66 %description static -l pl
67 Biblioteki statyczne dla lm_sensors.
69 %package -n kernel%{smpstr}-misc-lm_sensors
70 Summary: Kernel modules for various buses and monitor chips
71 Summary(pl): Modu³y j±dra dla ró¿nego rodzaju sensorów
72 Group: Applications/System
73 Group(de): Applikationen/System
74 Group(pl): Aplikacje/System
75 Release: %{release}@%{_kernel_ver_str}
77 Requires: i2c >= 2.6.0
78 Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}
79 Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}
80 Obsoletes: lm_sensors-modules
82 %description -n kernel%{smpstr}-misc-lm_sensors
83 Kernel modules for various buses and monitor chips.
85 %description -n kernel%{smpstr}-misc-lm_sensors -l pl
86 Modu³y j±dra dla ró¿nego rodzaju sensorów monitoruj±cych.
94 SMP="-D__KERNEL_SMP=1"
97 OPTS="%{rpmcflags} $SMP" \
99 LINUX_HEADERS=%{_kernelsrcdir}/include \
100 I2C_HEADERS=%{_kernelsrcdir}/include \
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT \
109 ETCDIR=%{_sysconfdir} \
111 MODDIR=/lib/modules/%{_kernel_ver}/misc
113 gzip -9nf BACKGROUND BUGS CHANGES README README.thinkpad TODO
114 find doc -type f ! -name \*.\* -a ! -name \*ticket | xargs gzip -9nf
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
119 %post -n kernel%{smpstr}-misc-lm_sensors
122 %postun -n kernel%{smpstr}-misc-lm_sensors
126 rm -rf $RPM_BUILD_ROOT
129 %defattr(644,root,root,755)
131 %doc doc/*.gz doc/*.html doc/busses doc/chips
132 %attr(755,root,root) %{_bindir}/sensors
133 %attr(755,root,root) %{_sbindir}/sensors-detect
134 %attr(755,root,root) %{_libdir}/lib*.so.*.*
135 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sensors.conf
140 %defattr(644,root,root,755)
141 %doc doc/developers doc/kernel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/lib*.so
144 %{_includedir}/sensors
145 %{_includedir}/linux/*
149 %defattr(644,root,root,755)
150 %{_libdir}/libsensors.a
152 %files -n kernel%{smpstr}-misc-lm_sensors
153 %defattr(644,root,root,755)
154 /lib/modules/*/misc/*