]> git.pld-linux.org Git - packages/gfs.git/blob - gfs.spec
d4656ec1d375054565f859850a6563cf08e33dfc
[packages/gfs.git] / gfs.spec
1 Summary:        Shared-disk cluster file system
2 Summary(pl.UTF-8):      Klastrowy system plików na współdzielonym dysku
3 Name:           gfs
4 Version:        2.00.00
5 Release:        1
6 Epoch:          1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
10 # Source0-md5:  2ef3f4ba9d3c87b50adfc9b406171085
11 URL:            http://sources.redhat.com/cluster/gfs/
12 BuildRequires:  libvolume_id-devel
13 BuildRequires:  ncurses-devel
14 BuildRequires:  perl-base
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
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
38 wszystkich innych maszynach w klastrze.
39
40 %prep
41 %setup -q -n cluster-%{version}
42 install %{name}-kernel/src/gfs/{gfs_ioctl.h,gfs_ondisk.h} %{name}/include
43 cd %{name}
44
45 %{__perl} -pi -e 's,-Wall,%{rpmcflags} -I/usr/include/ncurses -Wall,' make/defines.mk.input
46 %{__perl} -pi -e 's/-O2 //' gfs_{mkfs,quota,tool}/Makefile
47
48 %build
49 cd %{name}
50 ./configure \
51         --libdir=%{_libdir} \
52         --mandir=%{_mandir} \
53         --prefix=%{_prefix} \
54         --sbindir=%{_sbindir}
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 cd %{name}
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_sbindir}/*
70 #%attr(754,root,root) /etc/rc.d/init.d/gfs
71 %{_mandir}/man?/*
This page took 0.069672 seconds and 2 git commands to generate.