]>
Commit | Line | Data |
---|---|---|
cb602c2e AM |
1 | # |
2 | # Conditional build: | |
3 | Summary: general-purpose symmetric cluster manager | |
4 | Name: cman | |
5 | %define snap 20040625 | |
6 | Version: 0.0.0.%{snap}.1 | |
7 | Release: 1 | |
8 | License: GPL | |
9 | Group: Applications/System | |
10 | Source0: %{name}.tar.gz | |
11 | # Source0-md5: 76edec5d961fd1cf46ccac2b7b006f37 | |
12 | URL: http://sources.redhat.com/cluster/ | |
13 | BuildRequires: ccs-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _sbindir /sbin | |
17 | ||
18 | %description | |
19 | MAN is a symmetric, general-purpose, kernel-based cluster manager. It | |
20 | has two parts. Connection Manager (cnxman) handles membership, | |
21 | messaging, quorum, event notification and transitions. Service Manager | |
22 | (sm) handles "service groups" which are a general way of representing | |
23 | and managing instances of external systems that require cluster | |
24 | management. The CMAN cluster manager is the foundational system upon | |
25 | which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel | |
26 | and userspace is general and available for other programs to use. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{name} | |
30 | ||
31 | %build | |
32 | ./configure \ | |
33 | --incdir=%{_includedir} \ | |
34 | --kernel_src=%{_kernelsrcdir} \ | |
35 | --libdir=%{_libdir} \ | |
36 | --mandir=%{_mandir} \ | |
37 | --prefix=%{_prefix} \ | |
38 | --sbindir=%{_sbindir} | |
39 | %{__make} \ | |
40 | CC="%{__cc}" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_sbindir}/* |