]>
Commit | Line | Data |
---|---|---|
714b93ed JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with hadoop # Hadoop client (requires JNI) | |
4 | # | |
2a1a6301 | 5 | Summary: User space components of the Ceph file system |
e5fc70df | 6 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 7 | Name: ceph |
714b93ed JB |
8 | Version: 0.52 |
9 | Release: 1 | |
9e1f65de | 10 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 JR |
11 | Group: Base |
12 | Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2 | |
714b93ed | 13 | # Source0-md5: b3b9c8e7160d69cdf735628342a8dee0 |
2a1a6301 JR |
14 | Patch0: %{name}-init-fix.patch |
15 | Patch1: %{name}.logrotate.patch | |
041b9abb | 16 | Patch2: %{name}-link.patch |
2a1a6301 | 17 | URL: http://ceph.newdream.net/ |
714b93ed JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake | |
20 | BuildRequires: boost-devel >= 1.34 | |
2a1a6301 JR |
21 | BuildRequires: cryptopp-devel |
22 | BuildRequires: curl-devel | |
714b93ed | 23 | BuildRequires: expat-devel >= 1.95 |
2a1a6301 JR |
24 | BuildRequires: fcgi-devel |
25 | BuildRequires: gdbm-devel | |
714b93ed | 26 | %{?with_hadoop:BuildRequires: jdk} |
2a1a6301 | 27 | BuildRequires: keyutils-devel |
f965be58 | 28 | BuildRequires: leveldb-devel |
714b93ed | 29 | BuildRequires: libaio-devel |
2a1a6301 | 30 | BuildRequires: libatomic_ops |
714b93ed | 31 | BuildRequires: libedit-devel >= 2.11 |
2a1a6301 JR |
32 | BuildRequires: libfuse-devel |
33 | BuildRequires: libltdl-devel | |
f965be58 | 34 | BuildRequires: libs3-devel |
2a1a6301 JR |
35 | BuildRequires: libstdc++-devel |
36 | BuildRequires: libtcmalloc-devel | |
714b93ed | 37 | BuildRequires: libtool >= 2:1.5 |
2a1a6301 | 38 | BuildRequires: libuuid-devel |
e5fc70df | 39 | BuildRequires: perl-base |
2a1a6301 | 40 | BuildRequires: pkgconfig |
714b93ed | 41 | BuildRequires: python >= 1:2.4 |
2a1a6301 | 42 | BuildRequires: rpmbuild(macros) >= 1.228 |
714b93ed | 43 | BuildRequires: sed >= 4.0 |
f965be58 | 44 | BuildRequires: snappy-devel |
2a1a6301 JR |
45 | Requires(post,preun): /sbin/chkconfig |
46 | Requires(preun): rc-scripts | |
47 | Requires: %{name}-libs = %{version}-%{release} | |
60d5543f | 48 | Obsoletes: gcephtool |
2a1a6301 JR |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %define skip_post_check_so libcls_.*.so.* | |
52 | ||
53 | %description | |
54 | Ceph is a distributed network file system designed to provide | |
55 | excellent performance, reliability, and scalability. | |
56 | ||
e5fc70df JB |
57 | %description -l pl.UTF-8 |
58 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
59 | dobrej wydajności, wiarygodności i skalowalności. | |
60 | ||
2a1a6301 JR |
61 | %package libs |
62 | Summary: Ceph shared libraries | |
e5fc70df | 63 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 JR |
64 | Group: Libraries |
65 | ||
66 | %description libs | |
67 | Ceph shared libraries. | |
68 | ||
e5fc70df JB |
69 | %description libs -l pl.UTF-8 |
70 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
71 | |
72 | %package devel | |
e5fc70df JB |
73 | Summary: Ceph header files |
74 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
2a1a6301 JR |
75 | Group: Development/Libraries |
76 | Requires: %{name}-libs = %{version}-%{release} | |
77 | ||
78 | %description devel | |
79 | This package contains the headers needed to develop programs that use | |
80 | Ceph. | |
81 | ||
e5fc70df JB |
82 | %description devel -l pl.UTF-8 |
83 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
84 | wykorzystujących Cepha. | |
85 | ||
2a1a6301 JR |
86 | %package static |
87 | Summary: Ceph static libraries | |
e5fc70df | 88 | Summary(pl.UTF-8): Biblioteki statyczne Cepha |
2a1a6301 JR |
89 | License: LGPLv2 |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
92 | ||
93 | %description static | |
94 | This package contains static Ceph libraries. | |
95 | ||
e5fc70df JB |
96 | %description static -l pl.UTF-8 |
97 | Ten pakiet zawiera biblioteki statyczne Cepha. | |
98 | ||
99 | %package -n python-ceph | |
100 | Summary: Ceph Python bindings | |
101 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha | |
102 | Group: Development/Languages/Python | |
103 | Requires: %{name}-libs = %{version}-%{release} | |
104 | ||
105 | %description -n python-ceph | |
106 | Ceph Python bindings. | |
107 | ||
108 | %description -n python-ceph -l pl.UTF-8 | |
109 | Wiązania Pythona do bibliotek Cepha. | |
110 | ||
111 | %package fuse | |
112 | Summary: Ceph FUSE-based client | |
113 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
114 | Group: Base | |
115 | Requires: %{name} = %{version}-%{release} | |
116 | ||
117 | %description fuse | |
118 | FUSE based client for Ceph distributed network file system. | |
119 | ||
120 | %description fuse -l pl.UTF-8 | |
121 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
122 | ||
2a1a6301 JR |
123 | %package radosgw |
124 | Summary: rados REST gateway | |
e5fc70df JB |
125 | Summary(pl.UTF-8): Bramka REST-owa rados |
126 | Group: Applications/System | |
2a1a6301 JR |
127 | #Requires: apache-mod_fcgid |
128 | ||
129 | %description radosgw | |
130 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
131 | implemented as a FastCGI module using libfcgi, and can be used in | |
132 | conjunction with any FastCGI capable web server. | |
133 | ||
e5fc70df JB |
134 | %description radosgw -l pl.UTF-8 |
135 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
136 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
137 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
138 | ||
2a1a6301 | 139 | %package obsync |
e5fc70df JB |
140 | Summary: Synchronize data between cloud object storage providers or a local directory |
141 | Summary(pl.UTF-8): Synchronizacja danych między obiektami przechowywanymi w chmurze i katalogami lokalnymi | |
2a1a6301 JR |
142 | Group: Applications/Networking |
143 | Requires: python | |
144 | Requires: python-boto | |
145 | ||
146 | %description obsync | |
147 | obsync is a tool to synchronize objects between cloud object storage | |
148 | providers, such as Amazon S3 (or compatible services), a Ceph RADOS | |
149 | cluster, or a local directory. | |
150 | ||
e5fc70df JB |
151 | %description obsync -l pl.UTF-8 |
152 | obsync to narzędzie do synchronizacji obiektów między systemami | |
153 | przechowującymi obiekty w chmurze, takimi jak Amazon S3 (lub serwisy | |
154 | kompatybilne) a klastrem Ceph RADOS lub katalogiem lokalnym. | |
155 | ||
245cb856 | 156 | %package resource-agents |
8029515d JB |
157 | Summary: OCF Resource Agents for Ceph processes |
158 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
159 | Group: Applications/System | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | Requires: resource-agents | |
162 | ||
245cb856 | 163 | %description resource-agents |
8029515d JB |
164 | OCF Resource Agents for Ceph processes. |
165 | ||
245cb856 | 166 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
167 | Agenci OCF do monitorowania procesów Cepha. |
168 | ||
245cb856 JB |
169 | %package -n hadoop-cephfs |
170 | Summary: Hadoop client for Ceph filesystem | |
171 | Summary(pl.UTF-8): Klient Hadoopa dla systemu plików Ceph | |
172 | Group: Libraries | |
173 | Requires: %{name} = %{version}-%{release} | |
174 | Requires: hadoop | |
175 | ||
176 | %description -n hadoop-cephfs | |
177 | Hadoop client for Ceph filesystem. | |
178 | ||
179 | %description -n hadoop-cephfs -l pl.UTF-8 | |
180 | Klient Hadoopa dla systemu plików Ceph. | |
181 | ||
2a1a6301 JR |
182 | %prep |
183 | %setup -q | |
184 | %patch0 -p1 | |
185 | %patch1 -p0 | |
186 | %patch2 -p1 | |
2a1a6301 | 187 | |
714b93ed JB |
188 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' src/obsync/obsync |
189 | ||
2a1a6301 JR |
190 | %build |
191 | %{__libtoolize} | |
192 | %{__aclocal} | |
193 | %{__autoconf} | |
194 | %{__autoheader} | |
195 | %{__automake} | |
245cb856 | 196 | %{?with_hadoop:CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"} |
2a1a6301 JR |
197 | %configure \ |
198 | --sbindir=/sbin \ | |
714b93ed JB |
199 | --with-cryptopp \ |
200 | --with-hadoop%{!?with_hadoop:=no} \ | |
8029515d | 201 | --with-ocf \ |
2a1a6301 | 202 | --with-radosgw \ |
f965be58 JB |
203 | --with-system-leveldb \ |
204 | --with-system-libs3 \ | |
714b93ed | 205 | --disable-silent-rules |
2a1a6301 | 206 | |
714b93ed | 207 | %{__make} |
2a1a6301 JR |
208 | |
209 | %install | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \ | |
212 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d} | |
213 | %{__make} install \ | |
214 | DESTDIR=$RPM_BUILD_ROOT | |
215 | ||
216 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
217 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
218 | ||
245cb856 JB |
219 | %if %{with hadoop} |
220 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a} | |
221 | %endif | |
222 | ||
2a1a6301 | 223 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la} |
714b93ed | 224 | %py_postclean |
2a1a6301 JR |
225 | |
226 | %clean | |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
229 | %post | |
230 | /sbin/chkconfig --add ceph | |
231 | %service ceph restart | |
232 | ||
233 | %preun | |
234 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
235 | %service ceph stop |
236 | /sbin/chkconfig --del ceph | |
2a1a6301 JR |
237 | fi |
238 | ||
e5fc70df JB |
239 | %post libs -p /sbin/ldconfig |
240 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 241 | |
245cb856 JB |
242 | %post -n hadoop-cephfs -p /sbin/ldconfig |
243 | %postun -n hadoop-cephfs -p /sbin/ldconfig | |
244 | ||
2a1a6301 JR |
245 | %files |
246 | %defattr(644,root,root,755) | |
9e1f65de JB |
247 | # COPYING specifies licenses of individual parts |
248 | %doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config | |
2a1a6301 JR |
249 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
250 | %dir %{_sysconfdir}/ceph | |
251 | %attr(755,root,root) %{_bindir}/ceph | |
252 | %attr(755,root,root) %{_bindir}/cephfs | |
253 | %attr(755,root,root) %{_bindir}/ceph-conf | |
254 | %attr(755,root,root) %{_bindir}/ceph-clsinfo | |
60d5543f | 255 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
2a1a6301 JR |
256 | %attr(755,root,root) %{_bindir}/crushtool |
257 | %attr(755,root,root) %{_bindir}/monmaptool | |
258 | %attr(755,root,root) %{_bindir}/osdmaptool | |
259 | %attr(755,root,root) %{_bindir}/ceph-authtool | |
260 | %attr(755,root,root) %{_bindir}/ceph-syn | |
261 | %attr(755,root,root) %{_bindir}/ceph-run | |
262 | %attr(755,root,root) %{_bindir}/ceph-mon | |
263 | %attr(755,root,root) %{_bindir}/ceph-mds | |
264 | %attr(755,root,root) %{_bindir}/ceph-osd | |
265 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer | |
266 | %attr(755,root,root) %{_bindir}/librados-config | |
267 | %attr(755,root,root) %{_bindir}/rados | |
268 | %attr(755,root,root) %{_bindir}/rbd | |
269 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
270 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
271 | %dir %{_libdir}/rados-classes | |
60d5543f | 272 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* |
2a1a6301 JR |
273 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
274 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* | |
60d5543f PS |
275 | %attr(755,root,root) /sbin/ceph-disk-activate |
276 | %attr(755,root,root) /sbin/ceph-disk-prepare | |
2a1a6301 JR |
277 | %attr(755,root,root) /sbin/mkcephfs |
278 | %attr(755,root,root) /sbin/mount.ceph | |
279 | %dir %{_libdir}/ceph | |
280 | %attr(755,root,root) %{_libdir}/ceph/ceph_common.sh | |
281 | %config(noreplace) /etc/logrotate.d/ceph | |
282 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
283 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
284 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
285 | %{_mandir}/man8/ceph.8* | |
286 | %{_mandir}/man8/ceph-authtool.8* | |
287 | %{_mandir}/man8/ceph-clsinfo.8* | |
288 | %{_mandir}/man8/ceph-conf.8* | |
289 | %{_mandir}/man8/ceph-debugpack.8* | |
60d5543f | 290 | %{_mandir}/man8/ceph-dencoder.8* |
2a1a6301 JR |
291 | %{_mandir}/man8/ceph-mds.8* |
292 | %{_mandir}/man8/ceph-mon.8* | |
293 | %{_mandir}/man8/ceph-osd.8* | |
60d5543f | 294 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
295 | %{_mandir}/man8/ceph-run.8* |
296 | %{_mandir}/man8/ceph-syn.8* | |
297 | %{_mandir}/man8/cephfs.8* | |
298 | %{_mandir}/man8/crushtool.8* | |
299 | %{_mandir}/man8/librados-config.8* | |
300 | %{_mandir}/man8/mkcephfs.8* | |
301 | %{_mandir}/man8/monmaptool.8* | |
302 | %{_mandir}/man8/mount.ceph.8* | |
303 | %{_mandir}/man8/osdmaptool.8* | |
304 | %{_mandir}/man8/rados.8* | |
305 | %{_mandir}/man8/radosgw.8* | |
306 | %{_mandir}/man8/radosgw-admin.8* | |
307 | %{_mandir}/man8/rbd.8* | |
60d5543f | 308 | |
2a1a6301 JR |
309 | %dir %{_localstatedir}/lib/ceph |
310 | %dir %{_localstatedir}/lib/ceph/tmp | |
311 | %dir %{_localstatedir}/log/ceph | |
312 | ||
313 | %files libs | |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
316 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
317 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* | |
318 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
319 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* | |
320 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
2a1a6301 | 321 | |
2a1a6301 JR |
322 | %files devel |
323 | %defattr(644,root,root,755) | |
2a1a6301 JR |
324 | %attr(755,root,root) %{_libdir}/libcephfs.so |
325 | %attr(755,root,root) %{_libdir}/librados.so | |
2a1a6301 JR |
326 | %attr(755,root,root) %{_libdir}/librbd.so |
327 | %{_libdir}/libcephfs.la | |
328 | %{_libdir}/librados.la | |
2a1a6301 | 329 | %{_libdir}/librbd.la |
e5fc70df JB |
330 | %{_includedir}/cephfs |
331 | %{_includedir}/rados | |
332 | %{_includedir}/rbd | |
2a1a6301 JR |
333 | |
334 | %files static | |
335 | %defattr(644,root,root,755) | |
336 | %{_libdir}/libcephfs.a | |
337 | %{_libdir}/librados.a | |
2a1a6301 JR |
338 | %{_libdir}/librbd.a |
339 | ||
e5fc70df JB |
340 | %files -n python-ceph |
341 | %defattr(644,root,root,755) | |
714b93ed JB |
342 | %{py_sitescriptdir}/rados.py[co] |
343 | %{py_sitescriptdir}/rbd.py[co] | |
e5fc70df JB |
344 | |
345 | %files fuse | |
346 | %defattr(644,root,root,755) | |
e5fc70df JB |
347 | %attr(755,root,root) %{_bindir}/ceph-fuse |
348 | %{_mandir}/man8/ceph-fuse.8* | |
349 | ||
2a1a6301 JR |
350 | %files radosgw |
351 | %defattr(644,root,root,755) | |
352 | %attr(755,root,root) %{_bindir}/radosgw | |
353 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
354 | %{_sysconfdir}/bash_completion.d/radosgw-admin | |
355 | ||
356 | %files obsync | |
357 | %defattr(644,root,root,755) | |
358 | %attr(755,root,root) %{_bindir}/obsync | |
359 | %attr(755,root,root) %{_bindir}/boto_tool | |
60d5543f | 360 | %{_mandir}/man1/obsync.1* |
8029515d | 361 | |
245cb856 | 362 | %files resource-agents |
8029515d JB |
363 | %defattr(644,root,root,755) |
364 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
365 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph | |
366 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds | |
367 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon | |
368 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd | |
369 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd | |
245cb856 JB |
370 | |
371 | %if %{with hadoop} | |
372 | %files -n hadoop-cephfs | |
373 | %defattr(644,root,root,755) | |
374 | %attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.* | |
375 | %attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1 | |
376 | %attr(755,root,root) %{_libdir}/libhadoopcephfs.so | |
377 | %endif |