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