]>
Commit | Line | Data |
---|---|---|
01ea2d51 JK |
1 | # |
2 | # TODO: | |
3 | # - OpenAIS support | |
4 | # | |
5 | Summary: The scalable High-Availability cluster resource manager | |
6 | Name: pacemaker | |
7 | Version: 1.0.3 | |
42e76894 | 8 | Release: 1 |
01ea2d51 JK |
9 | License: GPL v2+; LGPL v2.1+ |
10 | Group: Applications/System | |
11 | Source0: http://hg.clusterlabs.org/pacemaker/stable-1.0/archive/Pacemaker-%{version}.tar.bz2 | |
12 | # Source0-md5: b377be64de0920773168bda3abf54319 | |
13 | Patch0: %{name}-ncurses.patch | |
14 | Patch1: %{name}-liborder.patch | |
15 | URL: http://clusterlabs.org/wiki/Main_Page | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bzip2-devel | |
19 | BuildRequires: e2fsprogs-devel | |
20 | BuildRequires: glib2-devel | |
21 | BuildRequires: gnutls-devel | |
22 | BuildRequires: heartbeat-devel >= 2.99 | |
23 | BuildRequires: libesmtp-devel | |
24 | BuildRequires: libtool | |
25 | BuildRequires: libxml2-devel | |
26 | BuildRequires: libxslt-devel | |
27 | BuildRequires: ncurses-devel | |
28 | BuildRequires: net-snmp-devel | |
29 | BuildRequires: pam-devel | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: python-devel | |
32 | BuildRequires: swig | |
33 | Requires: %{name}-libs = %{version}-%{release} | |
d63df87d | 34 | Requires: heartbeat |
20da0353 JK |
35 | Provides: group(haclient) |
36 | Provides: user(hacluster) | |
01ea2d51 JK |
37 | Conflicts: heartbeat < 2.99.0 |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Pacemaker makes use of your cluster infrastructure (either OpenAIS or | |
42 | Heartbeat) to stop, start and monitor the health of the services (aka. | |
43 | resources) you want the cluster to provide. | |
44 | ||
45 | It can do this for clusters of practically any size and comes with a | |
46 | powerful dependency model that allows the administrator to accurately | |
47 | express the relationships (both ordering and location) between the | |
48 | cluster resources. | |
49 | ||
50 | Pacemaker was formely a part of Heartbeat. | |
51 | ||
52 | %package libs | |
53 | Summary: Pacemaker libraries | |
54 | Group: Libraries | |
55 | ||
56 | %description libs | |
57 | Shared libraries for Pacemaker. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for Pacemaker libraries | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Pacemaker | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-libs = %{version}-%{release} | |
64 | ||
65 | %description devel | |
66 | Header files for Pacemaker libraries. | |
67 | ||
68 | %package static | |
69 | Summary: Static Pacemaker libraries | |
70 | Summary(pl.UTF-8): Statyczne biblioteki Pacemaker | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static Pacemaker libraries. | |
76 | ||
77 | %prep | |
78 | %setup -qn Pacemaker-1-0-Pacemaker-%{version} | |
79 | %patch0 -p1 | |
80 | %patch1 -p1 | |
81 | ||
82 | %build | |
83 | %{__libtoolize} | |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | ||
89 | %configure \ | |
90 | --with-heartbeat \ | |
91 | --without-ais \ | |
92 | --with-snmp \ | |
93 | --with-esmtp \ | |
94 | --disable-fatal-warnings | |
95 | ||
96 | %{__make} | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
104 | rm -r $RPM_BUILD_ROOT%{_docdir}/packages | |
c57367ae | 105 | rm $RPM_BUILD_ROOT%{_libdir}/heartbeat/plugins/RAExec/*.{la,a} |
01ea2d51 JK |
106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
20da0353 JK |
110 | %pre |
111 | %groupadd -g 60 haclient | |
112 | %useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster | |
113 | ||
01ea2d51 JK |
114 | %files |
115 | %defattr(644,root,root,755) | |
116 | %doc doc/README* doc/*.html doc/*.txt doc/AUTHORS doc/Design | |
117 | %{_datadir}/pacemaker | |
c57367ae JK |
118 | %dir %{_libdir}/heartbeat/plugins/RAExec |
119 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/*.so | |
120 | %dir %{_libdir}/heartbeat/stonithdtest | |
121 | %attr(755,root,root) %{_libdir}/heartbeat/stonithdtest/apitest | |
122 | %attr(755,root,root) %{_libdir}/heartbeat/atest | |
123 | %attr(755,root,root) %{_libdir}/heartbeat/attrd | |
124 | %attr(755,root,root) %{_libdir}/heartbeat/cib | |
125 | %attr(755,root,root) %{_libdir}/heartbeat/cibmon | |
126 | %attr(755,root,root) %{_libdir}/heartbeat/crmd | |
127 | %attr(755,root,root) %{_libdir}/heartbeat/haresources2cib.py | |
128 | %attr(755,root,root) %{_libdir}/heartbeat/hb2openais.sh | |
129 | %attr(755,root,root) %{_libdir}/heartbeat/pengine | |
130 | %attr(755,root,root) %{_libdir}/heartbeat/pingd | |
131 | %attr(755,root,root) %{_libdir}/heartbeat/stonithd | |
132 | %{_libdir}/heartbeat/crm_primitive.py | |
133 | %{_libdir}/heartbeat/hb2openais-helper.py | |
134 | %{_libdir}/heartbeat/*.py[co] | |
135 | ||
01ea2d51 JK |
136 | %attr(755,root,root) %{_sbindir}/cibadmin |
137 | %attr(755,root,root) %{_sbindir}/crm_attribute | |
138 | %attr(755,root,root) %{_sbindir}/crm_diff | |
139 | %attr(755,root,root) %{_sbindir}/crm_failcount | |
140 | %attr(755,root,root) %{_sbindir}/crm_master | |
141 | %attr(755,root,root) %{_sbindir}/crm_mon | |
142 | %attr(755,root,root) %{_sbindir}/crm | |
143 | %attr(755,root,root) %{_sbindir}/crm_resource | |
144 | %attr(755,root,root) %{_sbindir}/crm_standby | |
145 | %attr(755,root,root) %{_sbindir}/crm_verify | |
146 | %attr(755,root,root) %{_sbindir}/crmadmin | |
147 | %attr(755,root,root) %{_sbindir}/iso8601 | |
148 | %attr(755,root,root) %{_sbindir}/attrd_updater | |
149 | %attr(755,root,root) %{_sbindir}/ptest | |
150 | %attr(755,root,root) %{_sbindir}/crm_shadow | |
151 | %attr(755,root,root) %{_sbindir}/cibpipe | |
152 | %attr(755,root,root) %{_sbindir}/crm_node | |
153 | %attr(755,root,root) %{_sbindir}/crm_uuid | |
154 | %{_mandir}/man8/*.8* | |
155 | %dir %attr(750,hacluster,haclient) %{_var}/lib/heartbeat/crm | |
156 | %dir %attr(750,hacluster,haclient) %{_var}/lib/pengine | |
157 | %dir %attr(750,hacluster,haclient) %{_var}/run/crm | |
42e76894 | 158 | %attr(755,root,root) %{_libdir}/ocf/resource.d/pacemaker |
01ea2d51 JK |
159 | #%{_libexecdir}/lcrso/pacemaker.lcrso |
160 | ||
161 | %files libs | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
164 | %attr(755,root,root) %{_libdir}/lib*.so.[0-9] | |
165 | ||
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
168 | %{_includedir}/pacemaker | |
169 | %{_includedir}/heartbeat/fencing | |
170 | %{_libdir}/*.so | |
171 | %{_libdir}/*.la | |
172 | ||
173 | %files static | |
174 | %defattr(644,root,root,755) | |
175 | %{_libdir}/*.a |