]>
Commit | Line | Data |
---|---|---|
3e0685c3 | 1 | # |
2 | # INFO: | |
1d7db41d | 3 | # This is work taken from the gfs2.spec and moved into a cluster-3 generation. |
4 | # Some of the old work was dropped as it had no interest to the commiter, | |
5 | # so if You're missing something, please look into gfs2.spec and update. | |
3e0685c3 | 6 | # |
7 | ||
8 | Summary: Cluster infrastructure | |
9 | Summary(pl.UTF-8): Infrastruktura klastra | |
10 | Name: cluster | |
11 | Version: 3.0.13 | |
12 | Release: 0.1 | |
13 | License: GPL v2 | |
14 | Group: Applications/System | |
1d7db41d | 15 | Source0: https://fedorahosted.org/releases/c/l/cluster/%{name}-%{version}.tar.bz2 |
3e0685c3 | 16 | # Source0-md5: d13aac279519af926894cc25722b1f9f |
17 | URL: http://sources.redhat.com/cluster/ | |
18 | BuildRequires: corosync-devel | |
19 | BuildRequires: libvirt-devel | |
20 | BuildRequires: libxml2-devel | |
21 | BuildRequires: libxslt-progs | |
3e0685c3 | 22 | BuildRequires: ncurses-devel |
3e0685c3 | 23 | BuildRequires: nspr-devel |
1d7db41d | 24 | BuildRequires: nss-devel |
25 | BuildRequires: openais-devel | |
26 | BuildRequires: openldap-devel | |
3e0685c3 | 27 | BuildRequires: perl-ExtUtils-MakeMaker |
28 | BuildRequires: python-pexpect | |
29 | BuildRequires: slang-devel | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %define _sbindir /sbin | |
33 | ||
34 | %description | |
35 | %description -l pl.UTF-8 | |
36 | ||
37 | %package ccs | |
38 | Summary: Cluster infrastructure | |
39 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 40 | Group: Applications/System |
3e0685c3 | 41 | Requires: libxml2-progs |
42 | ||
43 | %description ccs | |
1d7db41d | 44 | %description ccs -l pl.UTF-8 |
3e0685c3 | 45 | |
46 | %package ccs-devel | |
47 | Summary: Cluster infrastructure | |
48 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 49 | Group: Applications/System |
50 | Requires: %{name}-ccs-libs = %{version}-%{release} | |
3e0685c3 | 51 | |
52 | %description ccs-devel | |
1d7db41d | 53 | %description ccs-devel -l pl.UTF-8 |
3e0685c3 | 54 | |
55 | %package ccs-libs | |
56 | Summary: Cluster infrastructure | |
57 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 58 | Group: Applications/System |
3e0685c3 | 59 | |
60 | %description ccs-libs | |
1d7db41d | 61 | %description ccs-libs -l pl.UTF-8 |
3e0685c3 | 62 | |
63 | %package ccs-static | |
64 | Summary: Cluster infrastructure | |
65 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 66 | Group: Applications/System |
3e0685c3 | 67 | |
68 | %description ccs-static | |
1d7db41d | 69 | %description ccs-static -l pl.UTF-8 |
3e0685c3 | 70 | |
71 | %package cman | |
72 | Summary: Cluster infrastructure | |
73 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 74 | Group: Applications/System |
3e0685c3 | 75 | Requires: corosync |
76 | Requires: openais | |
77 | ||
78 | %description cman | |
1d7db41d | 79 | %description cman -l pl.UTF-8 |
3e0685c3 | 80 | |
81 | %package cman-devel | |
82 | Summary: Cluster infrastructure | |
83 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 84 | Group: Applications/System |
85 | Requires: %{name}-cman-libs = %{version}-%{release} | |
3e0685c3 | 86 | |
87 | %description cman-devel | |
1d7db41d | 88 | %description cman-devel -l pl.UTF-8 |
3e0685c3 | 89 | |
90 | %package cman-libs | |
91 | Summary: Cluster infrastructure | |
92 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 93 | Group: Applications/System |
3e0685c3 | 94 | |
95 | %description cman-libs | |
1d7db41d | 96 | %description cman-libs -l pl.UTF-8 |
3e0685c3 | 97 | |
98 | %package cman-static | |
99 | Summary: Cluster infrastructure | |
100 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 101 | Group: Applications/System |
3e0685c3 | 102 | |
103 | %description cman-static | |
1d7db41d | 104 | %description cman-static -l pl.UTF-8 |
3e0685c3 | 105 | |
106 | %package dlm | |
107 | Summary: Cluster infrastructure | |
108 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 109 | Group: Applications/System |
3e0685c3 | 110 | |
111 | %description dlm | |
1d7db41d | 112 | %description dlm -l pl.UTF-8 |
3e0685c3 | 113 | |
114 | %package dlm-devel | |
115 | Summary: Cluster infrastructure | |
116 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 117 | Group: Applications/System |
118 | Requires: %{name}-dlm-libs = %{version}-%{release} | |
3e0685c3 | 119 | |
120 | %description dlm-devel | |
1d7db41d | 121 | %description dlm-devel -l pl.UTF-8 |
3e0685c3 | 122 | |
123 | %package dlm-libs | |
124 | Summary: Cluster infrastructure | |
125 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 126 | Group: Applications/System |
3e0685c3 | 127 | |
128 | %description dlm-libs | |
1d7db41d | 129 | %description dlm-libs -l pl.UTF-8 |
3e0685c3 | 130 | |
131 | %package dlm-static | |
132 | Summary: Cluster infrastructure | |
133 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 134 | Group: Applications/System |
3e0685c3 | 135 | |
136 | %description dlm-static | |
1d7db41d | 137 | %description dlm-static -l pl.UTF-8 |
3e0685c3 | 138 | |
139 | %package fence | |
140 | Summary: Cluster infrastructure | |
141 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 142 | Group: Applications/System |
3e0685c3 | 143 | |
144 | %description fence | |
1d7db41d | 145 | %description fence -l pl.UTF-8 |
3e0685c3 | 146 | |
147 | %package fence-devel | |
148 | Summary: Cluster infrastructure | |
149 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 150 | Group: Applications/System |
151 | Requires: %{name}-fence-libs = %{version}-%{release} | |
3e0685c3 | 152 | |
153 | %description fence-devel | |
1d7db41d | 154 | %description fence-devel -l pl.UTF-8 |
3e0685c3 | 155 | |
156 | %package fence-libs | |
157 | Summary: Cluster infrastructure | |
158 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 159 | Group: Applications/System |
3e0685c3 | 160 | |
161 | %description fence-libs | |
1d7db41d | 162 | %description fence-libs -l pl.UTF-8 |
3e0685c3 | 163 | |
164 | %package fence-static | |
165 | Summary: Cluster infrastructure | |
166 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 167 | Group: Applications/System |
3e0685c3 | 168 | |
169 | %description fence-static | |
1d7db41d | 170 | %description fence-static -l pl.UTF-8 |
3e0685c3 | 171 | |
172 | %package group | |
173 | Summary: Cluster infrastructure | |
174 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 175 | Group: Applications/System |
3e0685c3 | 176 | |
177 | %description group | |
1d7db41d | 178 | %description group -l pl.UTF-8 |
3e0685c3 | 179 | |
180 | %package gfs2 | |
181 | Summary: Shared-disk cluster filesystem | |
182 | Summary(pl.UTF-8): Klastrowy system plików na współdzielonym dysku | |
1d7db41d | 183 | Group: Applications/System |
3e0685c3 | 184 | |
185 | %description gfs2 | |
186 | GFS (Global File System) is a cluster file system. It allows a cluster | |
187 | of computers to simultaneously use a block device that is shared | |
188 | between them (with FC, iSCSI, NBD, etc...). GFS reads and writes to | |
189 | the block device like a local filesystem, but also uses a lock module | |
190 | to allow the computers coordinate their I/O so filesystem consistency | |
191 | is maintained. One of the nifty features of GFS is perfect consistency | |
1d7db41d | 192 | - -- changes made to the filesystem on one machine show up immediately |
193 | on all other machines in the cluster. | |
3e0685c3 | 194 | |
195 | %description gfs2 -l pl.UTF-8 | |
196 | GFS (Global File System) to klastrowy system plików. Pozwala klastrowi | |
197 | komputerów na jednoczesne korzystanie z urządzenia blokowego | |
198 | dzielonego między nimi (poprzez FC, iSCSI, NBD itp.). GFS odczytuje i | |
199 | zapisuje urządzenie blokowe jak lokalny system plików, ale używa | |
200 | dodatkowo modułu blokującego, aby umożliwić komputerom koordynowanie | |
201 | ich operacji I/O w celu zachowania spójności systemu plików. Jedną z | |
202 | szykownych możliwości GFS-a jest idealna spójność - zmiany wykonane w | |
203 | systemie plików na jednej maszynie natychmiast pokazują się na | |
204 | wszystkich innych maszynach w klastrze. | |
205 | ||
206 | %package rgmanager | |
207 | Summary: Cluster infrastructure | |
208 | Summary(pl.UTF-8): Infrastruktura klastra | |
1d7db41d | 209 | Group: Applications/System |
3e0685c3 | 210 | |
211 | %description rgmanager | |
1d7db41d | 212 | %description rgmanager -l pl.UTF-8 |
3e0685c3 | 213 | |
214 | %prep | |
215 | %setup -q | |
216 | ||
217 | sed -i -e 's,-Wall,%{rpmcflags} -I/usr/include/ncurses -Wall,' make/defines.mk.input | |
218 | sed -i -e 's/ -ggdb / %{rpmcflags} /' gfs2/libgfs2/Makefile | |
219 | sed -i -e 's/ -O2 -ggdb / %{rpmcflags} /' gfs2/mkfs/Makefile | |
220 | ||
221 | %build | |
222 | ./configure \ | |
223 | --libdir=%{_libdir} \ | |
224 | --libexecdir=%{_libdir} \ | |
225 | --mandir=%{_mandir} \ | |
226 | --prefix=%{_prefix} \ | |
227 | --sbindir=%{_sbindir} \ | |
228 | --ncursesincdir=/usr/include/ncurses \ | |
1d7db41d | 229 | --nsprincdir=%{_includedir}/nspr \ |
230 | --nssincdir=%{_includedir}/nss \ | |
3e0685c3 | 231 | --without_kernel_modules --disable_kernel_check |
232 | ||
233 | %{__make} | |
234 | ||
235 | %install | |
236 | rm -rf $RPM_BUILD_ROOT | |
237 | ||
238 | %{__make} install \ | |
239 | DESTDIR=$RPM_BUILD_ROOT | |
240 | ||
1d7db41d | 241 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/cluster |
3e0685c3 | 242 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
243 | install -d $RPM_BUILD_ROOT/var/log/cluster | |
244 | mv $RPM_BUILD_ROOT/''etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d | |
245 | ||
246 | %clean | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | ||
249 | %files | |
250 | %defattr(644,root,root,755) | |
251 | ||
252 | %files ccs | |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{_sbindir}/confdb2ldif | |
255 | %attr(755,root,root) %{_sbindir}/ccs_config_dump | |
256 | %attr(755,root,root) %{_sbindir}/ccs_config_validate | |
257 | %attr(755,root,root) %{_sbindir}/ccs_test | |
258 | %attr(755,root,root) %{_sbindir}/ccs_tool | |
259 | %attr(755,root,root) %{_libdir}/lcrso/*.lcrso | |
260 | %{_mandir}/man8/ccs_config_dump.* | |
261 | %{_mandir}/man8/ccs_config_validate.* | |
262 | %{_mandir}/man8/ccs_tool.* | |
263 | %{_mandir}/man8/confdb2ldif.* | |
264 | ||
265 | %files ccs-libs | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libccs.so.3.0 | |
268 | %attr(755,root,root) %ghost %{_libdir}/libccs.so.3 | |
269 | ||
270 | %files ccs-devel | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_libdir}/libccs.so | |
273 | %{_includedir}/ccs.h | |
274 | %{_pkgconfigdir}/libccs.pc | |
275 | ||
276 | %files ccs-static | |
277 | %defattr(644,root,root,755) | |
278 | %{_libdir}/libccs.a | |
279 | ||
280 | ||
281 | %files cman | |
282 | %defattr(644,root,root,755) | |
283 | %{_sysconfdir}/cluster | |
284 | /etc/logrotate.d/cluster | |
1d7db41d | 285 | %attr(754,root,root) /etc/rc.d/init.d/cman |
3e0685c3 | 286 | %attr(755,root,root) %{_sbindir}/cman_notify |
287 | %attr(755,root,root) %{_sbindir}/cman_tool | |
288 | %attr(755,root,root) %{_sbindir}/cmannotifyd | |
289 | %attr(755,root,root) %{_sbindir}/mkqdisk | |
290 | %attr(755,root,root) %{_sbindir}/qdiskd | |
291 | %{_datadir}/cluster | |
292 | %{_docdir}/cluster | |
293 | %{_mandir}/man5/cluster.conf.* | |
294 | %{_mandir}/man5/cman.* | |
295 | %{_mandir}/man5/qdisk.* | |
296 | %{_mandir}/man8/cman_tool.* | |
297 | %{_mandir}/man8/cman_notify.* | |
298 | %{_mandir}/man8/cmannotifyd.* | |
299 | %{_mandir}/man8/mkqdisk.* | |
300 | %{_mandir}/man8/qdiskd.* | |
301 | /var/log/cluster | |
302 | ||
303 | %files cman-devel | |
304 | %defattr(644,root,root,755) | |
305 | %attr(755,root,root) %{_libdir}/libcman.so | |
306 | %attr(755,root,root) %{_libdir}/liblogthread.so | |
307 | %{_includedir}/libcman.h | |
308 | %{_includedir}/liblogthread.h | |
309 | %{_pkgconfigdir}/libcman.pc | |
310 | %{_pkgconfigdir}/liblogthread.pc | |
311 | ||
312 | %files cman-libs | |
313 | %defattr(644,root,root,755) | |
314 | %attr(755,root,root) %{_libdir}/libcman.so.3.0 | |
315 | %attr(755,root,root) %ghost %{_libdir}/libcman.so.3 | |
316 | %attr(755,root,root) %{_libdir}/liblogthread.so.3.0 | |
317 | %attr(755,root,root) %ghost %{_libdir}/liblogthread.so.3 | |
318 | ||
319 | %files cman-static | |
320 | %defattr(644,root,root,755) | |
321 | %{_libdir}/libcman.a | |
322 | %{_libdir}/liblogthread.a | |
323 | ||
324 | ||
325 | %files dlm | |
326 | %defattr(644,root,root,755) | |
327 | /etc/udev/rules.d/51-dlm.rules | |
328 | %attr(755,root,root) %{_sbindir}/dlm_tool | |
329 | %{_mandir}/man8/dlm_tool.* | |
330 | ||
331 | %files dlm-devel | |
332 | %defattr(644,root,root,755) | |
333 | %{_includedir}/libdlm.h | |
334 | %{_includedir}/libdlmcontrol.h | |
335 | %{_pkgconfigdir}/libdlm.pc | |
336 | %{_pkgconfigdir}/libdlm_lt.pc | |
337 | %{_pkgconfigdir}/libdlmcontrol.pc | |
338 | %attr(755,root,root) %{_libdir}/libdlm.so | |
339 | %attr(755,root,root) %{_libdir}/libdlm_lt.so | |
340 | %attr(755,root,root) %{_libdir}/libdlmcontrol.so | |
341 | %{_mandir}/man3/dlm_*.* | |
342 | %{_mandir}/man3/libdlm.* | |
343 | ||
344 | %files dlm-libs | |
345 | %defattr(644,root,root,755) | |
346 | %attr(755,root,root) %{_libdir}/libdlm.so.3.0 | |
347 | %attr(755,root,root) %ghost %{_libdir}/libdlm.so.3 | |
348 | %attr(755,root,root) %{_libdir}/libdlm_lt.so.3.0 | |
349 | %attr(755,root,root) %ghost %{_libdir}/libdlm_lt.so.3 | |
350 | %attr(755,root,root) %{_libdir}/libdlmcontrol.so.3.1 | |
351 | %attr(755,root,root) %ghost %{_libdir}/libdlmcontrol.so.3 | |
352 | ||
353 | %files dlm-static | |
354 | %defattr(644,root,root,755) | |
355 | %{_libdir}/libdlm.a | |
356 | %{_libdir}/libdlm_lt.a | |
357 | %{_libdir}/libdlmcontrol.a | |
358 | ||
359 | ||
360 | %files fence | |
361 | %defattr(644,root,root,755) | |
362 | %attr(755,root,root) %{_sbindir}/fence_* | |
363 | %attr(755,root,root) %{_sbindir}/fenced | |
364 | %{_mandir}/man8/fence_*.* | |
365 | %{_mandir}/man8/fenced.* | |
366 | ||
367 | %files fence-devel | |
368 | %defattr(644,root,root,755) | |
369 | %{_includedir}/libfence.h | |
370 | %{_includedir}/libfenced.h | |
371 | %{_pkgconfigdir}/libfence.pc | |
372 | %{_pkgconfigdir}/libfenced.pc | |
373 | %attr(755,root,root) %{_libdir}/libfence.so | |
374 | %attr(755,root,root) %{_libdir}/libfenced.so | |
375 | ||
376 | %files fence-libs | |
377 | %defattr(644,root,root,755) | |
378 | %attr(755,root,root) %{_libdir}/libfence.so.4.0 | |
379 | %attr(755,root,root) %ghost %{_libdir}/libfence.so.4 | |
380 | %attr(755,root,root) %{_libdir}/libfenced.so.3.0 | |
381 | %attr(755,root,root) %ghost %{_libdir}/libfenced.so.3 | |
382 | ||
383 | %files fence-static | |
384 | %defattr(644,root,root,755) | |
385 | %{_libdir}/libfence.a | |
386 | %{_libdir}/libfenced.a | |
387 | ||
388 | %files group | |
389 | %defattr(644,root,root,755) | |
390 | %attr(755,root,root) %{_sbindir}/dlm_controld | |
391 | %attr(755,root,root) %{_sbindir}/gfs_control | |
392 | %attr(755,root,root) %{_sbindir}/gfs_controld | |
393 | %attr(755,root,root) %{_sbindir}/group_tool | |
394 | %attr(755,root,root) %{_sbindir}/groupd | |
395 | %{_mandir}/man8/dlm_controld.* | |
396 | %{_mandir}/man8/gfs_control.* | |
397 | %{_mandir}/man8/gfs_controld.* | |
398 | %{_mandir}/man8/group_tool.* | |
399 | %{_mandir}/man8/groupd.* | |
400 | ||
401 | %files gfs2 | |
402 | %defattr(644,root,root,755) | |
403 | %attr(754,root,root) /etc/rc.d/init.d/gfs2 | |
404 | %attr(755,root,root) %{_sbindir}/fsck.gfs2 | |
405 | %attr(755,root,root) %{_sbindir}/gfs2_convert | |
406 | %attr(755,root,root) %{_sbindir}/gfs2_edit | |
407 | %attr(755,root,root) %{_sbindir}/gfs2_grow | |
408 | %attr(755,root,root) %{_sbindir}/gfs2_jadd | |
409 | %attr(755,root,root) %{_sbindir}/gfs2_quota | |
410 | %attr(755,root,root) %{_sbindir}/gfs2_tool | |
411 | %attr(755,root,root) %{_sbindir}/mkfs.gfs2 | |
412 | %attr(755,root,root) %{_sbindir}/mount.gfs2 | |
413 | %{_mandir}/man8/fsck.gfs2.* | |
414 | %{_mandir}/man8/gfs2.* | |
415 | %{_mandir}/man8/gfs2_convert.* | |
416 | %{_mandir}/man8/gfs2_edit.* | |
417 | %{_mandir}/man8/gfs2_grow.* | |
418 | %{_mandir}/man8/gfs2_jadd.* | |
419 | %{_mandir}/man8/gfs2_quota.* | |
420 | %{_mandir}/man8/gfs2_tool.* | |
421 | %{_mandir}/man8/mkfs.gfs2.* | |
422 | %{_mandir}/man8/mount.gfs2.* | |
423 | ||
424 | %files rgmanager | |
425 | %defattr(644,root,root,755) | |
426 | %attr(754,root,root) /etc/rc.d/init.d/rgmanager | |
427 | %attr(755,root,root) %{_sbindir}/clubufflush | |
428 | %attr(755,root,root) %{_sbindir}/clufindhostname | |
429 | %attr(755,root,root) %{_sbindir}/clulog | |
430 | %attr(755,root,root) %{_sbindir}/clunfslock | |
431 | %attr(755,root,root) %{_sbindir}/clurgmgrd | |
432 | #%attr(755,root,root) %{_sbindir}/clurmtabd | |
433 | %attr(755,root,root) %{_sbindir}/clustat | |
434 | %attr(755,root,root) %{_sbindir}/clusvcadm | |
435 | %attr(755,root,root) %{_sbindir}/rg_test | |
436 | %attr(755,root,root) %{_sbindir}/rgmanager | |
437 | %{_mandir}/man8/clubufflush.* | |
438 | %{_mandir}/man8/clufindhostname.* | |
439 | %{_mandir}/man8/clulog.* | |
440 | #%{_mandir}/man8/clunfslock.* | |
441 | %{_mandir}/man8/clurgmgrd.* | |
442 | #%{_mandir}/man8/clurmtabd.* | |
443 | %{_mandir}/man8/clustat.* | |
444 | %{_mandir}/man8/clusvcadm.* | |
445 | %{_mandir}/man8/rgmanager.* |