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