1 # TODO: Decide what to do with -static
2 # Obsolete it, fix build ?
3 # TODO: Conditional builds + packages for:
5 # mod_glusterfs : yes (2.2)
6 %bcond_without ibverbs # ib-verbs transport
8 Summary: Clustered File Storage that can scale to peta bytes
9 Summary(pl.UTF-8): Klastrowy system przechowywania plików skalujący się do petabajtów
13 %define _version %{version}%{_rc}
16 Group: Applications/System
17 # http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/1.3.12/glusterfs-1.3.12.tar.gz
18 # http://ftp.zresearch.com/pub/gluster/glusterfs/2.0/2.0.0/glusterfs-2.0.0rc1.tar.gz
19 Source0: http://ftp.zresearch.com/pub/gluster/glusterfs/2.0/%{version}/%{name}-%{_version}.tar.gz
20 # Source0-md5: 6f6943fbb958c3f386ce3f152cf7ccdd
21 Source1: glusterfsd.init
22 URL: http://gluster.org/glusterfs.php
23 BuildRequires: autoconf >= 2.50
24 BuildRequires: automake
27 BuildRequires: libfuse-devel >= 2.6
28 BuildRequires: libtool
29 %{?with_ibverbs:BuildRequires: libibverbs-devel >= 1.0.4}
30 BuildRequires: rpmbuild(macros) >= 1.228
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 GlusterFS is a clustered file-system capable of scaling to several
35 peta-bytes. It aggregates various storage bricks over Infiniband RDMA
36 or TCP/IP interconnect into one large parallel network file system.
37 GlusterFS is one of the most sophisticated file system in terms of
38 features and extensibility. It borrows a powerful concept called
39 Translators from GNU Hurd kernel. Much of the code in GlusterFS is in
40 userspace and easily manageable.
42 %description -l pl.UTF-8
43 GlusterFS to klastrowy system plików skalujący się do petabajtów.
44 Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP
45 w jeden duży, równoległy sieciowy system plików. GlusterFS to
46 jeden z najbardziej wyszukanych systemów plików jeśli chodzi o
47 możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie
48 Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w
49 przestrzeni użytkownika i jest łatwo zarządzalna.
52 Summary: GlusterFS Library and Translators
53 Summary(pl.UTF-8): Biblioteka i translatory GlusterFS-a
57 GlusterFS is a clustered file-system capable of scaling to several
58 peta-bytes. It aggregates various storage bricks over Infiniband RDMA
59 or TCP/IP interconnect into one large parallel network file system.
60 GlusterFS is one of the most sophisticated file system in terms of
61 features and extensibility. It borrows a powerful concept called
62 Translators from GNU Hurd kernel. Much of the code in GlusterFS is in
63 userspace and easily manageable.
65 This package includes libglusterfs and glusterfs translator modules
66 common to both GlusterFS server and client framework.
68 %description common -l pl.UTF-8
69 GlusterFS to klastrowy system plików skalujący się do petabajtów.
70 Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP
71 w jeden duży, równoległy sieciowy system plików. GlusterFS to
72 jeden z najbardziej wyszukanych systemów plików jeśli chodzi o
73 możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie
74 Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w
75 przestrzeni użytkownika i jest łatwo zarządzalna.
77 Ten pakiet zawiera libglusterfs i moduły translatorów glusterfs
78 wspólne dla klienta jak i serwera GlusterFS-a.
81 Summary: GlusterFS development files
82 Summary(pl.UTF-8): Pliki programistyczne GlusterFS-a
83 Group: Development/Libraries
84 Requires: %{name}-common = %{version}-%{release}
87 This package provides the development files for GlusterFS library.
89 %description devel -l pl.UTF-8
90 Ten pakiet udostępnia pliki programistyczne biblioteki GlusterFS-a.
93 # Summary: Static GlusterFS library
94 # Summary(pl.UTF-8): Statyczna biblioteka GlusterFS-a
95 # Group: Development/Libraries
96 # Requires: %{name}-devel = %{version}-%{release}
99 # Static GlusterFS library.
101 # %description static -l pl.UTF-8
102 # Statyczna biblioteka GlusterFS-a.
104 %package transport-ibverbs
105 Summary: InfiniBand "verbs" transport plugins for GlusterFS
106 Summary(pl.UTF-8): Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a
108 Requires: %{name}-common = %{version}-%{release}
109 Requires: libibverbs >= 1.0.4
111 %description transport-ibverbs
112 InfiniBand "verbs" transport plugins for GlusterFS.
114 %description transport-ibverbs -l pl.UTF-8
115 Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a.
118 Summary: GlusterFS Server
119 Summary(pl.UTF-8): Serwer GlusterFS-a
121 Requires: %{name}-common = %{version}-%{release}
122 Requires(post,preun): /sbin/chkconfig
126 This package provides the glusterfs server daemon.
128 %description server -l pl.UTF-8
129 Ten pakiet zawiera część serwerową GlusterFS-a.
132 Summary: GlusterFS Client
133 Summary(pl.UTF-8): Klient GlusterFS
134 Group: Applications/System
135 Requires: %{name}-common = %{version}-%{release}
136 Requires: libfuse >= 2.6
139 This package provides the FUSE based GlusterFS client.
141 %description client -l pl.UTF-8
142 Ten pakiet udostępnia opartego na FUSE klienta GlusterFS-a.
145 %setup -q -n %{name}-%{_version}
146 %{__sed} -i -e 's|-avoidversion|-avoid-version|g' */*/*/Makefile.am */*/*/*/Makefile.am
148 cp -l doc/examples/README README.examples
156 %{!?with_ibverbs:--disable-ibverbs}
160 rm -rf $RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
164 DESTDIR=$RPM_BUILD_ROOT
166 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/glusterfsd
168 rm -r $RPM_BUILD_ROOT%{_docdir}/glusterfs/examples
171 rm -rf $RPM_BUILD_ROOT
173 %post common -p /sbin/ldconfig
174 %postun common -p /sbin/ldconfig
177 %defattr(644,root,root,755)
178 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README README.examples doc/*.vol.sample doc/examples/*.vol
179 %dir %{_sysconfdir}/%{name}
180 %attr(755,root,root) %{_libdir}/libglusterfs.so.*.*.*
181 %attr(755,root,root) %ghost %{_libdir}/libglusterfs.so.0
182 %attr(755,root,root) %{_libdir}/libglusterfsclient.so.*.*.*
183 %attr(755,root,root) %ghost %{_libdir}/libglusterfsclient.so.0
185 %dir %{_libdir}/glusterfs
186 %attr(755,root,root) %{_libdir}/glusterfs/glusterfs-booster.so
187 %dir %{_libdir}/glusterfs/%{_version}
188 %dir %{_libdir}/glusterfs/%{_version}/auth
189 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/addr.so
190 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/login.so
192 %dir %{_libdir}/glusterfs/%{_version}/scheduler
193 ## %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/{alu,nufa,random,rr,switch}.so*
195 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/alu.so
196 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/nufa.so
197 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/random.so
198 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/rr.so
199 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/switch.so
201 %dir %{_libdir}/glusterfs/%{_version}/transport
202 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/transport/ib-verbs.so
203 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/transport/socket.so
205 %dir %{_libdir}/glusterfs/%{_version}/xlator
206 %dir %{_libdir}/glusterfs/%{_version}/xlator/cluster
207 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/cluster/*.so
209 %dir %{_libdir}/glusterfs/%{_version}/xlator/debug
210 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/debug/*.so
211 %dir %{_libdir}/glusterfs/%{_version}/xlator/encryption
212 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/encryption/*.so
213 %dir %{_libdir}/glusterfs/%{_version}/xlator/features
214 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/features/*.so
215 %dir %{_libdir}/glusterfs/%{_version}/xlator/mount
216 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/mount/fuse.so
217 %dir %{_libdir}/glusterfs/%{_version}/xlator/performance
218 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/performance/*.so
219 %dir %{_libdir}/glusterfs/%{_version}/xlator/protocol
220 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/protocol/*.so
221 %dir %{_libdir}/glusterfs/%{_version}/xlator/storage
222 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/storage/*.so
226 %dir /var/log/glusterfs
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/libglusterfs.so
231 %{_libdir}/libglusterfs.la
235 # %defattr(644,root,root,755)
236 # %{_libdir}/libglusterfs.a
239 %files transport-ibverbs
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/glusterfs/%{_version}/transport/ib-verbs.so
245 %defattr(644,root,root,755)
246 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
247 %attr(754,root,root) /etc/rc.d/init.d/glusterfsd
248 %attr(755,root,root) %{_sbindir}/glusterfsd
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_sbindir}/glusterfs
253 %attr(755,root,root) /sbin/mount.glusterfs