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