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