]> git.pld-linux.org Git - packages/glusterfs.git/blame - glusterfs.spec
- Version 3.0.5-1.
[packages/glusterfs.git] / glusterfs.spec
CommitLineData
25786cf4
MK
1# TODO: Decide what to do with -static
2# Obsolete it, fix build ?
d0729cf5 3# TODO: merge server and client packages somewhat, since the daemon
4# is the same, leaving only stub packages for each (init scripts,
5# configs)
4040706e
MK
6# TODO: Conditional builds + packages for:
7# Berkeley-DB : yes
8# mod_glusterfs : yes (2.2)
f6b6b8a5
MK
9
10
4163e7ad 11%bcond_without ibverbs # ib-verbs transport
7f75179c 12#
d6a0cdd1 13Summary: Clustered File Storage that can scale to peta bytes
dae7af53 14Summary(pl.UTF-8): Klastrowy system przechowywania plików skalujący się do petabajtów
d6a0cdd1 15Name: glusterfs
f6b6b8a5 16Version: 3.0.5
6c386b20
MK
17#%%define _rc {rc2}
18%define _version %{version}
5a19cfa6 19Release: 1
7f75179c 20License: GPL v3+
dae7af53 21Group: Applications/System
f6b6b8a5
MK
22Source0: http://ftp.gluster.com/pub/gluster/glusterfs/3.0/LATEST/glusterfs-%{version}.tar.gz
23# Source0-md5: da6f9f4e21859f1115ec3853cb701868
824dab89 24Source1: glusterfsd.init
6c386b20 25URL: http://www.gluster.org/
4163e7ad
JB
26BuildRequires: autoconf >= 2.50
27BuildRequires: automake
d6a0cdd1 28BuildRequires: bison
29BuildRequires: flex
7f75179c 30BuildRequires: libfuse-devel >= 2.6
4163e7ad 31BuildRequires: libtool
7f75179c 32%{?with_ibverbs:BuildRequires: libibverbs-devel >= 1.0.4}
d6a0cdd1 33BuildRequires: rpmbuild(macros) >= 1.228
d6a0cdd1 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37GlusterFS is a clustered file-system capable of scaling to several
38peta-bytes. It aggregates various storage bricks over Infiniband RDMA
39or TCP/IP interconnect into one large parallel network file system.
40GlusterFS is one of the most sophisticated file system in terms of
41features and extensibility. It borrows a powerful concept called
42Translators from GNU Hurd kernel. Much of the code in GlusterFS is in
43userspace and easily manageable.
44
dae7af53
JB
45%description -l pl.UTF-8
46GlusterFS to klastrowy system plików skalujący się do petabajtów.
47Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP
11c9e8ee
MK
48w jeden duży, równoległy sieciowy system plików. GlusterFS to
49jeden z najbardziej wyszukanych systemów plików jeśli chodzi o
50możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie
51Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w
52przestrzeni użytkownika i jest łatwo zarządzalna.
53
54%package common
55Summary: GlusterFS Library and Translators
5f2d10ee
JB
56Summary(pl.UTF-8): Biblioteka i translatory GlusterFS-a
57Group: Libraries
11c9e8ee
MK
58
59%description common
60GlusterFS is a clustered file-system capable of scaling to several
61peta-bytes. It aggregates various storage bricks over Infiniband RDMA
62or TCP/IP interconnect into one large parallel network file system.
63GlusterFS is one of the most sophisticated file system in terms of
64features and extensibility. It borrows a powerful concept called
65Translators from GNU Hurd kernel. Much of the code in GlusterFS is in
66userspace and easily manageable.
67
68This package includes libglusterfs and glusterfs translator modules
69common to both GlusterFS server and client framework.
70
71%description common -l pl.UTF-8
5f2d10ee
JB
72GlusterFS to klastrowy system plików skalujący się do petabajtów.
73Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP
74w jeden duży, równoległy sieciowy system plików. GlusterFS to
75jeden z najbardziej wyszukanych systemów plików jeśli chodzi o
76możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie
77Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w
78przestrzeni użytkownika i jest łatwo zarządzalna.
79
80Ten pakiet zawiera libglusterfs i moduły translatorów glusterfs
81wspólne dla klienta jak i serwera GlusterFS-a.
11c9e8ee 82
4163e7ad
JB
83%package devel
84Summary: GlusterFS development files
85Summary(pl.UTF-8): Pliki programistyczne GlusterFS-a
86Group: Development/Libraries
87Requires: %{name}-common = %{version}-%{release}
88
89%description devel
90This package provides the development files for GlusterFS library.
91
92%description devel -l pl.UTF-8
93Ten pakiet udostępnia pliki programistyczne biblioteki GlusterFS-a.
94
6feb651d
MK
95# %package static
96# Summary: Static GlusterFS library
97# Summary(pl.UTF-8): Statyczna biblioteka GlusterFS-a
98# Group: Development/Libraries
99# Requires: %{name}-devel = %{version}-%{release}
100#
101# %description static
102# Static GlusterFS library.
103#
104# %description static -l pl.UTF-8
105# Statyczna biblioteka GlusterFS-a.
4163e7ad
JB
106
107%package transport-ibverbs
108Summary: InfiniBand "verbs" transport plugins for GlusterFS
109Summary(pl.UTF-8): Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a
110Group: Libraries
111Requires: %{name}-common = %{version}-%{release}
112Requires: libibverbs >= 1.0.4
113
114%description transport-ibverbs
115InfiniBand "verbs" transport plugins for GlusterFS.
116
117%description transport-ibverbs -l pl.UTF-8
118Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a.
119
11c9e8ee
MK
120%package server
121Summary: GlusterFS Server
5f2d10ee
JB
122Summary(pl.UTF-8): Serwer GlusterFS-a
123Group: Daemons
6c386b20 124Requires: %{name}-client = %{version}-%{release}
5f2d10ee
JB
125Requires: %{name}-common = %{version}-%{release}
126Requires(post,preun): /sbin/chkconfig
127Requires: rc-scripts
11c9e8ee
MK
128
129%description server
11c9e8ee
MK
130This package provides the glusterfs server daemon.
131
132%description server -l pl.UTF-8
5f2d10ee 133Ten pakiet zawiera część serwerową GlusterFS-a.
11c9e8ee
MK
134
135%package client
136Summary: GlusterFS Client
5f2d10ee 137Summary(pl.UTF-8): Klient GlusterFS
11c9e8ee 138Group: Applications/System
5f2d10ee 139Requires: %{name}-common = %{version}-%{release}
7f75179c 140Requires: libfuse >= 2.6
11c9e8ee
MK
141
142%description client
11c9e8ee
MK
143This package provides the FUSE based GlusterFS client.
144
145%description client -l pl.UTF-8
5f2d10ee 146Ten pakiet udostępnia opartego na FUSE klienta GlusterFS-a.
11c9e8ee 147
d6a0cdd1 148%prep
13bdb3c9 149%setup -q -n %{name}-%{_version}
4040706e 150%{__sed} -i -e 's|-avoidversion|-avoid-version|g' */*/*/Makefile.am */*/*/*/Makefile.am
d6a0cdd1 151
7f75179c
JB
152cp -l doc/examples/README README.examples
153
d6a0cdd1 154%build
4163e7ad
JB
155%{__libtoolize}
156%{__aclocal}
157%{__autoconf}
158%{__automake}
1293e304 159%configure \
51faabf0
MK
160 --disable-bdb \
161 --disable-mod_glusterfs \
7f75179c 162 %{!?with_ibverbs:--disable-ibverbs}
f6b6b8a5
MK
163# -j8 breaks for 3.0.5
164%{__make} -j1
d6a0cdd1 165
166%install
167rm -rf $RPM_BUILD_ROOT
824dab89 168install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
824dab89 169
d6a0cdd1 170%{__make} install \
171 DESTDIR=$RPM_BUILD_ROOT
172
5f2d10ee
JB
173install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/glusterfsd
174
7f75179c
JB
175rm -r $RPM_BUILD_ROOT%{_docdir}/glusterfs/examples
176
d6a0cdd1 177%clean
178rm -rf $RPM_BUILD_ROOT
179
d34394d5 180%post common -p /sbin/ldconfig
181%postun common -p /sbin/ldconfig
182
11c9e8ee
MK
183%files common
184%defattr(644,root,root,755)
7f75179c 185%doc AUTHORS ChangeLog COPYING INSTALL NEWS README README.examples doc/*.vol.sample doc/examples/*.vol
3abbc79a 186%dir %{_sysconfdir}/%{name}
4163e7ad
JB
187%attr(755,root,root) %{_libdir}/libglusterfs.so.*.*.*
188%attr(755,root,root) %ghost %{_libdir}/libglusterfs.so.0
13bdb3c9
MK
189%attr(755,root,root) %{_libdir}/libglusterfsclient.so.*.*.*
190%attr(755,root,root) %ghost %{_libdir}/libglusterfsclient.so.0
191
796930f1 192%dir %{_libdir}/glusterfs
5a19cfa6
MK
193%attr(755,root,root) %{_libdir}/glusterfs/libglusterfs-booster.so.*.*.*
194%attr(755,root,root) %ghost %{_libdir}/glusterfs/libglusterfs-booster.so.0
195
13bdb3c9
MK
196%dir %{_libdir}/glusterfs/%{_version}
197%dir %{_libdir}/glusterfs/%{_version}/auth
9d6483a5
MK
198%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/addr.so
199%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/auth/login.so
13bdb3c9
MK
200
201%dir %{_libdir}/glusterfs/%{_version}/scheduler
13bdb3c9 202
9d6483a5
MK
203%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/alu.so
204%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/nufa.so
205%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/random.so
206%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/rr.so
207%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/scheduler/switch.so
13bdb3c9 208
4040706e 209%dir %{_libdir}/glusterfs/%{_version}/transport
4040706e 210%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/transport/socket.so
13bdb3c9
MK
211
212%dir %{_libdir}/glusterfs/%{_version}/xlator
213%dir %{_libdir}/glusterfs/%{_version}/xlator/cluster
4040706e 214%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/cluster/*.so
13bdb3c9 215%dir %{_libdir}/glusterfs/%{_version}/xlator/debug
4040706e 216%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/debug/*.so
13bdb3c9 217%dir %{_libdir}/glusterfs/%{_version}/xlator/encryption
4040706e 218%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/encryption/*.so
13bdb3c9 219%dir %{_libdir}/glusterfs/%{_version}/xlator/features
4040706e 220%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/features/*.so
13bdb3c9 221%dir %{_libdir}/glusterfs/%{_version}/xlator/mount
4040706e 222%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/mount/fuse.so
f6b6b8a5
MK
223%dir %{_libdir}/glusterfs/%{_version}/xlator/legacy
224%dir %{_libdir}/glusterfs/%{_version}/xlator/legacy/cluster
225%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/legacy/cluster/*.so
13bdb3c9 226%dir %{_libdir}/glusterfs/%{_version}/xlator/performance
4040706e 227%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/performance/*.so
13bdb3c9 228%dir %{_libdir}/glusterfs/%{_version}/xlator/protocol
4040706e 229%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/protocol/*.so
13bdb3c9 230%dir %{_libdir}/glusterfs/%{_version}/xlator/storage
4040706e 231%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/storage/*.so
f6b6b8a5
MK
232%dir %{_libdir}/glusterfs/%{_version}/xlator/testing
233%dir %{_libdir}/glusterfs/%{_version}/xlator/testing/cluster
234%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/testing/cluster/*.so
235%dir %{_libdir}/glusterfs/%{_version}/xlator/testing/features
236%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/testing/features/*.so
237%dir %{_libdir}/glusterfs/%{_version}/xlator/testing/performance
238%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/xlator/testing/performance/*.so
239
8411ca01
MK
240
241%{_mandir}/man8/*.8*
242
11c9e8ee
MK
243%dir /var/log/glusterfs
244
4163e7ad
JB
245%files devel
246%defattr(644,root,root,755)
247%attr(755,root,root) %{_libdir}/libglusterfs.so
248%{_libdir}/libglusterfs.la
76f2a2a6
MK
249%attr(755,root,root) %{_libdir}/libglusterfsclient.so
250%{_libdir}/libglusterfsclient.la
251%{_includedir}/*.h
4163e7ad 252
6feb651d
MK
253# %files static
254# %defattr(644,root,root,755)
255# %{_libdir}/libglusterfs.a
4163e7ad 256
9891d861 257%if %{with ibverbs}
4163e7ad
JB
258%files transport-ibverbs
259%defattr(644,root,root,755)
13bdb3c9 260%attr(755,root,root) %{_libdir}/glusterfs/%{_version}/transport/ib-verbs.so
9891d861 261%endif
4163e7ad 262
11c9e8ee
MK
263%files server
264%defattr(644,root,root,755)
11c9e8ee 265%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
824dab89 266%attr(754,root,root) /etc/rc.d/init.d/glusterfsd
11c9e8ee 267
11c9e8ee
MK
268%files client
269%defattr(644,root,root,755)
5a19cfa6 270%attr(755,root,root) %{_bindir}/glusterfs-volgen
11c9e8ee 271%attr(755,root,root) %{_sbindir}/glusterfs
6c386b20 272%attr(755,root,root) %{_sbindir}/glusterfsd
11c9e8ee 273%attr(755,root,root) /sbin/mount.glusterfs
This page took 0.140936 seconds and 4 git commands to generate.