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