3 %bcond_with hadoop # Hadoop client (requires JNI)
4 %bcond_without java # Java binding
6 Summary: User space components of the Ceph file system
7 Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph
11 License: LGPL v2.1 (libraries), GPL v2 (some programs)
13 Source0: http://ceph.newdream.net/download/%{name}-%{version}.tar.bz2
14 # Source0-md5: 030c4cf11b37f26cbf202e7c68d9cf2e
15 Patch0: %{name}-init-fix.patch
16 Patch1: %{name}.logrotate.patch
17 Patch2: %{name}-link.patch
18 URL: http://ceph.newdream.net/
19 BuildRequires: autoconf >= 2.59
20 BuildRequires: automake
21 BuildRequires: boost-devel >= 1.34
22 BuildRequires: cryptopp-devel
23 BuildRequires: curl-devel
24 BuildRequires: expat-devel >= 1.95
25 BuildRequires: fcgi-devel
26 BuildRequires: gdbm-devel
27 %if %{with java} || %{with hadoop}
30 BuildRequires: keyutils-devel
31 BuildRequires: leveldb-devel
32 BuildRequires: libaio-devel
33 BuildRequires: libatomic_ops
34 BuildRequires: libedit-devel >= 2.11
35 BuildRequires: libfuse-devel
36 BuildRequires: libltdl-devel
37 BuildRequires: libs3-devel
38 BuildRequires: libstdc++-devel
39 BuildRequires: libtcmalloc-devel
40 BuildRequires: libtool >= 2:1.5
41 BuildRequires: libuuid-devel
42 BuildRequires: perl-base
43 BuildRequires: pkgconfig
44 BuildRequires: python >= 1:2.4
45 BuildRequires: rpmbuild(macros) >= 1.228
46 BuildRequires: snappy-devel
47 Requires(post,preun): /sbin/chkconfig
48 Requires(preun): rc-scripts
49 Requires: %{name}-libs = %{version}-%{release}
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 %define skip_post_check_so libcls_.*.so.*
56 Ceph is a distributed network file system designed to provide
57 excellent performance, reliability, and scalability.
59 %description -l pl.UTF-8
60 Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o
61 dobrej wydajności, wiarygodności i skalowalności.
64 Summary: Ceph shared libraries
65 Summary(pl.UTF-8): Biblioteki współdzielone Cepha
69 Ceph shared libraries.
71 %description libs -l pl.UTF-8
72 Biblioteki współdzielone Cepha.
75 Summary: Ceph header files
76 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha
78 Group: Development/Libraries
79 Requires: %{name}-libs = %{version}-%{release}
80 Requires: boost-devel >= 1.34
81 Requires: cryptopp-devel
82 Requires: leveldb-devel
83 Requires: libatomic_ops
84 Requires: libuuid-devel
87 This package contains the headers needed to develop programs that use
90 %description devel -l pl.UTF-8
91 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
92 wykorzystujących Cepha.
95 Summary: Ceph static libraries
96 Summary(pl.UTF-8): Biblioteki statyczne Cepha
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 This package contains static Ceph libraries.
104 %description static -l pl.UTF-8
105 Ten pakiet zawiera biblioteki statyczne Cepha.
107 %package -n python-ceph
108 Summary: Ceph Python bindings
109 Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha
110 Group: Development/Languages/Python
111 Requires: %{name}-libs = %{version}-%{release}
113 %description -n python-ceph
114 Ceph Python bindings.
116 %description -n python-ceph -l pl.UTF-8
117 Wiązania Pythona do bibliotek Cepha.
119 %package -n java-cephfs
120 Summary: CephFS Java bindings
121 Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS
122 Group: Libraries/Java
123 Requires: %{name}-libs = %{version}-%{release}
125 %description -n java-cephfs
126 CephFS Java bindings.
128 %description -n java-cephfs -l pl.UTF-8
129 Wiązania Javy do biblioteki CephFS.
132 Summary: Ceph FUSE-based client
133 Summary(pl.UTF-8): Klient Cepha oparty na FUSE
135 Requires: %{name} = %{version}-%{release}
138 FUSE based client for Ceph distributed network file system.
140 %description fuse -l pl.UTF-8
141 Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph.
144 Summary: rados REST gateway
145 Summary(pl.UTF-8): Bramka REST-owa rados
146 Group: Applications/System
147 #Requires: apache-mod_fcgid
150 radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
151 implemented as a FastCGI module using libfcgi, and can be used in
152 conjunction with any FastCGI capable web server.
154 %description radosgw -l pl.UTF-8
155 radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS.
156 Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może
157 być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI.
159 %package resource-agents
160 Summary: OCF Resource Agents for Ceph processes
161 Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha
162 Group: Applications/System
163 Requires: %{name} = %{version}-%{release}
164 Requires: resource-agents
166 %description resource-agents
167 OCF Resource Agents for Ceph processes.
169 %description resource-agents -l pl.UTF-8
170 Agenci OCF do monitorowania procesów Cepha.
172 %package -n hadoop-cephfs
173 Summary: Hadoop client for Ceph filesystem
174 Summary(pl.UTF-8): Klient Hadoopa dla systemu plików Ceph
176 Requires: %{name} = %{version}-%{release}
179 %description -n hadoop-cephfs
180 Hadoop client for Ceph filesystem.
182 %description -n hadoop-cephfs -l pl.UTF-8
183 Klient Hadoopa dla systemu plików Ceph.
197 %{?with_hadoop:CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"}
201 --with-hadoop%{!?with_hadoop:=no} \
204 --with-system-leveldb \
205 --with-system-libs3 \
206 %{?with_java:--enable-cephfs-java --with-jdk-dir=%{_jvmdir}/java} \
207 --disable-silent-rules
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/tmp,log/ceph/stat} \
214 $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d}
217 DESTDIR=$RPM_BUILD_ROOT \
220 install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph
221 install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph
224 %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la}
226 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhadoopcephfs.{la,a}
229 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcephfs_jni.{la,a}
233 %{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config}
238 rm -rf $RPM_BUILD_ROOT
241 /sbin/chkconfig --add ceph
242 %service ceph restart
245 if [ "$1" = "0" ] ; then
247 /sbin/chkconfig --del ceph
250 %post libs -p /sbin/ldconfig
251 %postun libs -p /sbin/ldconfig
253 %post -n java-cephfs -p /sbin/ldconfig
254 %postun -n java-cephfs -p /sbin/ldconfig
256 %post -n hadoop-cephfs -p /sbin/ldconfig
257 %postun -n hadoop-cephfs -p /sbin/ldconfig
260 %defattr(644,root,root,755)
261 # COPYING specifies licenses of individual parts
262 %doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config
263 %attr(754,root,root) /etc/rc.d/init.d/ceph
264 %dir %{_sysconfdir}/ceph
265 %attr(755,root,root) %{_bindir}/ceph
266 %attr(755,root,root) %{_bindir}/ceph-authtool
267 %attr(755,root,root) %{_bindir}/ceph-clsinfo
268 %attr(755,root,root) %{_bindir}/ceph-conf
269 %attr(755,root,root) %{_bindir}/ceph-coverage
270 %attr(755,root,root) %{_bindir}/ceph-debugpack
271 %attr(755,root,root) %{_bindir}/ceph-dencoder
272 %attr(755,root,root) %{_bindir}/ceph-filestore-dump
273 %attr(755,root,root) %{_bindir}/ceph-mds
274 %attr(755,root,root) %{_bindir}/ceph-mon
275 %attr(755,root,root) %{_bindir}/ceph-osd
276 %attr(755,root,root) %{_bindir}/ceph-rbdnamer
277 %attr(755,root,root) %{_bindir}/ceph-run
278 %attr(755,root,root) %{_bindir}/ceph-syn
279 %attr(755,root,root) %{_bindir}/cephfs
280 %attr(755,root,root) %{_bindir}/crushtool
281 %attr(755,root,root) %{_bindir}/librados-config
282 %attr(755,root,root) %{_bindir}/monmaptool
283 %attr(755,root,root) %{_bindir}/osdmaptool
284 %attr(755,root,root) %{_bindir}/rados
285 %attr(755,root,root) %{_bindir}/rbd
286 %attr(755,root,root) %{_bindir}/rbd-fuse
287 %attr(755,root,root) /sbin/ceph-create-keys
288 %attr(755,root,root) /sbin/ceph-disk-activate
289 %attr(755,root,root) /sbin/ceph-disk-prepare
290 %attr(755,root,root) /sbin/mkcephfs
291 %attr(755,root,root) /sbin/mount.ceph
292 %attr(755,root,root) /sbin/mount.fuse.ceph
293 %dir %{_libdir}/rados-classes
294 %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so*
295 %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so*
296 %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so*
297 %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so*
298 %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so*
300 %attr(755,root,root) %{_libdir}/ceph/ceph_common.sh
301 %config(noreplace) /etc/logrotate.d/ceph
302 %config(noreplace) %{_sysconfdir}/bash_completion.d/rados
303 %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph
304 %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd
305 %{_mandir}/man8/ceph.8*
306 %{_mandir}/man8/ceph-authtool.8*
307 %{_mandir}/man8/ceph-clsinfo.8*
308 %{_mandir}/man8/ceph-conf.8*
309 %{_mandir}/man8/ceph-debugpack.8*
310 %{_mandir}/man8/ceph-dencoder.8*
311 %{_mandir}/man8/ceph-mds.8*
312 %{_mandir}/man8/ceph-mon.8*
313 %{_mandir}/man8/ceph-osd.8*
314 %{_mandir}/man8/ceph-rbdnamer.8*
315 %{_mandir}/man8/ceph-run.8*
316 %{_mandir}/man8/ceph-syn.8*
317 %{_mandir}/man8/cephfs.8*
318 %{_mandir}/man8/crushtool.8*
319 %{_mandir}/man8/librados-config.8*
320 %{_mandir}/man8/mkcephfs.8*
321 %{_mandir}/man8/monmaptool.8*
322 %{_mandir}/man8/mount.ceph.8*
323 %{_mandir}/man8/osdmaptool.8*
324 %{_mandir}/man8/rados.8*
325 %{_mandir}/man8/radosgw.8*
326 %{_mandir}/man8/radosgw-admin.8*
327 %{_mandir}/man8/rbd.8*
328 %{_mandir}/man8/rbd-fuse.8*
330 %dir %{_localstatedir}/lib/ceph
331 %dir %{_localstatedir}/lib/ceph/tmp
332 %dir %{_localstatedir}/log/ceph
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.*
337 %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1
338 %attr(755,root,root) %{_libdir}/librados.so.*.*.*
339 %attr(755,root,root) %ghost %{_libdir}/librados.so.2
340 %attr(755,root,root) %{_libdir}/librbd.so.*.*.*
341 %attr(755,root,root) %ghost %{_libdir}/librbd.so.1
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/libcephfs.so
346 %attr(755,root,root) %{_libdir}/librados.so
347 %attr(755,root,root) %{_libdir}/librbd.so
348 %{_libdir}/libcephfs.la
349 %{_libdir}/librados.la
351 %{_includedir}/cephfs
356 %defattr(644,root,root,755)
357 %{_libdir}/libcephfs.a
358 %{_libdir}/librados.a
361 %files -n python-ceph
362 %defattr(644,root,root,755)
363 %{py_sitescriptdir}/rados.py[co]
364 %{py_sitescriptdir}/rbd.py[co]
367 %files -n java-cephfs
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.*
370 %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1
371 %attr(755,root,root) %{_libdir}/libcephfs_jni.so
372 %{_javadir}/libcephfs.jar
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_bindir}/ceph-fuse
378 %{_mandir}/man8/ceph-fuse.8*
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_bindir}/radosgw
383 %attr(755,root,root) %{_bindir}/radosgw-admin
384 %{_sysconfdir}/bash_completion.d/radosgw-admin
386 %files resource-agents
387 %defattr(644,root,root,755)
388 %dir %{_prefix}/lib/ocf/resource.d/ceph
389 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph
390 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds
391 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon
392 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd
393 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd
396 %files -n hadoop-cephfs
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/libhadoopcephfs.so.*.*.*
399 %attr(755,root,root) %ghost %{_libdir}/libhadoopcephfs.so.1
400 %attr(755,root,root) %{_libdir}/libhadoopcephfs.so