]> git.pld-linux.org Git - packages/cluster.git/blob - cluster.spec
224ece8278865538a7914348be6a67645b2cd41e
[packages/cluster.git] / cluster.spec
1 #
2 # INFO:
3 # This is work taken from the gfs2.spec and moved into a cluster-3 generation. 
4 # Some of the old work was dropped as it had no interest to the commiter, 
5 # so if You're missing something, please look into gfs2.spec and update.
6 #
7
8 Summary:        Cluster infrastructure
9 Summary(pl.UTF-8):      Infrastruktura klastra
10 Name:           cluster
11 Version:        3.0.13
12 Release:        0.3
13 License:        GPL v2
14 Group:          Applications/System
15 Source0:        https://fedorahosted.org/releases/c/l/%{name}/%{name}-%{version}.tar.bz2
16 # Source0-md5:  d13aac279519af926894cc25722b1f9f
17 URL:            http://sources.redhat.com/cluster/wiki
18 BuildRequires:  corosync-devel
19 BuildRequires:  libvirt-devel
20 BuildRequires:  libxml2-devel
21 BuildRequires:  libxslt-progs
22 BuildRequires:  ncurses-devel
23 BuildRequires:  nspr-devel
24 BuildRequires:  nss-devel
25 BuildRequires:  openais-devel
26 BuildRequires:  openldap-devel
27 BuildRequires:  perl-ExtUtils-MakeMaker
28 BuildRequires:  python-pexpect
29 BuildRequires:  slang-devel
30 Requires:       %{name}-cman = %{version}-%{release}
31 Requires:       %{name}-rgmanager = %{version}-%{release}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _sbindir        /sbin
35
36 %description
37 %description -l pl.UTF-8
38
39 %package ccs
40 Summary:        Cluster configuration system
41 Summary(pl.UTF-8):      System konfiguracji klastra
42 Group:          Applications/System
43 Requires:       libxml2-progs
44
45 %description ccs
46 Cluster configuration system to manage the cluster config file.
47
48 %description ccs -l pl.UTF-8
49 System konfiguracji klastra do zarządzania jego plikiem
50 konfiguracyjnym.
51
52 %package ccs-devel
53 Summary:        Cluster configuration system
54 Summary(pl.UTF-8):      System konfiguracji klastra
55 Group:          Applications/System
56 Requires:       %{name}-ccs-libs = %{version}-%{release}
57
58 %description ccs-devel
59 %description ccs-devel -l pl.UTF-8
60
61 %package ccs-libs
62 Summary:        Cluster configuration system
63 Summary(pl.UTF-8):      System konfiguracji klastra
64 Group:          Applications/System
65
66 %description ccs-libs
67 %description ccs-libs -l pl.UTF-8
68
69 %package ccs-static
70 Summary:        Cluster configuration system
71 Summary(pl.UTF-8):      System konfiguracji klastra
72 Group:          Applications/System
73
74 %description ccs-static
75 %description ccs-static -l pl.UTF-8
76
77 %package cman
78 Summary:        Cluster infrastructure manager
79 Summary(pl.UTF-8):      Zarządca infrastruktury klastra
80 Group:          Applications/System
81 Requires:       corosync
82 Requires:       openais
83 Requires:       %{name}-ccs = %{version}-%{release}
84 Requires:       %{name}-dlm = %{version}-%{release}
85 Requires:       %{name}-fence = %{version}-%{release}
86 Requires:       %{name}-group = %{version}-%{release}
87
88 %description cman
89 MAN is a symmetric, general-purpose, kernel-based cluster manager. It
90 has two parts. Connection Manager (cnxman) handles membership,
91 messaging, quorum, event notification and transitions. Service Manager
92 (sm) handles "service groups" which are a general way of representing
93 and managing instances of external systems that require cluster
94 management. The CMAN cluster manager is the foundational system upon
95 which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel
96 and userspace is general and available for other programs to use.
97
98 %description cman -l pl.UTF-8
99 MAN to zarządca opartych na jądrze symetrycznych klastrów ogólnego
100 przeznaczenia. Składa się z dwóch części. Zarządca połączeń
101 (Connection Manager, cnxman) obsługuje członkostwo, komunikację,
102 kworum, powiadamianie o zdarzeniach i przejścia. Zarządca usług
103 (Service Manager, sm) obsługuje "grupy usług", które są ogólnym
104 sposobem reprezentacji i zarządzania instancjami zewnętrznych systemów
105 wymagających zarządzania klastrem. Zarządca klastrów CMAN to
106 podstawowy system, na którym polegają DLM, GFS, CLVM i Fence. API
107 CMAN-a w jądrze i przestrzeni użytkownika jest ogólne i w całości
108 dostępne do wykorzystania w innych programach.
109
110
111 %package cman-devel
112 Summary:        Cluster infrastructure manager
113 Summary(pl.UTF-8):      Zarządca infrastruktury klastra
114 Group:          Applications/System
115 Requires:       %{name}-cman-libs = %{version}-%{release}
116
117 %description cman-devel
118 %description cman-devel -l pl.UTF-8
119
120 %package cman-libs
121 Summary:        Cluster infrastructure manager
122 Summary(pl.UTF-8):      Zarządca infrastruktury klastra
123 Group:          Applications/System
124
125 %description cman-libs
126 %description cman-libs -l pl.UTF-8
127
128 %package cman-static
129 Summary:        Cluster infrastructure manager
130 Summary(pl.UTF-8):      Zarządca infrastruktury klastra
131 Group:          Applications/System
132
133 %description cman-static
134 %description cman-static -l pl.UTF-8
135
136 %package dlm
137 Summary:        Cluster infrastructure lock manager
138 Summary(pl.UTF-8):      Zarządca blokad infrastruktury klastra
139 Group:          Applications/System
140
141 %description dlm
142 The DLM lock manager is a kernel-based VMS-like distributed lock
143 manager. It is general purpose and not specific to only GFS or CLVM.
144 Kernel and userspace locking API's are available.
145
146 %description dlm -l pl.UTF-8
147 Zarządca blokad DLM to oparty na jądrze zarządca rozproszonych blokad
148 w stylu VMS. Jest ogólnego przeznaczenia, przeznaczonym nie tylko dla
149 GFS-a czy CLVM-a. Dostępne są API blokowania w jądrze i przestrzeni
150 użytkownika.
151
152 %package dlm-devel
153 Summary:        Cluster infrastructure lock manager
154 Summary(pl.UTF-8):      Zarządca blokad infrastruktury klastra
155 Group:          Applications/System
156 Requires:       %{name}-dlm-libs = %{version}-%{release}
157
158 %description dlm-devel
159 %description dlm-devel -l pl.UTF-8
160
161 %package dlm-libs
162 Summary:        Cluster infrastructure lock manager
163 Summary(pl.UTF-8):      Zarządca blokad infrastruktury klastra
164 Group:          Applications/System
165
166 %description dlm-libs
167 %description dlm-libs -l pl.UTF-8
168
169 %package dlm-static
170 Summary:        Cluster infrastructure lock manager
171 Summary(pl.UTF-8):      Zarządca blokad infrastruktury klastra
172 Group:          Applications/System
173
174 %description dlm-static
175 %description dlm-static -l pl.UTF-8
176
177 %package fence
178 Summary:        Cluster infrastructure I/O fencing system
179 Summary(pl.UTF-8):      System barier I/O infrastruktury klastra
180 Group:          Applications/System
181
182 %description fence
183 The Fence system does I/O fencing of cluster members. Any member may
184 join the default fence domain after which it will be fenced if it
185 fails without leaving the fence domain cleanly. The lock_dlm GFS lock
186 module will not permit GFS to be mounted until the node has joined a
187 fence domain.
188
189 The fence daemon, fenced, is usually started by running "fence_tool
190 join". Once started, fenced joins the default fence domain and the
191 node is subject to being fenced if it fails. A collection of fence
192 agents are used by fenced to interface with hardware devices (usually
193 to shut off its path to shared storage or cycle its power source.)
194
195 %description fence -l pl.UTF-8
196 System Fence odpowiada za bariery I/O dla członków klastra. Każdy z
197 członków może dołączyć do domyślnej domeny barier, po czym będzie
198 odgrodzony jeśli zawiedzie nie opuszczając czysto domeny barier. Moduł
199 blokujący GFS-a lock_dlm nie pozwoli na podmontowanie GFS-a dopóki
200 węzeł nie dołączy do domeny barier.
201
202 Demon fence, fenced, jest zwykle uruchamiany przez fence_tool join. Po
203 uruchomieniu fenced dołącza do domyślnej domeny barier, a węzeł jest
204 przedmiotem odgrodzenia jeśli zawiedzie. fenced wykorzystuje zbiór
205 agentów fence do komunikacji z urządzeniami sprzętowymi (zwykle do
206 odcinania drogi do dzielonej pamięci lub wyłączania i włączania
207 zasilania).
208
209 %package fence-devel
210 Summary:        Cluster infrastructure I/O fencing system
211 Summary(pl.UTF-8):      System barier I/O infrastruktury klastra
212 Group:          Applications/System
213 Requires:       %{name}-fence-libs = %{version}-%{release}
214
215 %description fence-devel
216 %description fence-devel -l pl.UTF-8
217
218 %package fence-libs
219 Summary:        Cluster infrastructure I/O fencing system
220 Summary(pl.UTF-8):      System barier I/O infrastruktury klastra
221 Group:          Applications/System
222
223 %description fence-libs
224 %description fence-libs -l pl.UTF-8
225
226 %package fence-static
227 Summary:        Cluster infrastructure I/O fencing system
228 Summary(pl.UTF-8):      System barier I/O infrastruktury klastra
229 Group:          Applications/System
230
231 %description fence-static
232 %description fence-static -l pl.UTF-8
233
234 %package group
235 Summary:        Cluster infrastructure
236 Summary(pl.UTF-8):      Infrastruktura klastra
237 Group:          Applications/System
238
239 %description group
240 %description group -l pl.UTF-8
241
242 %package gfs2
243 Summary:        Shared-disk cluster filesystem
244 Summary(pl.UTF-8):      Klastrowy system plików na współdzielonym dysku
245 Group:          Applications/System
246
247 %description gfs2
248 GFS (Global File System) is a cluster file system. It allows a cluster
249 of computers to simultaneously use a block device that is shared
250 between them (with FC, iSCSI, NBD, etc...). GFS reads and writes to
251 the block device like a local filesystem, but also uses a lock module
252 to allow the computers coordinate their I/O so filesystem consistency
253 is maintained. One of the nifty features of GFS is perfect consistency
254 - -- changes made to the filesystem on one machine show up immediately
255   on all other machines in the cluster.
256
257 %description gfs2 -l pl.UTF-8
258 GFS (Global File System) to klastrowy system plików. Pozwala klastrowi
259 komputerów na jednoczesne korzystanie z urządzenia blokowego
260 dzielonego między nimi (poprzez FC, iSCSI, NBD itp.). GFS odczytuje i
261 zapisuje urządzenie blokowe jak lokalny system plików, ale używa
262 dodatkowo modułu blokującego, aby umożliwić komputerom koordynowanie
263 ich operacji I/O w celu zachowania spójności systemu plików. Jedną z
264 szykownych możliwości GFS-a jest idealna spójność - zmiany wykonane w
265 systemie plików na jednej maszynie natychmiast pokazują się na
266 wszystkich innych maszynach w klastrze.
267
268 %package rgmanager
269 Summary:        HA resource group failover
270 Summary(pl.UTF-8):      Failover dla grupy zasobów wysokiej dostępności
271 Group:          Applications/System
272
273 %description rgmanager
274 Resource Group Manager provides high availability of critical server
275 applications in the event of planned or unplanned system downtime.
276
277 %description rgmanager -l pl.UTF-8
278 Resource Group Manager daje wysoką dostępność krytycznych aplikacji
279 serwerowych w przypadku planowanych lub nieplanowanych wyłączeń
280 serwera.
281
282 %prep
283 %setup -q
284
285 sed -i -e 's,-Wall,%{rpmcflags} -I/usr/include/ncurses -Wall,' make/defines.mk.input
286 sed -i -e 's/ -ggdb / %{rpmcflags} /' gfs2/libgfs2/Makefile
287 sed -i -e 's/ -O2 -ggdb / %{rpmcflags} /' gfs2/mkfs/Makefile
288
289 %build
290 ./configure \
291         --libdir=%{_libdir} \
292         --libexecdir=%{_libdir} \
293         --mandir=%{_mandir} \
294         --prefix=%{_prefix} \
295         --sbindir=%{_sbindir} \
296         --ncursesincdir=/usr/include/ncurses \
297         --nsprincdir=%{_includedir}/nspr \
298         --nssincdir=%{_includedir}/nss \
299         --without_kernel_modules --disable_kernel_check
300
301 %{__make}
302
303 %install
304 rm -rf $RPM_BUILD_ROOT
305
306 %{__make} install \
307         DESTDIR=$RPM_BUILD_ROOT
308
309 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster
310 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
311 install -d $RPM_BUILD_ROOT/var/log/cluster
312 mv $RPM_BUILD_ROOT/''etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d
313
314 %clean
315 rm -rf $RPM_BUILD_ROOT
316
317 %files
318 %defattr(644,root,root,755)
319
320 %files ccs
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_sbindir}/confdb2ldif
323 %attr(755,root,root) %{_sbindir}/ccs_config_dump
324 %attr(755,root,root) %{_sbindir}/ccs_config_validate
325 %attr(755,root,root) %{_sbindir}/ccs_test
326 %attr(755,root,root) %{_sbindir}/ccs_tool
327 %attr(755,root,root) %{_libdir}/lcrso/*.lcrso
328 %{_mandir}/man8/ccs_config_dump.*
329 %{_mandir}/man8/ccs_config_validate.*
330 %{_mandir}/man8/ccs_tool.*
331 %{_mandir}/man8/confdb2ldif.*
332
333 %files ccs-libs
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libccs.so.3.0
336 %attr(755,root,root) %ghost %{_libdir}/libccs.so.3
337
338 %files ccs-devel
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/libccs.so
341 %{_includedir}/ccs.h
342 %{_pkgconfigdir}/libccs.pc
343
344 %files ccs-static
345 %defattr(644,root,root,755)
346 %{_libdir}/libccs.a
347
348 %files cman
349 %defattr(644,root,root,755)
350 %{_sysconfdir}/cluster
351 /etc/logrotate.d/cluster
352 %attr(754,root,root) /etc/rc.d/init.d/cman
353 %attr(755,root,root) %{_sbindir}/cman_notify
354 %attr(755,root,root) %{_sbindir}/cman_tool
355 %attr(755,root,root) %{_sbindir}/cmannotifyd
356 %attr(755,root,root) %{_sbindir}/mkqdisk
357 %attr(755,root,root) %{_sbindir}/qdiskd
358 %{_datadir}/cluster
359 %{_docdir}/cluster
360 %{_mandir}/man5/cluster.conf.*
361 %{_mandir}/man5/cman.*
362 %{_mandir}/man5/qdisk.*
363 %{_mandir}/man8/cman_tool.*
364 %{_mandir}/man8/cman_notify.*
365 %{_mandir}/man8/cmannotifyd.*
366 %{_mandir}/man8/mkqdisk.*
367 %{_mandir}/man8/qdiskd.*
368 /var/log/cluster
369
370 %files cman-devel
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libcman.so
373 %attr(755,root,root) %{_libdir}/liblogthread.so
374 %{_includedir}/libcman.h
375 %{_includedir}/liblogthread.h
376 %{_pkgconfigdir}/libcman.pc
377 %{_pkgconfigdir}/liblogthread.pc
378
379 %files cman-libs
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libcman.so.3.0
382 %attr(755,root,root) %ghost %{_libdir}/libcman.so.3
383 %attr(755,root,root) %{_libdir}/liblogthread.so.3.0
384 %attr(755,root,root) %ghost %{_libdir}/liblogthread.so.3
385
386 %files cman-static
387 %defattr(644,root,root,755)
388 %{_libdir}/libcman.a
389 %{_libdir}/liblogthread.a
390
391 %files dlm
392 %defattr(644,root,root,755)
393 /etc/udev/rules.d/51-dlm.rules
394 %attr(755,root,root) %{_sbindir}/dlm_tool
395 %{_mandir}/man8/dlm_tool.*
396
397 %files dlm-devel
398 %defattr(644,root,root,755)
399 %{_includedir}/libdlm.h
400 %{_includedir}/libdlmcontrol.h
401 %{_pkgconfigdir}/libdlm.pc
402 %{_pkgconfigdir}/libdlm_lt.pc
403 %{_pkgconfigdir}/libdlmcontrol.pc
404 %attr(755,root,root) %{_libdir}/libdlm.so
405 %attr(755,root,root) %{_libdir}/libdlm_lt.so
406 %attr(755,root,root) %{_libdir}/libdlmcontrol.so
407 %{_mandir}/man3/dlm_*.*
408 %{_mandir}/man3/libdlm.*
409
410 %files dlm-libs
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/libdlm.so.3.0
413 %attr(755,root,root) %ghost %{_libdir}/libdlm.so.3
414 %attr(755,root,root) %{_libdir}/libdlm_lt.so.3.0
415 %attr(755,root,root) %ghost %{_libdir}/libdlm_lt.so.3
416 %attr(755,root,root) %{_libdir}/libdlmcontrol.so.3.1
417 %attr(755,root,root) %ghost %{_libdir}/libdlmcontrol.so.3
418
419 %files dlm-static
420 %defattr(644,root,root,755)
421 %{_libdir}/libdlm.a
422 %{_libdir}/libdlm_lt.a
423 %{_libdir}/libdlmcontrol.a
424
425 %files fence
426 %defattr(644,root,root,755)
427 %attr(755,root,root) %{_sbindir}/fence_*
428 %attr(755,root,root) %{_sbindir}/fenced
429 %{_mandir}/man8/fence_*.*
430 %{_mandir}/man8/fenced.*
431
432 %files fence-devel
433 %defattr(644,root,root,755)
434 %{_includedir}/libfence.h
435 %{_includedir}/libfenced.h
436 %{_pkgconfigdir}/libfence.pc
437 %{_pkgconfigdir}/libfenced.pc
438 %attr(755,root,root) %{_libdir}/libfence.so
439 %attr(755,root,root) %{_libdir}/libfenced.so
440
441 %files fence-libs
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/libfence.so.4.0
444 %attr(755,root,root) %ghost %{_libdir}/libfence.so.4
445 %attr(755,root,root) %{_libdir}/libfenced.so.3.0
446 %attr(755,root,root) %ghost %{_libdir}/libfenced.so.3
447
448 %files fence-static
449 %defattr(644,root,root,755)
450 %{_libdir}/libfence.a
451 %{_libdir}/libfenced.a
452
453 %files group
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_sbindir}/dlm_controld
456 %attr(755,root,root) %{_sbindir}/gfs_control
457 %attr(755,root,root) %{_sbindir}/gfs_controld
458 %attr(755,root,root) %{_sbindir}/group_tool
459 %attr(755,root,root) %{_sbindir}/groupd
460 %{_mandir}/man8/dlm_controld.*
461 %{_mandir}/man8/gfs_control.*
462 %{_mandir}/man8/gfs_controld.*
463 %{_mandir}/man8/group_tool.*
464 %{_mandir}/man8/groupd.*
465
466 %files gfs2
467 %defattr(644,root,root,755)
468 %attr(754,root,root) /etc/rc.d/init.d/gfs2
469 %attr(755,root,root) %{_sbindir}/fsck.gfs2
470 %attr(755,root,root) %{_sbindir}/gfs2_convert
471 %attr(755,root,root) %{_sbindir}/gfs2_edit
472 %attr(755,root,root) %{_sbindir}/gfs2_grow
473 %attr(755,root,root) %{_sbindir}/gfs2_jadd
474 %attr(755,root,root) %{_sbindir}/gfs2_quota
475 %attr(755,root,root) %{_sbindir}/gfs2_tool
476 %attr(755,root,root) %{_sbindir}/mkfs.gfs2
477 %attr(755,root,root) %{_sbindir}/mount.gfs2
478 %{_mandir}/man8/fsck.gfs2.*
479 %{_mandir}/man8/gfs2.*
480 %{_mandir}/man8/gfs2_convert.*
481 %{_mandir}/man8/gfs2_edit.*
482 %{_mandir}/man8/gfs2_grow.*
483 %{_mandir}/man8/gfs2_jadd.*
484 %{_mandir}/man8/gfs2_quota.*
485 %{_mandir}/man8/gfs2_tool.*
486 %{_mandir}/man8/mkfs.gfs2.*
487 %{_mandir}/man8/mount.gfs2.*
488
489 %files rgmanager
490 %defattr(644,root,root,755)
491 %attr(754,root,root) /etc/rc.d/init.d/rgmanager
492 %attr(755,root,root) %{_sbindir}/clubufflush
493 %attr(755,root,root) %{_sbindir}/clufindhostname
494 %attr(755,root,root) %{_sbindir}/clulog
495 %attr(755,root,root) %{_sbindir}/clunfslock
496 %attr(755,root,root) %{_sbindir}/clurgmgrd
497 #%attr(755,root,root) %{_sbindir}/clurmtabd
498 %attr(755,root,root) %{_sbindir}/clustat
499 %attr(755,root,root) %{_sbindir}/clusvcadm
500 %attr(755,root,root) %{_sbindir}/rg_test
501 %attr(755,root,root) %{_sbindir}/rgmanager
502 %{_mandir}/man8/clubufflush.*
503 %{_mandir}/man8/clufindhostname.*
504 %{_mandir}/man8/clulog.*
505 #%{_mandir}/man8/clunfslock.*
506 %{_mandir}/man8/clurgmgrd.*
507 #%{_mandir}/man8/clurmtabd.*
508 %{_mandir}/man8/clustat.*
509 %{_mandir}/man8/clusvcadm.*
510 %{_mandir}/man8/rgmanager.*
This page took 0.635222 seconds and 2 git commands to generate.