]>
Commit | Line | Data |
---|---|---|
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' | |
8 | # - tests packaged in -devel to own pkg or just rm -rf | |
9 | # - pldize ha_logd initscript (look heartbeat.init?) | |
10 | # - stonith-libs? pils? | |
11 | Summary: Reusable cluster components | |
12 | Name: cluster-glue | |
13 | Version: 1.0.5 | |
14 | Release: 0.1 | |
15 | License: GPL v2+ and LGPL v2+ | |
16 | Group: Base | |
17 | URL: http://www.linux-ha.org/ | |
18 | Source0: http://hg.linux-ha.org/glue/archive/glue-%{version}.tar.bz2 | |
19 | # Source0-md5: 09721e2d2ab3c3fa6696b4347e31721a | |
20 | Patch0: heartbeat-no_ipmilan_test.patch | |
21 | BuildRequires: OpenIPMI-devel | |
22 | BuildRequires: autoconf | |
23 | BuildRequires: automake | |
24 | BuildRequires: bzip2-devel | |
25 | BuildRequires: curl-devel | |
26 | BuildRequires: docbook-dtd44-xml | |
27 | BuildRequires: docbook-style-xsl | |
28 | BuildRequires: glib2-devel | |
29 | BuildRequires: libltdl-devel | |
30 | BuildRequires: libnet-devel | |
31 | BuildRequires: libstdc++-devel | |
32 | BuildRequires: libtool | |
33 | BuildRequires: libuuid-devel | |
34 | BuildRequires: libxml2-devel | |
35 | BuildRequires: libxslt-progs | |
36 | BuildRequires: ncurses-devel | |
37 | BuildRequires: net-snmp-devel >= 5.4 | |
38 | BuildRequires: openhpi-devel | |
39 | BuildRequires: openssl-devel | |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: python-devel | |
42 | BuildRequires: rpm-pythonprov | |
43 | BuildRequires: which | |
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 | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
52 | Requires: perl-TimeDate | |
53 | Requires: rc-scripts | |
54 | Provides: group(haclient) | |
55 | Provides: user(hacluster) | |
56 | # Directives to allow upgrade from combined heartbeat packages | |
57 | Provides: heartbeat-pils = 3.0.0-1 | |
58 | Obsoletes: heartbeat-common | |
59 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %define filterout_ld -Wl,--as-needed | |
63 | ||
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 | |
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 | |
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 | ||
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 | ||
104 | %prep | |
105 | %setup -q -n Reusable-Cluster-Components-glue-%{version} | |
106 | %patch0 -p1 | |
107 | ||
108 | %build | |
109 | %{__libtoolize} | |
110 | %{__aclocal} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
113 | %{__autoconf} | |
114 | %configure \ | |
115 | --with-initdir=/etc/rc.d/init.d \ | |
116 | --disable-fatal-warnings \ | |
117 | --with-daemon-group=haclient \ | |
118 | --with-daemon-user=hacluster\ | |
119 | --docdir=%{_docdir}/%{name}-%{version} \ | |
120 | --disable-static | |
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
128 | find $RPM_BUILD_ROOT -name '*.la' -delete | |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
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 | ||
153 | %post libs -p /sbin/ldconfig | |
154 | %postun libs -p /sbin/ldconfig | |
155 | ||
156 | %files | |
157 | %defattr(644,root,root,755) | |
158 | %doc AUTHORS logd/logd.cf | |
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 | |
165 | %attr(755,root,root) %{_sbindir}/sbd | |
166 | %{_mandir}/man1/ha_logger.1* | |
167 | %{_mandir}/man8/ha_logd.8* | |
168 | %{_mandir}/man8/hb_report.8* | |
169 | %{_mandir}/man8/meatclient.8* | |
170 | ||
171 | %dir %{_datadir}/%{name} | |
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 | |
177 | ||
178 | %dir %{_libdir}/heartbeat | |
179 | %dir %{_libdir}/heartbeat/plugins | |
180 | %dir %{_libdir}/heartbeat/plugins/RAExec | |
181 | %dir %{_libdir}/heartbeat/plugins/InterfaceMgr | |
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 | |
188 | ||
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 | |
195 | ||
196 | %files libs | |
197 | %defattr(644,root,root,755) | |
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 | |
208 | ||
209 | %files libs-devel | |
210 | %defattr(644,root,root,755) | |
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 | |
216 | %{_includedir}/clplumbing | |
217 | %{_includedir}/heartbeat | |
218 | %{_includedir}/stonith | |
219 | %{_includedir}/pils | |
220 | ||
221 | %dir %{_libdir}/heartbeat | |
222 | %dir %{_libdir}/heartbeat/plugins | |
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 | ||
230 | %dir %{_libdir}/heartbeat/plugins/test | |
231 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/test/test.so | |
232 | ||
233 | %dir %{_datadir}/%{name} | |
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 | |
255 | ||
256 | %files stonith | |
257 | %defattr(644,root,root,755) | |
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 |