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