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