]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - tests packaged in -devel to own pkg or just rm -rf | |
3 | # - pldize ha_logd initscript (look heartbeat.init?) | |
4 | # - stonith-libs? pils? | |
5 | Summary: Reusable cluster components | |
6 | Name: cluster-glue | |
7 | Version: 1.0.9 | |
8 | Release: 4 | |
9 | License: GPL v2+ and LGPL v2+ | |
10 | Group: Base | |
11 | URL: http://www.linux-ha.org/ | |
12 | Source0: http://hg.linux-ha.org/glue/archive/glue-%{version}.tar.bz2 | |
13 | # Source0-md5: da2cbe949b0614cc3ce910f3caa34603 | |
14 | Patch0: %{name}-glib_includes.patch | |
15 | BuildRequires: OpenIPMI-devel | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: bzip2-devel | |
19 | BuildRequires: curl-devel | |
20 | BuildRequires: docbook-dtd42-xml | |
21 | BuildRequires: docbook-dtd44-xml | |
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 | |
30 | BuildRequires: libxslt-progs | |
31 | BuildRequires: ncurses-devel | |
32 | BuildRequires: net-snmp-devel >= 5.4 | |
33 | BuildRequires: openhpi-devel | |
34 | BuildRequires: openssl-devel | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: python-devel | |
37 | BuildRequires: rpm-pythonprov | |
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 | |
45 | Requires: %{name}-libs = %{version}-%{release} | |
46 | Requires: perl-TimeDate | |
47 | Requires: rc-scripts | |
48 | Provides: group(haclient) | |
49 | Provides: user(hacluster) | |
50 | # Directives to allow upgrade from combined heartbeat packages | |
51 | Provides: heartbeat-pils = 3.0.0-1 | |
52 | Obsoletes: heartbeat-common | |
53 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %define filterout_ld -Wl,--as-needed | |
57 | ||
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 | |
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 | |
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 | ||
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 | ||
98 | %prep | |
99 | %setup -q -n Reusable-Cluster-Components-glue--glue-%{version} | |
100 | ||
101 | %patch0 -p1 | |
102 | ||
103 | %build | |
104 | %{__libtoolize} | |
105 | %{__aclocal} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | %{__autoconf} | |
109 | %configure \ | |
110 | --with-initdir=/etc/rc.d/init.d \ | |
111 | --disable-fatal-warnings \ | |
112 | --with-daemon-group=haclient \ | |
113 | --with-daemon-user=hacluster\ | |
114 | --docdir=%{_docdir}/%{name}-%{version} \ | |
115 | --disable-static | |
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | %{__make} install \ | |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
123 | find $RPM_BUILD_ROOT -name '*.la' -delete | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
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 | ||
148 | %post libs -p /sbin/ldconfig | |
149 | %postun libs -p /sbin/ldconfig | |
150 | ||
151 | %files | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS logd/logd.cf | |
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 | |
160 | %attr(755,root,root) %{_sbindir}/sbd | |
161 | %attr(755,root,root) %{_sbindir}/cibsecret | |
162 | %{_mandir}/man1/ha_logger.1* | |
163 | %{_mandir}/man8/ha_logd.8* | |
164 | %{_mandir}/man8/hb_report.8* | |
165 | %{_mandir}/man8/lrmadmin.8* | |
166 | %{_mandir}/man8/meatclient.8* | |
167 | ||
168 | %dir %{_datadir}/%{name} | |
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 | |
174 | ||
175 | %dir %{_libdir}/heartbeat | |
176 | %dir %{_libdir}/heartbeat/plugins | |
177 | %dir %{_libdir}/heartbeat/plugins/RAExec | |
178 | %dir %{_libdir}/heartbeat/plugins/InterfaceMgr | |
179 | %attr(755,root,root) %{_libdir}/heartbeat/lrmd | |
180 | %attr(755,root,root) %{_libdir}/heartbeat/ha_logd | |
181 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/InterfaceMgr/generic.so | |
182 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/heartbeat.so | |
183 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/lsb.so | |
184 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/RAExec/ocf.so | |
185 | ||
186 | %dir /var/lib/heartbeat | |
187 | %attr(711,root,root) %dir /var/lib/heartbeat/cores | |
188 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/root | |
189 | %attr(700,hacluster,root) %dir /var/lib/heartbeat/cores/hacluster | |
190 | # we don't want any files owned by nobody | |
191 | %attr(700,root,root) %dir /var/lib/heartbeat/cores/nobody | |
192 | ||
193 | %files libs | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/liblrm.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/liblrm.so.2 | |
197 | %attr(755,root,root) %{_libdir}/libpils.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libpils.so.2 | |
199 | %attr(755,root,root) %{_libdir}/libplumb.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libplumb.so.2 | |
201 | %attr(755,root,root) %{_libdir}/libplumbgpl.so.*.*.* | |
202 | %attr(755,root,root) %ghost %{_libdir}/libplumbgpl.so.2 | |
203 | %attr(755,root,root) %{_libdir}/libstonith.so.*.*.* | |
204 | %attr(755,root,root) %ghost %{_libdir}/libstonith.so.1 | |
205 | ||
206 | %files libs-devel | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_libdir}/liblrm.so | |
209 | %attr(755,root,root) %{_libdir}/libpils.so | |
210 | %attr(755,root,root) %{_libdir}/libplumb.so | |
211 | %attr(755,root,root) %{_libdir}/libplumbgpl.so | |
212 | %attr(755,root,root) %{_libdir}/libstonith.so | |
213 | %{_includedir}/clplumbing | |
214 | %{_includedir}/heartbeat | |
215 | %{_includedir}/stonith | |
216 | %{_includedir}/pils | |
217 | ||
218 | %dir %{_libdir}/heartbeat | |
219 | %dir %{_libdir}/heartbeat/plugins | |
220 | %attr(755,root,root) %{_libdir}/heartbeat/ipctest | |
221 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientclient | |
222 | %attr(755,root,root) %{_libdir}/heartbeat/ipctransientserver | |
223 | %attr(755,root,root) %{_libdir}/heartbeat/transient-test.sh | |
224 | %attr(755,root,root) %{_libdir}/heartbeat/base64_md5_test | |
225 | %attr(755,root,root) %{_libdir}/heartbeat/logtest | |
226 | ||
227 | %dir %{_libdir}/heartbeat/plugins/test | |
228 | %attr(755,root,root) %{_libdir}/heartbeat/plugins/test/test.so | |
229 | ||
230 | %dir %{_datadir}/%{name} | |
231 | %dir %{_datadir}/%{name}/lrmtest | |
232 | %{_datadir}/%{name}/lrmtest/README.regression | |
233 | %{_datadir}/%{name}/lrmtest/defaults | |
234 | %{_datadir}/%{name}/lrmtest/descriptions | |
235 | %{_datadir}/%{name}/lrmtest/language | |
236 | %{_datadir}/%{name}/lrmtest/lrmadmin-interface | |
237 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/LRMBasicSanityCheck | |
238 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/lrmregtest* | |
239 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/*.sh | |
240 | ||
241 | %dir %{_datadir}/%{name}/lrmtest/testcases | |
242 | %{_datadir}/%{name}/lrmtest/testcases/BSC | |
243 | %{_datadir}/%{name}/lrmtest/testcases/basicset | |
244 | %{_datadir}/%{name}/lrmtest/testcases/metadata | |
245 | %{_datadir}/%{name}/lrmtest/testcases/metadata.exp | |
246 | %{_datadir}/%{name}/lrmtest/testcases/rscexec | |
247 | %{_datadir}/%{name}/lrmtest/testcases/rscexec.exp | |
248 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt | |
249 | %{_datadir}/%{name}/lrmtest/testcases/rscmgmt.exp | |
250 | %{_datadir}/%{name}/lrmtest/testcases/stonith | |
251 | %{_datadir}/%{name}/lrmtest/testcases/stonith.exp | |
252 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*filter | |
253 | %attr(755,root,root) %{_datadir}/%{name}/lrmtest/testcases/*.sh | |
254 | ||
255 | %files stonith | |
256 | %defattr(644,root,root,755) | |
257 | %doc doc/stonith/README* | |
258 | %attr(755,root,root) %{_sbindir}/stonith | |
259 | %{_mandir}/man8/stonith.8* | |
260 | %dir %{_libdir}/stonith | |
261 | %dir %{_libdir}/stonith/plugins | |
262 | %dir %{_libdir}/stonith/plugins/stonith2 | |
263 | %{_libdir}/stonith/plugins/external | |
264 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/*.so | |
265 | %attr(755,root,root) %{_libdir}/stonith/plugins/stonith2/ribcl.py | |
266 | %attr(755,root,root) %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper |