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