]>
Commit | Line | Data |
---|---|---|
1 | # NOTE: obsolete, for 3rd generation cluster see cluster.spec | |
2 | Summary: Shared-disk cluster file system | |
3 | Summary(pl.UTF-8): Klastrowy system plików na współdzielonym dysku | |
4 | Name: gfs | |
5 | Version: 2.03.11 | |
6 | Release: 1 | |
7 | Epoch: 1 | |
8 | License: GPL v2+ | |
9 | Group: Applications/System | |
10 | Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz | |
11 | # Source0-md5: 712b9f583472d1de614641bc0f4a0aaf | |
12 | Patch0: %{name}-blkid.patch | |
13 | Patch1: cluster-kernel.patch | |
14 | URL: http://sources.redhat.com/cluster/gfs/ | |
15 | BuildRequires: libblkid-devel >= 2.16 | |
16 | BuildRequires: ncurses-devel | |
17 | BuildRequires: perl-base | |
18 | # some parts point to gfs2 components | |
19 | Requires: gfs2 = %{epoch}:%{version} | |
20 | Requires: libblkid >= 2.16 | |
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 | ||
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 | |
44 | wszystkich innych maszynach w klastrze. | |
45 | ||
46 | %prep | |
47 | %setup -q -n cluster-%{version} | |
48 | %patch0 -p1 | |
49 | %patch1 -p1 | |
50 | ||
51 | %build | |
52 | ./configure \ | |
53 | --cc="%{__cc}" \ | |
54 | --cflags="%{rpmcflags} -Wall" \ | |
55 | --ldflags="%{rpmldflags}" \ | |
56 | --incdir=%{_includedir} \ | |
57 | --ncursesincdir=%{_includedir}/ncurses \ | |
58 | --libdir=%{_libdir} \ | |
59 | --libexecdir=%{_libexecdir} \ | |
60 | --mandir=%{_mandir} \ | |
61 | --prefix=%{_prefix} \ | |
62 | --sbindir=%{_sbindir} \ | |
63 | --without_gfs2 \ | |
64 | --without_gnbd \ | |
65 | --without_kernel_modules | |
66 | %{__make} -C %{name} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} -C %{name} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | # fake for man pages links check | |
75 | touch $RPM_BUILD_ROOT%{_mandir}/man8/gfs2_edit.8 | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_sbindir}/fsck.gfs | |
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 | |
90 | %attr(755,root,root) %{_sbindir}/mkfs.gfs | |
91 | # TODO: PLDify | |
92 | #%attr(754,root,root) /etc/rc.d/init.d/gfs | |
93 | %{_mandir}/man8/gfs.8* | |
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* |