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
81 Provides: lm_sensors-modules = %{version}
83 %description -n kernel%{smpstr}-misc-lm_sensors
84 Kernel modules for various buses and monitor chips.
86 %description -n kernel%{smpstr}-misc-lm_sensors -l pl
87 Modu³y j±dra dla ró¿nego rodzaju sensorów monitoruj±cych.
95 SMP="-D__KERNEL_SMP=1"
98 OPTS="%{rpmcflags} $SMP" \
100 LINUX_HEADERS=%{_kernelsrcdir}/include \
101 I2C_HEADERS=%{_kernelsrcdir}/include \
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT \
110 ETCDIR=%{_sysconfdir} \
112 MODDIR=/lib/modules/%{_kernel_ver}/misc
114 gzip -9nf BACKGROUND BUGS CHANGES README README.thinkpad TODO
115 find doc -type f ! -name \*.\* -a ! -name \*ticket | xargs gzip -9nf
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
123 %post -n kernel%{smpstr}-misc-lm_sensors
126 %postun -n kernel%{smpstr}-misc-lm_sensors
130 %defattr(644,root,root,755)
132 %doc doc/*.gz doc/*.html doc/busses doc/chips
133 %attr(755,root,root) %{_bindir}/sensors
134 %attr(755,root,root) %{_sbindir}/sensors-detect
135 %attr(755,root,root) %{_libdir}/lib*.so.*.*
136 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sensors.conf
141 %defattr(644,root,root,755)
142 %doc doc/developers doc/kernel
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/lib*.so
145 %{_includedir}/sensors
146 %{_includedir}/linux/*
150 %defattr(644,root,root,755)
151 %{_libdir}/libsensors.a
153 %files -n kernel%{smpstr}-misc-lm_sensors
154 %defattr(644,root,root,755)
155 /lib/modules/*/misc/*