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