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