3 %bcond_with libonly # build package only with lib (needed bootstrap with ccs)
5 Summary: General-purpose symmetric cluster manager
6 Summary(pl.UTF-8): Zarządca symetrycznych klastrów ogólnego przeznaczenia
11 Group: Applications/System
12 Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
13 # Source0-md5: 2ef3f4ba9d3c87b50adfc9b406171085
14 URL: http://sources.redhat.com/cluster/cman/
15 %{!?with_libonly:BuildRequires: ccs-devel}
16 BuildRequires: openais-devel
17 BuildRequires: perl-base
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _sbindir /sbin
23 MAN is a symmetric, general-purpose, kernel-based cluster manager. It
24 has two parts. Connection Manager (cnxman) handles membership,
25 messaging, quorum, event notification and transitions. Service Manager
26 (sm) handles "service groups" which are a general way of representing
27 and managing instances of external systems that require cluster
28 management. The CMAN cluster manager is the foundational system upon
29 which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel
30 and userspace is general and available for other programs to use.
32 %description -l pl.UTF-8
33 MAN to zarządca opartych na jądrze symetrycznych klastrów ogólnego
34 przeznaczenia. Składa się z dwóch części. Zarządca połączeń
35 (Connection Manager, cnxman) obsługuje członkostwo, komunikację,
36 kworum, powiadamianie o zdarzeniach i przejścia. Zarządca usług
37 (Service Manager, sm) obsługuje "grupy usług", które są ogólnym
38 sposobem reprezentacji i zarządzania instancjami zewnętrznych systemów
39 wymagających zarządzania klastrem. Zarządca klastrów CMAN to
40 podstawowy system, na którym polegają DLM, GFS, CLVM i Fence. API
41 CMAN-a w jądrze i przestrzeni użytkownika jest ogólne i w całości
42 dostępne do wykorzystania w innych programach.
45 Summary: CMAN header files
46 Summary(pl.UTF-8): Pliki nagłówkowe CMAN
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe CMAN.
57 Summary: CMAN static library
58 Summary(pl.UTF-8): Biblioteka statyczna CMAN
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
65 %description devel -l pl.UTF-8
66 Biblioteka statyczna CMAN.
69 %setup -q -n cluster-%{version}
72 %{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
73 %{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile
78 --ccsincdir="$PWD/../ccs/lib" \
79 --incdir=%{_includedir} \
84 %{__make} %{?with_libonly:-C lib} \
89 rm -rf $RPM_BUILD_ROOT
92 %{__make} %{?with_libonly:-C lib} install \
93 DESTDIR=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %{!?with_libonly:%attr(755,root,root) %{_sbindir}/*}
104 %attr(755,root,root) %{_libdir}/libcman.so.*.*
105 %if %{without libonly}
106 %{_mandir}/man5/cman.5*
107 %{_mandir}/man5/qdisk.5*
108 %{_mandir}/man8/cman_tool.8*
109 %{_mandir}/man8/mkqdisk.8*
110 %{_mandir}/man8/qdiskd.8*
111 #%attr(754,root,root) /etc/rc.d/init.d/cman
112 #%attr(754,root,root) /etc/rc.d/init.d/qdiskd
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libcman.so
121 %defattr(644,root,root,755)