]> git.pld-linux.org Git - packages/gfs.git/blob - gfs.spec
53f0d803df19a8a843fc15419942ad2345c117f1
[packages/gfs.git] / gfs.spec
1 Summary:        Shared-disk cluster file system
2 Summary(pl):    Klastrowy system plików na wspó³dzielonym dysku
3 Name:           gfs
4 Version:        6.1
5 %define bver    pre21
6 Release:        0.%{bver}.1
7 License:        GPL v2
8 Group:          Applications/System
9 Source0:        http://people.redhat.com/cfeist/cluster/tgz/%{name}-%{version}-%{bver}.tar.gz
10 # Source0-md5:  0b623c83354884e9da498e09130a3214
11 # from gfs-kernel CVS
12 Source1:        gfs_ondisk.h
13 # NoSource1-md5: 772e1801249bff0478b844924c0fdc20 (rev. 1.7; doesn't compile with 1.8)
14 Source2:        gfs_ioctl.h
15 # NoSource2-md5: fad0a58f6f39499661704f0d5af3a8c0 (rev. 1.10)
16 # from gfs-kernel/harness CVS
17 Source3:        lm_interface.h
18 # NoSource3-md5: 5b000a3b33af218e1b6b8a7d96b7e356 (rev. 1.7)
19 URL:            http://sources.redhat.com/cluster/gfs/
20 BuildRequires:  iddev
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
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 %{name}-%{version}-%{bver}
48
49 install -d include/linux
50 cp %{SOURCE1} %{SOURCE2} %{SOURCE3} include/linux
51
52 %{__perl} -pi -e 's/-Wall/%{rpmcflags} -Wall/' make/defines.mk.input
53 %{__perl} -pi -e 's/-O2 //' gfs_{mkfs,quota,tool}/Makefile
54
55 %build
56 ./configure \
57         --incdir=%{_includedir} \
58         --libdir=%{_libdir} \
59         --mandir=%{_mandir} \
60         --prefix=%{_prefix} \
61         --sbindir=%{_sbindir}
62 %{__make} \
63         CC="%{__cc}"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_sbindir}/*
77 #%attr(754,root,root) /etc/rc.d/init.d/gfs
78 %{_mandir}/man?/*
This page took 0.020444 seconds and 2 git commands to generate.