1 Summary: General-purpose symmetric cluster manager
2 Summary(pl.UTF-8): Zarządca symetrycznych klastrów ogólnego przeznaczenia
7 Group: Applications/System
8 Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
9 # Source0-md5: 8eea23df70d2007c4fb8c234cfea49cf
10 URL: http://sources.redhat.com/cluster/cman/
11 BuildRequires: ccs-devel
12 BuildRequires: perl-base
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _sbindir /sbin
18 MAN is a symmetric, general-purpose, kernel-based cluster manager. It
19 has two parts. Connection Manager (cnxman) handles membership,
20 messaging, quorum, event notification and transitions. Service Manager
21 (sm) handles "service groups" which are a general way of representing
22 and managing instances of external systems that require cluster
23 management. The CMAN cluster manager is the foundational system upon
24 which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel
25 and userspace is general and available for other programs to use.
27 %description -l pl.UTF-8
28 MAN to zarządca opartych na jądrze symetrycznych klastrów ogólnego
29 przeznaczenia. Składa się z dwóch części. Zarządca połączeń
30 (Connection Manager, cnxman) obsługuje członkostwo, komunikację,
31 kworum, powiadamianie o zdarzeniach i przejścia. Zarządca usług
32 (Service Manager, sm) obsługuje "grupy usług", które są ogólnym
33 sposobem reprezentacji i zarządzania instancjami zewnętrznych systemów
34 wymagających zarządzania klastrem. Zarządca klastrów CMAN to
35 podstawowy system, na którym polegają DLM, GFS, CLVM i Fence. API
36 CMAN-a w jądrze i przestrzeni użytkownika jest ogólne i w całości
37 dostępne do wykorzystania w innych programach.
40 Summary: CMAN header files
41 Summary(pl.UTF-8): Pliki nagłówkowe CMAN
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe CMAN.
52 Summary: CMAN static library
53 Summary(pl.UTF-8): Biblioteka statyczna CMAN
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
60 %description devel -l pl.UTF-8
61 Biblioteka statyczna CMAN.
64 %setup -q -n cluster-%{version}
65 install -d %{name}/include/cluster
66 ln -s . %{name}/include/cluster/cluster
67 install %{name}-kernel/src/cnxman-socket.h %{name}/include/cluster
70 %{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
71 %{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile
76 --incdir=%{_includedir} \
86 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_includedir}/cluster
93 install include/cluster/cnxman-socket.h $RPM_BUILD_ROOT%{_includedir}/cluster
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_sbindir}/*
104 %attr(755,root,root) %{_libdir}/libcman.so.*.*
105 %{_mandir}/man5/cman.5*
106 %{_mandir}/man5/qdisk.5*
107 %{_mandir}/man8/cman_tool.8*
108 %{_mandir}/man8/mkqdisk.8*
109 %{_mandir}/man8/qdiskd.8*
110 #%attr(754,root,root) /etc/rc.d/init.d/cman
111 #%attr(754,root,root) /etc/rc.d/init.d/qdiskd
114 %defattr(644,root,root,755)
115 # XXX dir shared with dml-devel
116 %dir %{_includedir}/cluster
118 %{_includedir}/cluster/*.h
119 %attr(755,root,root) %{_libdir}/libcman.so
122 %defattr(644,root,root,755)