]>
Commit | Line | Data |
---|---|---|
06565cea JB |
1 | # TODO: PLDify init scripts |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with gnome1 # Hoover GUI client (GTK+ 1.x + GNOME 1.x ZVT based) | |
5 | %bcond_without gtk1 # FLIM and Hoover GUI clients (GTK+ 1.x based) | |
6 | # | |
7 | %if %{without gtk1} | |
8 | %undefine with_gnome1 | |
9 | %endif | |
10 | Summary: System for monitoring and management of a cluster of nodes | |
11 | Summary(pl.UTF-8): System do monitorowania i zarządzania klastrem węzłów | |
12 | Name: vacm | |
13 | Version: 2.0.5a | |
be907bf6 | 14 | Release: 9 |
06565cea JB |
15 | License: LGPL v2.1+ (library), GPL v2+ (the rest) |
16 | Group: Applications/System | |
17 | Source0: http://downloads.sourceforge.net/vacm/%{name}-%{version}.tar.gz | |
18 | # Source0-md5: 8c68f51bded2a6c268e899013d6420f3 | |
19 | Patch0: %{name}-build.patch | |
20 | Patch1: %{name}-sh.patch | |
c1074077 | 21 | Patch2: %{name}-link.patch |
21f51ab3 | 22 | Patch3: dvips.patch |
ea21342d | 23 | Patch4: openssl.patch |
0c8e9389 | 24 | Patch5: %{name}-gettext.patch |
6576dab1 | 25 | Patch6: glibc.patch |
06565cea JB |
26 | URL: http://vacm.sourceforge.net/ |
27 | BuildRequires: autoconf | |
28 | BuildRequires: automake | |
160e7740 | 29 | BuildRequires: docbook-dtd31-sgml |
06565cea | 30 | BuildRequires: docbook-utils |
ecb4cbef | 31 | BuildRequires: gettext-tools |
06565cea JB |
32 | %{?with_gtk1:BuildRequires: gtk+-devel >= 1.2.6} |
33 | # libzvt component | |
34 | %{?with_gnome1:BuildRequires: gnome-libs-devel} | |
35 | %{?with_gnome1:BuildRequires: imlib-devel} | |
36 | BuildRequires: libstdc++-devel | |
c1074077 | 37 | BuildRequires: libtool |
06565cea JB |
38 | BuildRequires: ncurses-devel |
39 | BuildRequires: openjade | |
40 | BuildRequires: openssl-devel | |
41 | BuildRequires: pam-devel | |
42 | BuildRequires: readline-devel | |
43 | BuildRequires: texlive-dvips | |
6576dab1 | 44 | BuildRequires: texlive-jadetex |
21f51ab3 JR |
45 | BuildRequires: texlive-latex-marvosym |
46 | BuildRequires: texlive-latex-ams | |
549a7591 | 47 | BuildRequires: texlive-latex-extend |
06565cea JB |
48 | Requires: %{name}-libs = %{version}-%{release} |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
50 | ||
51 | %description | |
52 | VACM (Pronounced VaKuum) is a client/server system allowing monitoring | |
53 | and management of a cluster of nodes equipped with Intel(TM)'s | |
54 | Intelligent Platform Management Interface (IPMI). Management | |
55 | capabilities include device power control, nvram system event log | |
56 | download, hardware reset, and remote BIOS console. Monitoring | |
57 | capabilities include power system monitoring, chassis intrusion | |
58 | monitoring, fan status monitoring, and O/S watchdog monitoring. Since | |
59 | the IPMI is implemented in hardware running on separate | |
60 | microcontrollers, monitoring a node does *not* impact on the monitored | |
61 | node's performance. Furthermore, VACM allows monitoring and management | |
62 | of a node from a remote station (via TCP/IP). | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | VACM (wymawiane jak VaKuum) to system klient-serwer umożliwiający | |
66 | monitorowanie i zarządzanie klastrem węzłów wyposażonych w interfejs | |
67 | Intel(TM) IPMI (Intelligent Platform Management Interface). Możliwości | |
68 | zarządzania obejmują sterowanie zasilaniem urządzenia, pobieranie logu | |
69 | systemowego z pamięci nvram, sprzętowy reset oraz zdalną konsolę | |
70 | BIOS-u. Możliwości monitorowania obejmują monitorowanie zasilania | |
71 | systemu, monitorowanie otwarcia obudowy, monitorowanie stanu | |
72 | wentylatorów oraz monitorowanie watchdoga systemu operacyjnego. Jako | |
73 | że IMPI jest zaimplementowane w sprzęcie działającym na osobnych | |
74 | mikrokontrolerach, monitorowanie węzła nie ma wpływu na wydajność | |
75 | monitorowanego węzła. Co więcej, VACM pozwala na monitorowanie i | |
76 | zarządzanie węzła ze zdalnej maszyny (poprzez TCP/IP). | |
77 | ||
78 | %package libs | |
79 | Summary: VACM libraries | |
80 | Summary(pl.UTF-8): Biblioteki VACM | |
81 | Group: Libraries | |
82 | ||
83 | %description libs | |
84 | VACM libraries. | |
85 | ||
86 | %description libs -l pl.UTF | |
87 | Biblioteki VACM. | |
88 | ||
89 | %package devel | |
90 | Summary: Header files for VACM libraries | |
91 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VACM | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-libs = %{version}-%{release} | |
94 | ||
95 | %description devel | |
96 | Header files for VACM libraries. | |
97 | ||
98 | %description devel -l pl.UTF-8 | |
99 | Pliki nagłówkowe bibliotek VACM. | |
100 | ||
101 | %package static | |
102 | Summary: Static VACM libraries | |
103 | Summary(pl.UTF-8): Statyczne biblioteki VACM | |
104 | Group: Development/Libraries | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
106 | ||
107 | %description static | |
108 | Static VACM libraries. | |
109 | ||
110 | %description static -l pl.UTF-8 | |
111 | Statyczne biblioteki VACM. | |
112 | ||
113 | %package node | |
114 | Summary: VACM client node | |
115 | Summary(pl.UTF-8): Węzeł kliencki VACM | |
116 | Group: Applications/System | |
117 | Requires: %{name}-libs = %{version}-%{release} | |
118 | ||
119 | %description node | |
120 | Package to be installed on VACM client nodes. It contains daemons for | |
121 | use with various VACM modules for additional monitoring functionality. | |
122 | ||
123 | %description node -l pl.UTF-8 | |
124 | Pakiet do zainstalowania na węzłach klienckich VACM. Zawiera demony | |
125 | przeznaczone do użycia z różnymi modułami VACM, dostarczającymi | |
126 | dodatkowe funkcje monitorowania. | |
127 | ||
128 | %package flim | |
129 | Summary: Flim GUI for VACM | |
130 | Summary(pl.UTF-8): Graficzny interfejs Flim do VACM-a | |
131 | Group: X11/Applications | |
132 | Requires: %{name}-libs = %{version}-%{release} | |
133 | Requires: %{name}-sercon = %{version}-%{release} | |
134 | Requires: xterm | |
135 | Requires: gtk+ >= 1.2.6 | |
136 | ||
137 | %description flim | |
138 | Flim is a Graphical User Interface (GUI) for VACM which provides | |
139 | easy interaction with the nexxus through several plugin modules. | |
140 | ||
141 | %description flim -l pl.UTF-8 | |
142 | Flim to graficzny interfejs użytkownika (GUI) do VACM-a, zapewniający | |
143 | łatwą interakcję z nexxusem poprzez kilka modułów wtyczek. | |
144 | ||
145 | %package hoover | |
146 | Summary: Hoover GUI for VACM | |
147 | Summary(pl.UTF-8): Graficzny interfejs Hoover do VACM-a | |
148 | Group: X11/Applications | |
149 | Requires: %{name}-libs = %{version}-%{release} | |
150 | ||
151 | %description hoover | |
152 | Hoover is a Graphical User Interface (GUI) for VACM. | |
153 | ||
154 | %description hoover -l pl.UTF-8 | |
155 | Hoover to graficzny interfejs użytkownika (GUI) do VACM-a. | |
156 | ||
157 | %package sercon | |
158 | Summary: Serial Console Terminal program | |
159 | Summary(pl.UTF-8): Program terminala do konsoli szeregowej | |
160 | Group: Applications/System | |
161 | Requires: %{name}-libs = %{version}-%{release} | |
162 | ||
163 | %description sercon | |
164 | Command-line serial console terminal program to remotely access | |
165 | consoles of nodes on a VACM cluster. | |
166 | ||
167 | %description sercon -l pl.UTF-8 | |
168 | Działający z linii poleceń program terminala do konsoli szeregowej | |
169 | służący do zdalnego dostępu do konsol węzłów w klastrze VACM. | |
170 | ||
171 | %package vash | |
172 | Summary: VACM command line client | |
173 | Summary(pl.UTF-8): Klient linii poleceń do VACM-a | |
174 | Group: Applications/System | |
175 | Requires: %{name}-libs = %{version}-%{release} | |
176 | ||
177 | %description vash | |
178 | VACM command line client for scripting and low level command-line | |
179 | access. | |
180 | ||
181 | %description vash -l pl.UTF-8 | |
182 | Klient linii poleceń do wykonywania skryptów oraz niskopoziomowego | |
183 | dostępu. | |
184 | ||
185 | %package doc | |
186 | Summary: VACM documentation | |
187 | Summary(pl.UTF-8): Dokumentacja do VACM-a | |
188 | Group: Documentation | |
189 | ||
190 | %description doc | |
191 | VACM documentation. | |
192 | ||
193 | %description doc -l pl.UTF-8 | |
194 | Dokumentacja do VACM-a. | |
195 | ||
196 | %prep | |
197 | %setup -q | |
198 | %patch0 -p1 | |
199 | %patch1 -p1 | |
33d9396a | 200 | %patch2 -p1 |
21f51ab3 | 201 | %patch3 -p1 |
ea21342d | 202 | %patch4 -p1 |
0c8e9389 | 203 | %patch5 -p1 |
6576dab1 | 204 | %patch6 -p1 |
06565cea JB |
205 | |
206 | %{__sed} -i -e 's/\r//g' nexxus/nexxus_modules/emp/include/iana_list.h | |
207 | ||
208 | %build | |
209 | cp -f /usr/share/gettext/config.rpath . | |
210 | %{__libtoolize} | |
211 | %{__aclocal} | |
212 | %{__autoconf} | |
213 | %{__autoheader} | |
214 | %{__automake} | |
215 | cd clients/flim | |
216 | %{__gettextize} | |
217 | %{__aclocal} | |
218 | %{__autoconf} | |
219 | %{__autoheader} | |
220 | %{__automake} | |
221 | cd ../.. | |
222 | %configure \ | |
223 | --enable-pam \ | |
224 | --enable-ssl \ | |
225 | --enable-static \ | |
97181cb8 | 226 | %{!?with_gtk1:--without-flim} \ |
06565cea JB |
227 | %{!?with_gnome1:--without-hoover} |
228 | %{__make} | |
229 | ||
230 | %install | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,/etc/logrotate.d,/etc/sysconfig} | |
233 | ||
234 | %{__make} install \ | |
235 | DESTDIR=$RPM_BUILD_ROOT \ | |
236 | docdir=$RPM_BUILD_ROOT%{_docdir}/vacm-doc-%{version} | |
237 | ||
238 | install $RPM_BUILD_ROOT%{_libdir}/vacm/exports/* $RPM_BUILD_ROOT%{_sbindir} | |
239 | install packaging/RedHat/vacm.init $RPM_BUILD_ROOT/etc/rc.d/init.d/vacm | |
240 | install packaging/RedHat/node.init $RPM_BUILD_ROOT/etc/rc.d/init.d/vacm-node | |
241 | install packaging/RedHat/vacm-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/vacm | |
242 | install packaging/RedHat/vacm.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/vacm | |
243 | ||
244 | # no external dependencies | |
c1074077 | 245 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libloose.la |
06565cea | 246 | |
97181cb8 | 247 | %{?with_gtk1:%find_lang flim} |
06565cea JB |
248 | |
249 | %clean | |
250 | rm -rf $RPM_BUILD_ROOT | |
251 | ||
252 | %post | |
253 | /sbin/chkconfig --add vacm | |
254 | %service vacm restart | |
255 | ||
256 | %preun | |
257 | if [ "$1" = "0" ]; then | |
258 | %service -q vacm stop | |
259 | /sbin/chkconfig --del vacm | |
260 | fi | |
261 | ||
262 | %post node | |
263 | /sbin/chkconfig --add vacm-node | |
264 | %service vacm-node restart | |
265 | ||
266 | %preun node | |
267 | if [ "$1" = "0" ]; then | |
268 | %service -q vacm-node stop | |
269 | /sbin/chkconfig --del vacm-node | |
270 | fi | |
271 | ||
272 | %post libs -p /sbin/ldconfig | |
273 | %postun libs -p /sbin/ldconfig | |
274 | ||
275 | %post hoover -p /sbin/ldconfig | |
276 | %postun hoover -p /sbin/ldconfig | |
277 | ||
278 | %files | |
279 | %defattr(644,root,root,755) | |
280 | %doc BUGS ChangeLog README_FIRST | |
281 | %attr(755,root,root) %{_bindir}/nexxus | |
282 | %attr(755,root,root) %{_bindir}/nuptime | |
283 | %dir %{_libdir}/vacm | |
284 | %dir %{_libdir}/vacm/exports | |
285 | %attr(755,root,root) %{_libdir}/vacm/exports/vacm_* | |
286 | %dir %{_libdir}/vacm/modules | |
287 | %attr(755,root,root) %{_libdir}/vacm/modules/*.loose | |
288 | %{_libdir}/vacm/sercon.otp | |
289 | %attr(754,root,root) /etc/rc.d/init.d/vacm | |
290 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vacm | |
291 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/vacm | |
292 | # FIXME: /etc | |
293 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/vacm/vacm_configuration | |
294 | ||
295 | %files libs | |
296 | %defattr(644,root,root,755) | |
297 | %attr(755,root,root) %{_libdir}/libloose-%{version}.so | |
298 | %attr(755,root,root) %{_libdir}/libvacmclient-%{version}.so | |
299 | ||
06565cea JB |
300 | %files devel |
301 | %defattr(644,root,root,755) | |
302 | %attr(755,root,root) %{_libdir}/libloose.so | |
303 | %attr(755,root,root) %{_libdir}/libvacmclient.so | |
c1074077 | 304 | %{_libdir}/libvacmclient.la |
06565cea JB |
305 | %{_includedir}/libloose.h |
306 | %{_includedir}/vacmclient_api.h | |
307 | ||
308 | %files static | |
309 | %defattr(644,root,root,755) | |
310 | %{_libdir}/libloose.a | |
311 | %{_libdir}/libvacmclient.a | |
312 | ||
c1074077 JB |
313 | %files node |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_sbindir}/vacm_sys_stat_proxy | |
316 | %attr(755,root,root) %{_sbindir}/vacm_sys_statd | |
317 | %attr(755,root,root) %{_sbindir}/vacm_user_admd | |
318 | %attr(754,root,root) /etc/rc.d/init.d/vacm-node | |
319 | ||
06565cea JB |
320 | %if %{with gtk1} |
321 | %files flim -f flim.lang | |
322 | %defattr(644,root,root,755) | |
323 | %attr(755,root,root) %{_bindir}/flim | |
324 | %dir %{_libdir}/flim | |
325 | %attr(755,root,root) %{_libdir}/flim/*.p | |
326 | %{_datadir}/flim | |
327 | %endif | |
328 | ||
329 | %if %{with gnome1} | |
330 | %files hoover | |
331 | %defattr(644,root,root,755) | |
332 | %attr(755,root,root) %{_bindir}/hoover | |
333 | %attr(755,root,root) %{_libdir}/libgessie-%{version}.so | |
334 | %{_mandir}/man8/hoover.8* | |
335 | %endif | |
336 | ||
337 | %files sercon | |
338 | %defattr(644,root,root,755) | |
339 | %attr(755,root,root) %{_bindir}/sercon_terminal | |
340 | ||
341 | %files vash | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_bindir}/vash | |
344 | ||
345 | %files doc | |
346 | %defattr(644,root,root,755) | |
347 | %{_docdir}/%{name}-doc-%{version} |