]>
Commit | Line | Data |
---|---|---|
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 | 18 | Summary: Clustered File Storage that can scale to peta bytes |
dae7af53 | 19 | Summary(pl.UTF-8): Klastrowy system przechowywania plików skalujący się do petabajtów |
d6a0cdd1 | 20 | Name: glusterfs |
37b19a82 | 21 | Version: 3.1.1 |
6c386b20 MK |
22 | #%%define _rc {rc2} |
23 | %define _version %{version} | |
cfcff11b | 24 | Release: 1 |
7f75179c | 25 | License: GPL v3+ |
dae7af53 | 26 | Group: Applications/System |
37b19a82 MK |
27 | # http://download.gluster.com/pub/gluster/glusterfs/3.1/LATEST/glusterfs-3.1.1.tar.gz |
28 | Source0: http://ftp.gluster.com/pub/gluster/glusterfs/3.1/LATEST/glusterfs-%{version}.tar.gz | |
29 | # Source0-md5: 4584710adee36920c97a658b25a1446d | |
824dab89 | 30 | Source1: glusterfsd.init |
cfcff11b MK |
31 | Patch0: %{name}-parallel-build.patch |
32 | Patch1: %{name}-workdir.patch | |
6c386b20 | 33 | URL: http://www.gluster.org/ |
4163e7ad JB |
34 | BuildRequires: autoconf >= 2.50 |
35 | BuildRequires: automake | |
d6a0cdd1 | 36 | BuildRequires: bison |
37 | BuildRequires: flex | |
7f75179c | 38 | BuildRequires: libfuse-devel >= 2.6 |
4163e7ad | 39 | BuildRequires: libtool |
cfcff11b | 40 | BuildRequires: readline-devel |
7f75179c | 41 | %{?with_ibverbs:BuildRequires: libibverbs-devel >= 1.0.4} |
d6a0cdd1 | 42 | BuildRequires: rpmbuild(macros) >= 1.228 |
d6a0cdd1 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
45 | %description | |
46 | GlusterFS is a clustered file-system capable of scaling to several | |
47 | peta-bytes. It aggregates various storage bricks over Infiniband RDMA | |
48 | or TCP/IP interconnect into one large parallel network file system. | |
49 | GlusterFS is one of the most sophisticated file system in terms of | |
50 | features and extensibility. It borrows a powerful concept called | |
51 | Translators from GNU Hurd kernel. Much of the code in GlusterFS is in | |
52 | userspace and easily manageable. | |
53 | ||
dae7af53 JB |
54 | %description -l pl.UTF-8 |
55 | GlusterFS to klastrowy system plików skalujący się do petabajtów. | |
56 | Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP | |
11c9e8ee MK |
57 | w jeden duży, równoległy sieciowy system plików. GlusterFS to |
58 | jeden z najbardziej wyszukanych systemów plików jeśli chodzi o | |
59 | możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie | |
60 | Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w | |
61 | przestrzeni użytkownika i jest łatwo zarządzalna. | |
62 | ||
63 | %package common | |
64 | Summary: GlusterFS Library and Translators | |
5f2d10ee JB |
65 | Summary(pl.UTF-8): Biblioteka i translatory GlusterFS-a |
66 | Group: Libraries | |
11c9e8ee MK |
67 | |
68 | %description common | |
69 | GlusterFS is a clustered file-system capable of scaling to several | |
70 | peta-bytes. It aggregates various storage bricks over Infiniband RDMA | |
71 | or TCP/IP interconnect into one large parallel network file system. | |
72 | GlusterFS is one of the most sophisticated file system in terms of | |
73 | features and extensibility. It borrows a powerful concept called | |
74 | Translators from GNU Hurd kernel. Much of the code in GlusterFS is in | |
75 | userspace and easily manageable. | |
76 | ||
77 | This package includes libglusterfs and glusterfs translator modules | |
78 | common to both GlusterFS server and client framework. | |
79 | ||
80 | %description common -l pl.UTF-8 | |
5f2d10ee JB |
81 | GlusterFS to klastrowy system plików skalujący się do petabajtów. |
82 | Scala różne kawałki miejsca po łączach Infiniband RDMA lub TCP/IP | |
83 | w jeden duży, równoległy sieciowy system plików. GlusterFS to | |
84 | jeden z najbardziej wyszukanych systemów plików jeśli chodzi o | |
85 | możliwości i rozszerzalność. Zapożycza potężną ideę o nazwie | |
86 | Translators z jądra GNU Hurd. Duża część kodu GlusterFS działa w | |
87 | przestrzeni użytkownika i jest łatwo zarządzalna. | |
88 | ||
89 | Ten pakiet zawiera libglusterfs i moduły translatorów glusterfs | |
90 | wspólne dla klienta jak i serwera GlusterFS-a. | |
11c9e8ee | 91 | |
4163e7ad JB |
92 | %package devel |
93 | Summary: GlusterFS development files | |
94 | Summary(pl.UTF-8): Pliki programistyczne GlusterFS-a | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-common = %{version}-%{release} | |
97 | ||
98 | %description devel | |
99 | This package provides the development files for GlusterFS library. | |
100 | ||
101 | %description devel -l pl.UTF-8 | |
102 | Ten 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 | |
117 | Summary: InfiniBand "verbs" transport plugins for GlusterFS | |
118 | Summary(pl.UTF-8): Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a | |
119 | Group: Libraries | |
120 | Requires: %{name}-common = %{version}-%{release} | |
121 | Requires: libibverbs >= 1.0.4 | |
122 | ||
123 | %description transport-ibverbs | |
124 | InfiniBand "verbs" transport plugins for GlusterFS. | |
125 | ||
126 | %description transport-ibverbs -l pl.UTF-8 | |
127 | Wtyczki transportu "verbs" InfiniBand dla GlusterFS-a. | |
128 | ||
11c9e8ee MK |
129 | %package server |
130 | Summary: GlusterFS Server | |
5f2d10ee JB |
131 | Summary(pl.UTF-8): Serwer GlusterFS-a |
132 | Group: Daemons | |
6c386b20 | 133 | Requires: %{name}-client = %{version}-%{release} |
5f2d10ee JB |
134 | Requires: %{name}-common = %{version}-%{release} |
135 | Requires(post,preun): /sbin/chkconfig | |
136 | Requires: rc-scripts | |
11c9e8ee MK |
137 | |
138 | %description server | |
11c9e8ee MK |
139 | This package provides the glusterfs server daemon. |
140 | ||
141 | %description server -l pl.UTF-8 | |
5f2d10ee | 142 | Ten pakiet zawiera część serwerową GlusterFS-a. |
11c9e8ee MK |
143 | |
144 | %package client | |
145 | Summary: GlusterFS Client | |
5f2d10ee | 146 | Summary(pl.UTF-8): Klient GlusterFS |
11c9e8ee | 147 | Group: Applications/System |
5f2d10ee | 148 | Requires: %{name}-common = %{version}-%{release} |
7f75179c | 149 | Requires: libfuse >= 2.6 |
11c9e8ee MK |
150 | |
151 | %description client | |
11c9e8ee MK |
152 | This package provides the FUSE based GlusterFS client. |
153 | ||
154 | %description client -l pl.UTF-8 | |
5f2d10ee | 155 | Ten 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 |
162 | cp -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 | |
178 | rm -rf $RPM_BUILD_ROOT | |
824dab89 | 179 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
cfcff11b | 180 | install -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 | |
186 | mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/glusterd.vol $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/glusterfsd.vol | |
d6a0cdd1 | 187 | |
5f2d10ee JB |
188 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/glusterfsd |
189 | ||
7f75179c JB |
190 | rm -r $RPM_BUILD_ROOT%{_docdir}/glusterfs/examples |
191 | ||
d6a0cdd1 | 192 | %clean |
193 | rm -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 |