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 URL: http://www.netroedge.com/~lm78/
17 BuildRequires: flex >= 2.5.1
18 BuildRequires: i2c-devel >= 2.6.0
19 Requires: %{name}-modules = %{version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Tools for monitoring the hardware health of Linux systems containing
24 hardware health monitoring hardware such as the LM78 and LM75.
27 Narzêdzie do monitorowania sprzêtu w systemach Linuxowych wyposa¿onych
28 w sprzêt monitoruj±cy, taki jak LM78 and LM75.
31 Summary: Header files for lm_sensors
32 Summary(pl): Pliki nag³ówkowe dla lm_sensors
33 Group: Development/Libraries
34 Group(de): Entwicklung/Libraries
35 Group(es): Desarrollo/Bibliotecas
36 Group(fr): Development/Librairies
37 Group(pl): Programowanie/Biblioteki
38 Group(pt_BR): Desenvolvimento/Bibliotecas
39 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
40 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
41 Requires: %{name} = %{version}
44 Header files for lm_sensors.
46 %description devel -l pl
47 Pliki nag³ówkowe dla lm_sensors.
50 Summary: Static libraries for lm_sensors
51 Summary(pl): Biblioteki statyczne dla lm_sensors
52 Group: Development/Libraries
53 Group(de): Entwicklung/Libraries
54 Group(es): Desarrollo/Bibliotecas
55 Group(fr): Development/Librairies
56 Group(pl): Programowanie/Biblioteki
57 Group(pt_BR): Desenvolvimento/Bibliotecas
58 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
59 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
60 Requires: %{name}-devel = %{version}
63 Static libraries for lm_sensors.
65 %description static -l pl
66 Biblioteki statyczne dla lm_sensors.
69 Summary: Kernel modules for various buses and monitor chips
70 Summary(pl): Modu³y j±dra dla ró¿nego rodzaju sensorów
71 Group: Applications/System
72 Group(de): Applikationen/System
73 Group(pl): Aplikacje/System
74 Release: %{release}@%{_kernel_ver}%{smpstr}
76 Requires: i2c >= 2.6.0
77 Conflicts: kernel < %{_kernel_ver}, kernel > %{_kernel_ver}
78 Conflicts: kernel-%{?_with_smp:up}%{!?_with_smp:smp}
81 Kernel modules for various buses and monitor chips.
84 Modu³y j±dra dla ró¿nego rodzaju sensorów monitoruj±cych.
92 SMP="-D__KERNEL_SMP=1"
95 OPTS="%{rpmcflags} $SMP" \
97 LINUX_HEADERS=%{_kernelsrcdir}/include \
98 I2C_HEADERS=%{_kernelsrcdir}/include \
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT \
107 ETCDIR=%{_sysconfdir} \
109 MODDIR=/lib/modules/%{_kernel_ver}/misc
111 gzip -9nf BACKGROUND BUGS CHANGES README README.thinkpad TODO
112 find doc -type f ! -name \*.\* -a ! -name \*ticket | xargs gzip -9nf
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
129 %doc doc/*.gz doc/*.html doc/busses doc/chips
130 %attr(755,root,root) %{_bindir}/sensors
131 %attr(755,root,root) %{_sbindir}/sensors-detect
132 %attr(755,root,root) %{_libdir}/lib*.so.*.*
133 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sensors.conf
138 %defattr(644,root,root,755)
139 %doc doc/developers doc/kernel
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/lib*.so
142 %{_includedir}/sensors
143 %{_includedir}/linux/*
147 %defattr(644,root,root,755)
148 %{_libdir}/libsensors.a
151 %defattr(644,root,root,755)
152 /lib/modules/*/misc/*