]> git.pld-linux.org Git - packages/lm_sensors.git/blob - lm_sensors.spec
- updated to 2.5.2
[packages/lm_sensors.git] / lm_sensors.spec
1 Summary:        Hardware health monitoring
2 Summary(pl):    Monitor stanu sprzêtu
3 Name:           lm_sensors
4 Version:        2.5.2
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        http://www.netroedge.com/~lm78/archive/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-make.patch
12 Patch1:         %{name}-user_ret.patch
13 Prereq:         /sbin/depmod
14 Requires:       %{name}-modules = %{version}
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Tools for monitoring the hardware health of Linux systems containing
19 hardware health monitoring hardware such as the LM78 and LM75.
20
21 %description -l pl
22 Narzêdzie do monitorowania sprzêtu w systemach Linuxowych wyposa¿onych
23 w sprzêt monitoruj±cy, taki jak LM78 and LM75.
24
25 %package devel
26 Summary:        Header files for lm_sensors
27 Summary(pl):    Pliki nag³ówkowe dla lm_sensors
28 Group:          Development/Libraries
29 Group(de):      Entwicklung/Libraries
30 Group(fr):      Development/Librairies
31 Group(pl):      Programowanie/Biblioteki
32 Requires:       %{name} = %{version}
33
34 %description devel
35 Header files for lm_sensors.
36
37 %description devel -l pl
38 Pliki nag³ówkowe dla lm_sensors.
39
40 %package static
41 Summary:        Static libraries for lm_sensors
42 Summary(pl):    Biblioteki statyczne dla lm_sensors
43 Group:          Development/Libraries
44 Group(de):      Entwicklung/Libraries
45 Group(fr):      Development/Librairies
46 Group(pl):      Programowanie/Biblioteki
47 Requires:       %{name}-devel = %{version}
48
49 %description static
50 Statis libraries for lm_sensors.
51
52 %description static -l pl
53 Biblioteki statyczne dla lm_sensors.
54
55 %package modules
56 Summary:        Kernel modules for various buses and monitor chips
57 Summary(pl):    Modu³y j±dra dla ró¿nego rodzaju sensorów
58 Group:          Applications/System
59 Group(de):      Applikationen/System
60 Group(pl):      Aplikacje/System
61
62 %description modules
63 Kernel modules for various buses and monitor chips.
64
65 %description -l pl
66 Modu³y j±dra dla ró¿nego rodzaju sensorów monitoruj±cych.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 %build
74 %{__make} OPTS="$RPM_OPT_FLAGS" 
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 REL=`grep UTS_RELEASE %{_prefix}/src/linux/include/linux/version.h 2>/dev/null | cut -d\" -f2`
80
81 make    install \
82         DESTDIR=$RPM_BUILD_ROOT \
83         PREFIX=%{_prefix} \
84         ETCDIR=%{_sysconfdir} \
85         MANDIR=%{_mandir} \
86         MODDIR=/lib/modules/$REL/misc
87
88 strip $RPM_BUILD_ROOT%{_bindir}/*
89 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
90
91 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[135]/* \
92         CHANGES README* BUGS CONTRIBUTORS TODO BACKGROUND
93 gzip -9nf doc/* || :
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %post modules
99 /sbin/depmod -a
100
101 %postun modules
102 /sbin/depmod -a
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %files 
108 %defattr(644,root,root,755)
109 %doc {CHANGES,README*,BUGS,CONTRIBUTORS,TODO,BACKGROUND}.gz 
110 %doc doc/*.gz doc/busses doc/chips
111 %attr(755,root,root) %{_bindir}/sensors
112 %attr(755,root,root) %{_sbindir}/sensors-detect
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114 %config %{_sysconfdir}/sensors.conf
115 %{_mandir}/man1/*
116 %{_mandir}/man5/*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %doc doc/developers doc/kernel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/lib*.so
123 %{_includedir}/sensors
124 %{_includedir}/linux/*
125 %{_mandir}/man3/*
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libsensors.a
130
131 %files modules
132 %defattr(644,root,root,755)
133 /lib/modules/*/misc/*
This page took 0.036918 seconds and 4 git commands to generate.