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