]>
Commit | Line | Data |
---|---|---|
79cfe387 | 1 | # NOTE: obsolete, for 3rd generation cluster see cluster.spec |
595db95a | 2 | Summary: Shared-disk cluster file system |
1bd86d6d | 3 | Summary(pl.UTF-8): Klastrowy system plików na współdzielonym dysku |
ea0d75d3 | 4 | Name: gfs |
79cfe387 | 5 | Version: 2.03.11 |
07400a55 JB |
6 | Release: 1 |
7 | Epoch: 1 | |
4630a329 | 8 | License: GPL v2+ |
ea0d75d3 | 9 | Group: Applications/System |
07400a55 | 10 | Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz |
79cfe387 | 11 | # Source0-md5: 712b9f583472d1de614641bc0f4a0aaf |
4630a329 | 12 | Patch0: %{name}-blkid.patch |
79cfe387 | 13 | Patch1: cluster-kernel.patch |
63778b66 | 14 | URL: http://sources.redhat.com/cluster/gfs/ |
4630a329 | 15 | BuildRequires: libblkid-devel >= 2.16 |
e3ca18b4 | 16 | BuildRequires: ncurses-devel |
178408b1 | 17 | BuildRequires: perl-base |
79cfe387 JB |
18 | # some parts point to gfs2 components |
19 | Requires: gfs2 = %{epoch}:%{version} | |
4630a329 | 20 | Requires: libblkid >= 2.16 |
ea0d75d3 AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %define _sbindir /sbin | |
24 | ||
25 | %description | |
26 | GFS (Global File System) is a cluster file system. It allows a cluster | |
27 | of computers to simultaneously use a block device that is shared | |
28 | between them (with FC, iSCSI, NBD, etc...). GFS reads and writes to | |
29 | the block device like a local filesystem, but also uses a lock module | |
30 | to allow the computers coordinate their I/O so filesystem consistency | |
31 | is maintained. One of the nifty features of GFS is perfect consistency | |
32 | -- changes made to the filesystem on one machine show up immediately | |
33 | on all other machines in the cluster. | |
34 | ||
cc7222f7 JR |
35 | %description -l pl.UTF-8 |
36 | GFS (Global File System) to klastrowy system plików. Pozwala klastrowi | |
37 | komputerów na jednoczesne korzystanie z urządzenia blokowego | |
38 | dzielonego między nimi (poprzez FC, iSCSI, NBD itp.). GFS odczytuje i | |
39 | zapisuje urządzenie blokowe jak lokalny system plików, ale używa | |
40 | dodatkowo modułu blokującego, aby umożliwić komputerom koordynowanie | |
41 | ich operacji I/O w celu zachowania spójności systemu plików. Jedną z | |
42 | szykownych możliwości GFS-a jest idealna spójność - zmiany wykonane w | |
43 | systemie plików na jednej maszynie natychmiast pokazują się na | |
595db95a JB |
44 | wszystkich innych maszynach w klastrze. |
45 | ||
ea0d75d3 | 46 | %prep |
07400a55 | 47 | %setup -q -n cluster-%{version} |
4630a329 | 48 | %patch0 -p1 |
79cfe387 | 49 | %patch1 -p1 |
ea0d75d3 AM |
50 | |
51 | %build | |
52 | ./configure \ | |
4630a329 JB |
53 | --cc="%{__cc}" \ |
54 | --cflags="%{rpmcflags} -Wall" \ | |
55 | --ldflags="%{rpmldflags}" \ | |
56 | --incdir=%{_includedir} \ | |
57 | --ncursesincdir=%{_includedir}/ncurses \ | |
ea0d75d3 | 58 | --libdir=%{_libdir} \ |
79cfe387 | 59 | --libexecdir=%{_libexecdir} \ |
ea0d75d3 AM |
60 | --mandir=%{_mandir} \ |
61 | --prefix=%{_prefix} \ | |
4630a329 JB |
62 | --sbindir=%{_sbindir} \ |
63 | --without_gfs2 \ | |
64 | --without_gnbd \ | |
65 | --without_kernel_modules | |
66 | %{__make} -C %{name} | |
ea0d75d3 AM |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
4630a329 | 71 | %{__make} -C %{name} install \ |
ea0d75d3 AM |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
79cfe387 JB |
74 | # fake for man pages links check |
75 | touch $RPM_BUILD_ROOT%{_mandir}/man8/gfs2_edit.8 | |
76 | ||
ea0d75d3 AM |
77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
4630a329 | 82 | %attr(755,root,root) %{_sbindir}/fsck.gfs |
79cfe387 JB |
83 | %attr(755,root,root) %{_sbindir}/gfs_debug |
84 | %attr(755,root,root) %{_sbindir}/gfs_fsck | |
85 | %attr(755,root,root) %{_sbindir}/gfs_grow | |
86 | %attr(755,root,root) %{_sbindir}/gfs_jadd | |
87 | %attr(755,root,root) %{_sbindir}/gfs_mkfs | |
88 | %attr(755,root,root) %{_sbindir}/gfs_quota | |
89 | %attr(755,root,root) %{_sbindir}/gfs_tool | |
4630a329 | 90 | %attr(755,root,root) %{_sbindir}/mkfs.gfs |
4630a329 | 91 | # TODO: PLDify |
2e91778e | 92 | #%attr(754,root,root) /etc/rc.d/init.d/gfs |
4630a329 | 93 | %{_mandir}/man8/gfs.8* |
79cfe387 JB |
94 | %{_mandir}/man8/gfs_fsck.8* |
95 | %{_mandir}/man8/gfs_grow.8* | |
96 | %{_mandir}/man8/gfs_jadd.8* | |
97 | %{_mandir}/man8/gfs_mkfs.8* | |
98 | %{_mandir}/man8/gfs_mount.8* | |
99 | %{_mandir}/man8/gfs_quota.8* | |
100 | %{_mandir}/man8/gfs_tool.8* | |
101 | # links to gfs2 | |
102 | %attr(755,root,root) %{_sbindir}/gfs_edit | |
103 | %attr(755,root,root) %{_sbindir}/mount.gfs | |
104 | %attr(755,root,root) %{_sbindir}/umount.gfs | |
105 | %{_mandir}/man8/gfs_edit.8* |