]> git.pld-linux.org Git - packages/cman.git/blame - cman.spec
- tabs in preamble
[packages/cman.git] / cman.spec
CommitLineData
762dc73d 1Summary: General-purpose symmetric cluster manager
8f0dac7b 2Summary(pl.UTF-8): Zarządca symetrycznych klastrów ogólnego przeznaczenia
cb602c2e 3Name: cman
0f160380 4Version: 1.03.00
a6bd5743 5Release: 1
c66b6748 6License: GPL v2
cb602c2e 7Group: Applications/System
a6bd5743 8Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
0f160380 9# Source0-md5: 8eea23df70d2007c4fb8c234cfea49cf
c31c0e69 10URL: http://sources.redhat.com/cluster/cman/
cb602c2e 11BuildRequires: ccs-devel
c66b6748 12BuildRequires: perl-base
cb602c2e
AM
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%define _sbindir /sbin
16
17%description
18MAN is a symmetric, general-purpose, kernel-based cluster manager. It
19has two parts. Connection Manager (cnxman) handles membership,
20messaging, quorum, event notification and transitions. Service Manager
21(sm) handles "service groups" which are a general way of representing
22and managing instances of external systems that require cluster
23management. The CMAN cluster manager is the foundational system upon
24which DLM, GFS, CLVM, and Fence all depend. The CMAN API in the kernel
25and userspace is general and available for other programs to use.
26
6153d48e
JR
27%description -l pl.UTF-8
28MAN to zarządca opartych na jądrze symetrycznych klastrów ogólnego
29przeznaczenia. Składa się z dwóch części. Zarządca połączeń
30(Connection Manager, cnxman) obsługuje członkostwo, komunikację,
31kworum, powiadamianie o zdarzeniach i przejścia. Zarządca usług
32(Service Manager, sm) obsługuje "grupy usług", które są ogólnym
33sposobem reprezentacji i zarządzania instancjami zewnętrznych systemów
34wymagających zarządzania klastrem. Zarządca klastrów CMAN to
35podstawowy system, na którym polegają DLM, GFS, CLVM i Fence. API
36CMAN-a w jądrze i przestrzeni użytkownika jest ogólne i w całości
37dostępne do wykorzystania w innych programach.
762dc73d 38
9d5dca7b
JB
39%package devel
40Summary: CMAN header files
8f0dac7b 41Summary(pl.UTF-8): Pliki nagłówkowe CMAN
9d5dca7b 42Group: Development/Libraries
4a979529 43Requires: %{name} = %{version}-%{release}
9d5dca7b
JB
44
45%description devel
46CMAN header files.
47
6153d48e
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe CMAN.
9d5dca7b 50
a6bd5743
AM
51%package static
52Summary: CMAN static library
8f0dac7b 53Summary(pl.UTF-8): Biblioteka statyczna CMAN
a6bd5743 54Group: Development/Libraries
4a979529 55Requires: %{name}-devel = %{version}-%{release}
c66b6748 56
a6bd5743
AM
57%description static
58CMAN static library.
c66b6748 59
6153d48e 60%description devel -l pl.UTF-8
a6bd5743
AM
61Biblioteka statyczna CMAN.
62
63%prep
64%setup -q -n cluster-%{version}
65install -d %{name}/include/cluster
66ln -s . %{name}/include/cluster/cluster
67install %{name}-kernel/src/cnxman-socket.h %{name}/include/cluster
68
69cd %{name}
c66b6748
JB
70%{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
71%{__perl} -pi -e 's/-g/%{rpmcflags}/' {cman_tool,tests}/Makefile
cb602c2e
AM
72
73%build
a6bd5743 74cd %{name}
cb602c2e
AM
75./configure \
76 --incdir=%{_includedir} \
cb602c2e
AM
77 --libdir=%{_libdir} \
78 --mandir=%{_mandir} \
79 --prefix=%{_prefix} \
80 --sbindir=%{_sbindir}
81%{__make} \
c66b6748
JB
82 CC="%{__cc}" \
83 incdir=`pwd`/include
cb602c2e
AM
84
85%install
86rm -rf $RPM_BUILD_ROOT
a6bd5743 87cd %{name}
cb602c2e
AM
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
9d5dca7b
JB
92install -d $RPM_BUILD_ROOT%{_includedir}/cluster
93install include/cluster/cnxman-socket.h $RPM_BUILD_ROOT%{_includedir}/cluster
94
cb602c2e
AM
95%clean
96rm -rf $RPM_BUILD_ROOT
97
4a979529
JB
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
a6bd5743 100
cb602c2e
AM
101%files
102%defattr(644,root,root,755)
103%attr(755,root,root) %{_sbindir}/*
0cbf36cb 104%attr(755,root,root) %{_libdir}/libcman.so.*.*
c66b6748 105%{_mandir}/man5/cman.5*
46f80b5f 106%{_mandir}/man5/qdisk.5*
c66b6748 107%{_mandir}/man8/cman_tool.8*
46f80b5f
JB
108%{_mandir}/man8/mkqdisk.8*
109%{_mandir}/man8/qdiskd.8*
c66b6748 110#%attr(754,root,root) /etc/rc.d/init.d/cman
46f80b5f 111#%attr(754,root,root) /etc/rc.d/init.d/qdiskd
9d5dca7b
JB
112
113%files devel
114%defattr(644,root,root,755)
115# XXX dir shared with dml-devel
116%dir %{_includedir}/cluster
a6bd5743
AM
117%{_includedir}/*.h
118%{_includedir}/cluster/*.h
0cbf36cb 119%attr(755,root,root) %{_libdir}/libcman.so
a6bd5743
AM
120
121%files static
122%defattr(644,root,root,755)
0cbf36cb 123%{_libdir}/libcman.a
This page took 0.049033 seconds and 4 git commands to generate.