]>
Commit | Line | Data |
---|---|---|
ad5b8def | 1 | # TODO |
4d9c7dfe | 2 | # - tests packaged in -devel to own pkg or just rm -rf |
1c6f7a24 | 3 | # - pldize ha_logd initscript (look heartbeat.init?) |
e49277ef | 4 | # - stonith-libs? pils? |
6badcd29 ER |
5 | Summary: Reusable cluster components |
6 | Name: cluster-glue | |
fe303807 | 7 | Version: 1.0.11 |
ba2cbcb1 | 8 | Release: 2 |
ad5b8def | 9 | License: GPL v2+ and LGPL v2+ |
6badcd29 | 10 | Group: Base |
2c07a667 JK |
11 | URL: http://www.linux-ha.org/ |
12 | Source0: http://hg.linux-ha.org/glue/archive/glue-%{version}.tar.bz2 | |
fe303807 | 13 | # Source0-md5: 7d0acd99d43edac849dc76f43cfa4c7f |
c65ec4ed | 14 | Source1: logd.service |
6badcd29 ER |
15 | BuildRequires: OpenIPMI-devel |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bzip2-devel | |
19 | BuildRequires: curl-devel | |
0f3873cf | 20 | BuildRequires: docbook-dtd42-xml |
89b15d29 | 21 | BuildRequires: docbook-dtd44-xml |
6badcd29 ER |
22 | BuildRequires: docbook-style-xsl |
23 | BuildRequires: glib2-devel | |
fe303807 | 24 | BuildRequires: libaio-devel |
6badcd29 ER |
25 | BuildRequires: libltdl-devel |
26 | BuildRequires: libnet-devel | |
27 | BuildRequires: libstdc++-devel | |
28 | BuildRequires: libtool | |
29 | BuildRequires: libuuid-devel | |
30 | BuildRequires: libxml2-devel | |
89b15d29 | 31 | BuildRequires: libxslt-progs |
32 | BuildRequires: ncurses-devel | |
6badcd29 ER |
33 | BuildRequires: net-snmp-devel >= 5.4 |
34 | BuildRequires: openhpi-devel | |
35 | BuildRequires: openssl-devel | |
36 | BuildRequires: pkgconfig | |
37 | BuildRequires: python-devel | |
89b15d29 | 38 | BuildRequires: rpm-pythonprov |
fe303807 | 39 | BuildRequires: zlib-devel |
1c6f7a24 ER |
40 | Requires(post,preun): /sbin/chkconfig |
41 | Requires(postun): /usr/sbin/groupdel | |
42 | Requires(postun): /usr/sbin/userdel | |
43 | Requires(pre): /bin/id | |
44 | Requires(pre): /usr/bin/getgid | |
45 | Requires(pre): /usr/sbin/groupadd | |
46 | Requires(pre): /usr/sbin/useradd | |
c65ec4ed JK |
47 | Requires(post,preun,postun): systemd-units |
48 | Requires: systemd-units | |
fcfe851d | 49 | Requires: %{name}-libs = %{version}-%{release} |
6badcd29 | 50 | Requires: perl-TimeDate |
1c6f7a24 ER |
51 | Requires: rc-scripts |
52 | Provides: group(haclient) | |
53 | Provides: user(hacluster) | |
6badcd29 ER |
54 | # Directives to allow upgrade from combined heartbeat packages |
55 | Provides: heartbeat-pils = 3.0.0-1 | |
6badcd29 ER |
56 | Obsoletes: heartbeat-common |
57 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
6badcd29 ER |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
ad5b8def ER |
60 | %define filterout_ld -Wl,--as-needed |
61 | ||
6badcd29 ER |
62 | %description |
63 | A collection of common tools that are useful for writing cluster | |
64 | managers such as Pacemaker. Provides a local resource manager that | |
65 | understands the OCF and LSB standards, and an interface to common | |
66 | STONITH devices. | |
67 | ||
68 | %package libs | |
69 | Summary: Reusable cluster libraries | |
70 | Group: Development/Libraries | |
6badcd29 ER |
71 | Obsoletes: libheartbeat2 |
72 | ||
73 | %description libs | |
74 | A collection of libraries that are useful for writing cluster managers | |
75 | such as Pacemaker. | |
76 | ||
77 | %package libs-devel | |
78 | Summary: Headers and libraries for writing cluster managers | |
79 | Group: Development/Libraries | |
6badcd29 ER |
80 | Requires: %{name}-libs = %{version}-%{release} |
81 | Obsoletes: libheartbeat-devel | |
82 | ||
83 | %description libs-devel | |
84 | Headers and shared libraries for a useful for writing cluster managers | |
85 | such as Pacemaker. | |
86 | ||
e49277ef ER |
87 | %package stonith |
88 | Summary: Provides an interface to Shoot The Other Node In The Head | |
89 | Summary(pl.UTF-8): Interfejs do "odstrzelenia" drugiego węzła w klastrze | |
90 | Group: Applications/System | |
91 | Requires: OpenIPMI >= 2.0.3 | |
92 | Provides: heartbeat-stonith = 3.0.0-1 | |
93 | Obsoletes: heartbeat-stonith < 3.0.0-1 | |
94 | ||
95 | %description stonith | |
96 | Provides an interface to Shoot The Other Node In The Head. | |
97 | ||
98 | %description stonith -l pl.UTF-8 | |
99 | STONITH (Shoot The Other Node In The Head) to interfejs służący do | |
100 | "odstrzelenia" drugiego węzła w klastrze. | |
101 | ||
6badcd29 | 102 | %prep |
766e6f1d | 103 | %setup -q -n Reusable-Cluster-Components-glue--glue-%{version} |
6badcd29 ER |
104 | |
105 | %build | |
106 | %{__libtoolize} | |
107 | %{__aclocal} | |
108 | %{__autoheader} | |
109 | %{__automake} | |
110 | %{__autoconf} | |
6badcd29 | 111 | %configure \ |
ad5b8def | 112 | --with-initdir=/etc/rc.d/init.d \ |
2c07a667 | 113 | --disable-fatal-warnings \ |
6badcd29 ER |
114 | --with-daemon-group=haclient \ |
115 | --with-daemon-user=hacluster\ | |
be8e662f ER |
116 | --docdir=%{_docdir}/%{name}-%{version} \ |
117 | --disable-static | |
118 | %{__make} | |
6badcd29 ER |
119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
c65ec4ed | 122 | install -d $RPM_BUILD_ROOT%{systemdunitdir} |
fe303807 | 123 | |
6badcd29 ER |
124 | %{__make} install \ |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
be8e662f | 127 | find $RPM_BUILD_ROOT -name '*.la' -delete |
6badcd29 | 128 | |
c65ec4ed JK |
129 | %{__sed} -e's;@libdir@;%{_libdir};g' \ |
130 | %{SOURCE1} > $RPM_BUILD_ROOT%{systemdunitdir}/logd.service | |
131 | ||
6badcd29 ER |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
1c6f7a24 ER |
135 | %pre |
136 | %groupadd -g 60 haclient | |
137 | %useradd -u 17 -d /var/lib/heartbeat/cores/hacluster -c "Heartbeat User" -g haclient hacluster | |
138 | ||
139 | %post | |
140 | /sbin/chkconfig --add logd | |
141 | %service logd restart | |
c65ec4ed | 142 | %systemd_post logd.service |
1c6f7a24 ER |
143 | |
144 | %preun | |
145 | if [ "$1" = "0" ]; then | |
146 | %service -q logd stop | |
147 | /sbin/chkconfig --del logd | |
148 | fi | |
c65ec4ed | 149 | %systemd_preun logd.service |
1c6f7a24 ER |
150 | |
151 | %postun | |
152 | if [ "$1" = "0" ]; then | |
153 | %userremove hacluster | |
154 | %groupremove haclient | |
155 | fi | |
c65ec4ed | 156 | %systemd_reload |
1c6f7a24 | 157 | |
6badcd29 ER |
158 | %post libs -p /sbin/ldconfig |
159 | %postun libs -p /sbin/ldconfig | |
160 | ||
161 | %files | |
162 | %defattr(644,root,root,755) | |
e49277ef | 163 | %doc AUTHORS logd/logd.cf |
ad5b8def | 164 | %attr(754,root,root) /etc/rc.d/init.d/logd |
c65ec4ed | 165 | %{systemdunitdir}/logd.service |
ad5b8def ER |
166 | |
167 | %attr(755,root,root) %{_sbindir}/ha_logger | |
168 | %attr(755,root,root) %{_sbindir}/hb_report | |
169 | %attr(755,root,root) %{_sbindir}/lrmadmin | |
170 | %attr(755,root,root) %{_sbindir}/meatclient | |
ad5b8def | 171 | %attr(755,root,root) %{_sbindir}/sbd |
a0cd9982 | 172 | %attr(755,root,root) %{_sbindir}/cibsecret |
4d9c7dfe ER |
173 | %{_mandir}/man1/ha_logger.1* |
174 | %{_mandir}/man8/ha_logd.8* | |
175 | %{_mandir}/man8/hb_report.8* | |
7afd4195 | 176 | %{_mandir}/man8/lrmadmin.8* |
4d9c7dfe | 177 | %{_mandir}/man8/meatclient.8* |
ad5b8def ER |
178 | |
179 | %dir %{_datadir}/%{name} | |
4d9c7dfe ER |
180 | %attr(755,root,root) %{_datadir}/%{name}/ha_cf_support.sh |
181 | %attr(755,root,root) %{_datadir}/%{name}/openais_conf_support.sh | |
182 | %attr(755,root,root) %{_datadir}/%{name}/utillib.sh | |
183 | %attr(755,root,root) %{_datadir}/%{name}/combine-logs.pl | |
184 | %attr(755,root,root) %{_datadir}/%{name}/ha_log.sh | |
ad5b8def | 185 | |
ad5b8def ER |
186 | %dir %{_libdir}/heartbeat/plugins/RAExec |
187 | %dir %{_libdir}/heartbeat/plugins/InterfaceMgr | |
fe303807 | 188 | %dir %{_libdir}/heartbeat/plugins/compress |
4d9c7dfe ER |
189 | %attr(755,root,root) %{_libdir}/heartbeat/lrmd |
190 | %attr(755,root,root) %{_libdir}/heartbeat/ha_logd | |
191 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/InterfaceMgr/generic.so | |
192 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/heartbeat.so | |
193 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/lsb.so | |
194 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/ocf.so | |
fe303807 JK |
195 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/compress/bz2.so |
196 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/compress/zlib.so | |
ad5b8def | 197 | |
e49277ef ER |
198 | %dir /var/lib/heartbeat |
199 | %attr(711,root,root) %dir /var/lib/heartbeat/cores | |
200 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/root | |
201 | %attr(700,hacluster,root) %dir /var/lib/heartbeat/cores/hacluster | |
202 | # we don't want any files owned by nobody | |
203 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/nobody | |
ad5b8def ER |
204 | |
205 | %files libs | |
206 | %defattr(644,root,root,755) | |
4d9c7dfe ER |
207 | %attr(755,root,root) %{_libdir}/liblrm.so.*.*.* |
208 | %attr(755,root,root) %ghost %{_libdir}/liblrm.so.2 | |
209 | %attr(755,root,root) %{_libdir}/libpils.so.*.*.* | |
210 | %attr(755,root,root) %ghost %{_libdir}/libpils.so.2 | |
211 | %attr(755,root,root) %{_libdir}/libplumb.so.*.*.* | |
212 | %attr(755,root,root) %ghost %{_libdir}/libplumb.so.2 | |
213 | %attr(755,root,root) %{_libdir}/libplumbgpl.so.*.*.* | |
214 | %attr(755,root,root) %ghost %{_libdir}/libplumbgpl.so.2 | |
215 | %attr(755,root,root) %{_libdir}/libstonith.so.*.*.* | |
216 | %attr(755,root,root) %ghost %{_libdir}/libstonith.so.1 | |
12e28aec JK |
217 | %dir %{_libdir}/heartbeat |
218 | %dir %{_libdir}/heartbeat/plugins | |
219 | %dir %{_includedir}/heartbeat | |
ad5b8def ER |
220 | |
221 | %files libs-devel | |
222 | %defattr(644,root,root,755) | |
4d9c7dfe ER |
223 | %attr(755,root,root) %{_libdir}/liblrm.so |
224 | %attr(755,root,root) %{_libdir}/libpils.so | |
225 | %attr(755,root,root) %{_libdir}/libplumb.so | |
226 | %attr(755,root,root) %{_libdir}/libplumbgpl.so | |
227 | %attr(755,root,root) %{_libdir}/libstonith.so | |
ad5b8def | 228 | %{_includedir}/clplumbing |
12e28aec | 229 | %{_includedir}/heartbeat/* |
ad5b8def ER |
230 | %{_includedir}/stonith |
231 | %{_includedir}/pils | |
232 | ||
4d9c7dfe ER |
233 | %attr(755,root,root) %{_libdir}/heartbeat/ipctest |
234 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientclient | |
235 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientserver | |
236 | %attr(755,root,root) %{_libdir}/heartbeat/transient-test.sh | |
237 | %attr(755,root,root) %{_libdir}/heartbeat/base64_md5_test | |
238 | %attr(755,root,root) %{_libdir}/heartbeat/logtest | |
239 | ||
ad5b8def | 240 | %dir %{_libdir}/heartbeat/plugins/test |
4d9c7dfe | 241 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/test/test.so |
ad5b8def ER |
242 | |
243 | %dir %{_datadir}/%{name} | |
4d9c7dfe ER |
244 | %dir %{_datadir}/%{name}/lrmtest |
245 | %{_datadir}/%{name}/lrmtest/README.regression | |
246 | %{_datadir}/%{name}/lrmtest/defaults | |
247 | %{_datadir}/%{name}/lrmtest/descriptions | |
248 | %{_datadir}/%{name}/lrmtest/language | |
249 | %{_datadir}/%{name}/lrmtest/lrmadmin-interface | |
250 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/LRMBasicSanityCheck | |
251 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/lrmregtest* | |
252 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/*.sh | |
253 | ||
254 | %dir %{_datadir}/%{name}/lrmtest/testcases | |
255 | %{_datadir}/%{name}/lrmtest/testcases/BSC | |
256 | %{_datadir}/%{name}/lrmtest/testcases/basicset | |
257 | %{_datadir}/%{name}/lrmtest/testcases/metadata | |
258 | %{_datadir}/%{name}/lrmtest/testcases/metadata.exp | |
259 | %{_datadir}/%{name}/lrmtest/testcases/rscexec | |
260 | %{_datadir}/%{name}/lrmtest/testcases/rscexec.exp | |
261 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt | |
262 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt.exp | |
59ce45c9 JK |
263 | %{_datadir}/%{name}/lrmtest/testcases/stonith |
264 | %{_datadir}/%{name}/lrmtest/testcases/stonith.exp | |
4d9c7dfe ER |
265 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*filter |
266 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*.sh | |
e49277ef ER |
267 | |
268 | %files stonith | |
fcfe851d | 269 | %defattr(644,root,root,755) |
e49277ef ER |
270 | %doc doc/stonith/README* |
271 | %attr(755,root,root) %{_sbindir}/stonith | |
272 | %{_mandir}/man8/stonith.8* | |
273 | %dir %{_libdir}/stonith | |
274 | %dir %{_libdir}/stonith/plugins | |
ba2cbcb1 JK |
275 | %dir %{_libdir}/stonith/plugins/external |
276 | %attr(755,root,root) %{_libdir}/stonith/plugins/external | |
e49277ef | 277 | %dir %{_libdir}/stonith/plugins/stonith2 |
e49277ef ER |
278 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/*.so |
279 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/ribcl.py | |
280 | %attr(755,root,root) %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper |