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