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