]>
Commit | Line | Data |
---|---|---|
595db95a | 1 | Summary: Shared-disk cluster file system |
cc7222f7 | 2 | Summary(pl.UTF-8): Klastrowy system plików na współdzielonym dysku |
ea0d75d3 | 3 | Name: gfs |
24854b68 | 4 | Version: 1.03.00 |
07400a55 JB |
5 | Release: 1 |
6 | Epoch: 1 | |
2e91778e | 7 | License: GPL v2 |
ea0d75d3 | 8 | Group: Applications/System |
07400a55 | 9 | Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz |
24854b68 | 10 | # Source0-md5: 8eea23df70d2007c4fb8c234cfea49cf |
63778b66 | 11 | URL: http://sources.redhat.com/cluster/gfs/ |
ea0d75d3 | 12 | BuildRequires: iddev |
e3ca18b4 | 13 | BuildRequires: ncurses-devel |
178408b1 | 14 | BuildRequires: perl-base |
ea0d75d3 AM |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %define _sbindir /sbin | |
18 | ||
19 | %description | |
20 | GFS (Global File System) is a cluster file system. It allows a cluster | |
21 | of computers to simultaneously use a block device that is shared | |
22 | between them (with FC, iSCSI, NBD, etc...). GFS reads and writes to | |
23 | the block device like a local filesystem, but also uses a lock module | |
24 | to allow the computers coordinate their I/O so filesystem consistency | |
25 | is maintained. One of the nifty features of GFS is perfect consistency | |
26 | -- changes made to the filesystem on one machine show up immediately | |
27 | on all other machines in the cluster. | |
28 | ||
cc7222f7 JR |
29 | %description -l pl.UTF-8 |
30 | GFS (Global File System) to klastrowy system plików. Pozwala klastrowi | |
31 | komputerów na jednoczesne korzystanie z urządzenia blokowego | |
32 | dzielonego między nimi (poprzez FC, iSCSI, NBD itp.). GFS odczytuje i | |
33 | zapisuje urządzenie blokowe jak lokalny system plików, ale używa | |
34 | dodatkowo modułu blokującego, aby umożliwić komputerom koordynowanie | |
35 | ich operacji I/O w celu zachowania spójności systemu plików. Jedną z | |
36 | szykownych możliwości GFS-a jest idealna spójność - zmiany wykonane w | |
37 | systemie plików na jednej maszynie natychmiast pokazują się na | |
595db95a JB |
38 | wszystkich innych maszynach w klastrze. |
39 | ||
ea0d75d3 | 40 | %prep |
07400a55 JB |
41 | %setup -q -n cluster-%{version} |
42 | install -d %{name}/include/linux | |
43 | install %{name}-kernel/src/gfs/{gfs_ioctl.h,gfs_ondisk.h} %{name}/include/linux | |
44 | install %{name}-kernel/src/harness/lm_interface.h %{name}/include/linux | |
45 | cd %{name} | |
2e91778e | 46 | |
e3ca18b4 | 47 | %{__perl} -pi -e 's,-Wall,%{rpmcflags} -I/usr/include/ncurses -Wall,' make/defines.mk.input |
2e91778e | 48 | %{__perl} -pi -e 's/-O2 //' gfs_{mkfs,quota,tool}/Makefile |
ea0d75d3 AM |
49 | |
50 | %build | |
07400a55 | 51 | cd %{name} |
ea0d75d3 AM |
52 | ./configure \ |
53 | --incdir=%{_includedir} \ | |
ea0d75d3 AM |
54 | --libdir=%{_libdir} \ |
55 | --mandir=%{_mandir} \ | |
56 | --prefix=%{_prefix} \ | |
57 | --sbindir=%{_sbindir} | |
58 | %{__make} \ | |
59 | CC="%{__cc}" | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
07400a55 | 63 | cd %{name} |
ea0d75d3 AM |
64 | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_sbindir}/* | |
2e91778e | 74 | #%attr(754,root,root) /etc/rc.d/init.d/gfs |
ea0d75d3 | 75 | %{_mandir}/man?/* |