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