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