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