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