]>
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 | |
7afd4195 | 7 | Version: 1.0.9 |
d0629c9d | 8 | Release: 4 |
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 | |
7afd4195 | 13 | # Source0-md5: da2cbe949b0614cc3ce910f3caa34603 |
59ce45c9 | 14 | Patch0: %{name}-glib_includes.patch |
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 | |
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 |
1c6f7a24 ER |
38 | Requires(post,preun): /sbin/chkconfig |
39 | Requires(postun): /usr/sbin/groupdel | |
40 | Requires(postun): /usr/sbin/userdel | |
41 | Requires(pre): /bin/id | |
42 | Requires(pre): /usr/bin/getgid | |
43 | Requires(pre): /usr/sbin/groupadd | |
44 | Requires(pre): /usr/sbin/useradd | |
fcfe851d | 45 | Requires: %{name}-libs = %{version}-%{release} |
6badcd29 | 46 | Requires: perl-TimeDate |
1c6f7a24 ER |
47 | Requires: rc-scripts |
48 | Provides: group(haclient) | |
49 | Provides: user(hacluster) | |
6badcd29 ER |
50 | # Directives to allow upgrade from combined heartbeat packages |
51 | Provides: heartbeat-pils = 3.0.0-1 | |
6badcd29 ER |
52 | Obsoletes: heartbeat-common |
53 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
6badcd29 ER |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
ad5b8def ER |
56 | %define filterout_ld -Wl,--as-needed |
57 | ||
6badcd29 ER |
58 | %description |
59 | A collection of common tools that are useful for writing cluster | |
60 | managers such as Pacemaker. Provides a local resource manager that | |
61 | understands the OCF and LSB standards, and an interface to common | |
62 | STONITH devices. | |
63 | ||
64 | %package libs | |
65 | Summary: Reusable cluster libraries | |
66 | Group: Development/Libraries | |
6badcd29 ER |
67 | Obsoletes: libheartbeat2 |
68 | ||
69 | %description libs | |
70 | A collection of libraries that are useful for writing cluster managers | |
71 | such as Pacemaker. | |
72 | ||
73 | %package libs-devel | |
74 | Summary: Headers and libraries for writing cluster managers | |
75 | Group: Development/Libraries | |
6badcd29 ER |
76 | Requires: %{name}-libs = %{version}-%{release} |
77 | Obsoletes: libheartbeat-devel | |
78 | ||
79 | %description libs-devel | |
80 | Headers and shared libraries for a useful for writing cluster managers | |
81 | such as Pacemaker. | |
82 | ||
e49277ef ER |
83 | %package stonith |
84 | Summary: Provides an interface to Shoot The Other Node In The Head | |
85 | Summary(pl.UTF-8): Interfejs do "odstrzelenia" drugiego węzła w klastrze | |
86 | Group: Applications/System | |
87 | Requires: OpenIPMI >= 2.0.3 | |
88 | Provides: heartbeat-stonith = 3.0.0-1 | |
89 | Obsoletes: heartbeat-stonith < 3.0.0-1 | |
90 | ||
91 | %description stonith | |
92 | Provides an interface to Shoot The Other Node In The Head. | |
93 | ||
94 | %description stonith -l pl.UTF-8 | |
95 | STONITH (Shoot The Other Node In The Head) to interfejs służący do | |
96 | "odstrzelenia" drugiego węzła w klastrze. | |
97 | ||
6badcd29 | 98 | %prep |
766e6f1d | 99 | %setup -q -n Reusable-Cluster-Components-glue--glue-%{version} |
6badcd29 | 100 | |
59ce45c9 JK |
101 | %patch0 -p1 |
102 | ||
6badcd29 ER |
103 | %build |
104 | %{__libtoolize} | |
105 | %{__aclocal} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | %{__autoconf} | |
6badcd29 | 109 | %configure \ |
ad5b8def | 110 | --with-initdir=/etc/rc.d/init.d \ |
2c07a667 | 111 | --disable-fatal-warnings \ |
6badcd29 ER |
112 | --with-daemon-group=haclient \ |
113 | --with-daemon-user=hacluster\ | |
be8e662f ER |
114 | --docdir=%{_docdir}/%{name}-%{version} \ |
115 | --disable-static | |
116 | %{__make} | |
6badcd29 ER |
117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
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 | |
4d9c7dfe ER |
177 | %attr(755,root,root) %{_libdir}/heartbeat/lrmd |
178 | %attr(755,root,root) %{_libdir}/heartbeat/ha_logd | |
179 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/InterfaceMgr/generic.so | |
180 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/heartbeat.so | |
181 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/lsb.so | |
182 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/ocf.so | |
ad5b8def | 183 | |
e49277ef ER |
184 | %dir /var/lib/heartbeat |
185 | %attr(711,root,root) %dir /var/lib/heartbeat/cores | |
186 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/root | |
187 | %attr(700,hacluster,root) %dir /var/lib/heartbeat/cores/hacluster | |
188 | # we don't want any files owned by nobody | |
189 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/nobody | |
ad5b8def ER |
190 | |
191 | %files libs | |
192 | %defattr(644,root,root,755) | |
4d9c7dfe ER |
193 | %attr(755,root,root) %{_libdir}/liblrm.so.*.*.* |
194 | %attr(755,root,root) %ghost %{_libdir}/liblrm.so.2 | |
195 | %attr(755,root,root) %{_libdir}/libpils.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libpils.so.2 | |
197 | %attr(755,root,root) %{_libdir}/libplumb.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libplumb.so.2 | |
199 | %attr(755,root,root) %{_libdir}/libplumbgpl.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libplumbgpl.so.2 | |
201 | %attr(755,root,root) %{_libdir}/libstonith.so.*.*.* | |
202 | %attr(755,root,root) %ghost %{_libdir}/libstonith.so.1 | |
12e28aec JK |
203 | %dir %{_libdir}/heartbeat |
204 | %dir %{_libdir}/heartbeat/plugins | |
205 | %dir %{_includedir}/heartbeat | |
ad5b8def ER |
206 | |
207 | %files libs-devel | |
208 | %defattr(644,root,root,755) | |
4d9c7dfe ER |
209 | %attr(755,root,root) %{_libdir}/liblrm.so |
210 | %attr(755,root,root) %{_libdir}/libpils.so | |
211 | %attr(755,root,root) %{_libdir}/libplumb.so | |
212 | %attr(755,root,root) %{_libdir}/libplumbgpl.so | |
213 | %attr(755,root,root) %{_libdir}/libstonith.so | |
ad5b8def | 214 | %{_includedir}/clplumbing |
12e28aec | 215 | %{_includedir}/heartbeat/* |
ad5b8def ER |
216 | %{_includedir}/stonith |
217 | %{_includedir}/pils | |
218 | ||
4d9c7dfe ER |
219 | %attr(755,root,root) %{_libdir}/heartbeat/ipctest |
220 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientclient | |
221 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientserver | |
222 | %attr(755,root,root) %{_libdir}/heartbeat/transient-test.sh | |
223 | %attr(755,root,root) %{_libdir}/heartbeat/base64_md5_test | |
224 | %attr(755,root,root) %{_libdir}/heartbeat/logtest | |
225 | ||
ad5b8def | 226 | %dir %{_libdir}/heartbeat/plugins/test |
4d9c7dfe | 227 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/test/test.so |
ad5b8def ER |
228 | |
229 | %dir %{_datadir}/%{name} | |
4d9c7dfe ER |
230 | %dir %{_datadir}/%{name}/lrmtest |
231 | %{_datadir}/%{name}/lrmtest/README.regression | |
232 | %{_datadir}/%{name}/lrmtest/defaults | |
233 | %{_datadir}/%{name}/lrmtest/descriptions | |
234 | %{_datadir}/%{name}/lrmtest/language | |
235 | %{_datadir}/%{name}/lrmtest/lrmadmin-interface | |
236 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/LRMBasicSanityCheck | |
237 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/lrmregtest* | |
238 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/*.sh | |
239 | ||
240 | %dir %{_datadir}/%{name}/lrmtest/testcases | |
241 | %{_datadir}/%{name}/lrmtest/testcases/BSC | |
242 | %{_datadir}/%{name}/lrmtest/testcases/basicset | |
243 | %{_datadir}/%{name}/lrmtest/testcases/metadata | |
244 | %{_datadir}/%{name}/lrmtest/testcases/metadata.exp | |
245 | %{_datadir}/%{name}/lrmtest/testcases/rscexec | |
246 | %{_datadir}/%{name}/lrmtest/testcases/rscexec.exp | |
247 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt | |
248 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt.exp | |
59ce45c9 JK |
249 | %{_datadir}/%{name}/lrmtest/testcases/stonith |
250 | %{_datadir}/%{name}/lrmtest/testcases/stonith.exp | |
4d9c7dfe ER |
251 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*filter |
252 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*.sh | |
e49277ef ER |
253 | |
254 | %files stonith | |
fcfe851d | 255 | %defattr(644,root,root,755) |
e49277ef ER |
256 | %doc doc/stonith/README* |
257 | %attr(755,root,root) %{_sbindir}/stonith | |
258 | %{_mandir}/man8/stonith.8* | |
259 | %dir %{_libdir}/stonith | |
260 | %dir %{_libdir}/stonith/plugins | |
261 | %dir %{_libdir}/stonith/plugins/stonith2 | |
262 | %{_libdir}/stonith/plugins/external | |
263 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/*.so | |
264 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/ribcl.py | |
265 | %attr(755,root,root) %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper |