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