]>
Commit | Line | Data |
---|---|---|
ea0d75d3 AM |
1 | # |
2 | # Conditional build: | |
3 | Summary: shared-disk cluster file system | |
4 | Name: gfs | |
5 | %define snap 20040625 | |
6 | Version: 0.0.0.%{snap}.1 | |
7 | Release: 1 | |
8 | License: GPL | |
9 | Group: Applications/System | |
10 | Source0: %{name}.tar.gz | |
a934728a | 11 | # Source0-md5: 2e787a04f4b730b705bbd9d25dbdee72 |
ea0d75d3 AM |
12 | URL: http://sources.redhat.com/cluster/ |
13 | BuildRequires: iddev | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _sbindir /sbin | |
17 | ||
18 | %description | |
19 | GFS (Global File System) is a cluster file system. It allows a cluster | |
20 | of computers to simultaneously use a block device that is shared | |
21 | between them (with FC, iSCSI, NBD, etc...). GFS reads and writes to | |
22 | the block device like a local filesystem, but also uses a lock module | |
23 | to allow the computers coordinate their I/O so filesystem consistency | |
24 | is maintained. One of the nifty features of GFS is perfect consistency | |
25 | -- changes made to the filesystem on one machine show up immediately | |
26 | on all other machines in the cluster. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{name} | |
30 | ||
31 | %build | |
32 | ./configure \ | |
33 | --incdir=%{_includedir} \ | |
34 | --kernel_src=%{_kernelsrcdir} \ | |
35 | --libdir=%{_libdir} \ | |
36 | --mandir=%{_mandir} \ | |
37 | --prefix=%{_prefix} \ | |
38 | --sbindir=%{_sbindir} | |
39 | %{__make} \ | |
40 | CC="%{__cc}" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_sbindir}/* | |
54 | %{_mandir}/man?/* |