]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - proper init scripts if non-systemd boot is too be supported | |
3 | # (upstream scripts seem overcomplicated and hardly useful) | |
4 | # - run as non-root user | |
5 | # | |
6 | # Note on versioning: http://docs.ceph.com/docs/master/releases/ | |
7 | # | |
8 | # Conditional build: | |
9 | %bcond_without java # Java binding | |
10 | %bcond_with accelio # Accelio transport support | |
11 | %bcond_with kinetic # Kinetic storage support [needs update for internal API changes] | |
12 | %bcond_with rocksdb # RocksDB storage support [needs update for internal API changes] | |
13 | %bcond_with zfs # ZFS support | |
14 | %bcond_without lttng # LTTng tracing | |
15 | %bcond_without babeltrace # Babeltrace traces support | |
16 | %bcond_without tcmalloc # tcmalloc allocator | |
17 | ||
18 | %ifarch x32 | |
19 | %undefine with_tcmalloc | |
20 | %endif | |
21 | # | |
22 | Summary: User space components of the Ceph file system | |
23 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph | |
24 | Name: ceph | |
25 | Version: 0.94.10 | |
26 | Release: 1 | |
27 | License: LGPL v2.1 (libraries), GPL v2 (some programs) | |
28 | Group: Base | |
29 | Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz | |
30 | # Source0-md5: 9bf0d6df74e6da3725dcc3b7adf3d849 | |
31 | Source1: ceph.sysconfig | |
32 | # based on files from https://github.com/ceph/ceph/tree/master/systemd | |
33 | Source10: cephctl | |
34 | Source11: ceph-mds@.service | |
35 | Source12: ceph-mon@.service | |
36 | Source13: ceph-osd@.service | |
37 | Source14: ceph.target | |
38 | Source15: ceph.tmpfiles | |
39 | Patch0: %{name}-init-fix.patch | |
40 | Patch1: %{name}.logrotate.patch | |
41 | Patch2: cxx.patch | |
42 | URL: http://ceph.com/ | |
43 | %{?with_accelio:BuildRequires: accelio-devel} | |
44 | BuildRequires: autoconf >= 2.59 | |
45 | BuildRequires: automake | |
46 | %{?with_babeltrace:BuildRequires: babeltrace-devel} | |
47 | BuildRequires: boost-devel >= 1.34 | |
48 | BuildRequires: curl-devel | |
49 | BuildRequires: expat-devel >= 1.95 | |
50 | BuildRequires: fcgi-devel | |
51 | BuildRequires: gdbm-devel | |
52 | %if %{with java} | |
53 | BuildRequires: jdk | |
54 | %endif | |
55 | BuildRequires: keyutils-devel | |
56 | %{?with_kinetic:BuildRequires: kinetic-cpp-client} | |
57 | BuildRequires: leveldb-devel >= 1.2 | |
58 | BuildRequires: libaio-devel | |
59 | BuildRequires: libatomic_ops | |
60 | BuildRequires: libblkid-devel >= 2.17 | |
61 | BuildRequires: libedit-devel >= 2.11 | |
62 | BuildRequires: libfuse-devel | |
63 | %{?with_accelio:BuildRequires: libibverbs-devel} | |
64 | BuildRequires: libltdl-devel | |
65 | %{?with_accelio:BuildRequires: librdmacm-devel} | |
66 | BuildRequires: libs3-devel | |
67 | BuildRequires: libstdc++-devel | |
68 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} | |
69 | BuildRequires: libtool >= 2:1.5 | |
70 | BuildRequires: libuuid-devel | |
71 | %{?with_lttng:BuildRequires: lttng-ust-devel} | |
72 | BuildRequires: nss-devel | |
73 | BuildRequires: perl-base | |
74 | BuildRequires: pkgconfig | |
75 | BuildRequires: python >= 1:2.4 | |
76 | %{?with_rocksdb:BuildRequires: rocksdb-devel} | |
77 | BuildRequires: rpmbuild(macros) >= 1.671 | |
78 | BuildRequires: snappy-devel | |
79 | BuildRequires: udev-devel | |
80 | BuildRequires: xfsprogs-devel | |
81 | %ifarch %{x8664} | |
82 | BuildRequires: yasm | |
83 | %endif | |
84 | %{?with_zfs:BuildRequires: zfs-devel} | |
85 | Requires(post,preun): /sbin/chkconfig | |
86 | Requires(preun): rc-scripts | |
87 | Requires: %{name}-libs = %{version}-%{release} | |
88 | Requires: python-%{name} = %{version}-%{release} | |
89 | Requires: systemd-units >= 38 | |
90 | Obsoletes: gcephtool | |
91 | Obsoletes: hadoop-cephfs | |
92 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
93 | ||
94 | %define skip_post_check_so libcls_.*.so.* libec_.*.so.* | |
95 | ||
96 | %description | |
97 | Ceph is a distributed network file system designed to provide | |
98 | excellent performance, reliability, and scalability. | |
99 | ||
100 | %description -l pl.UTF-8 | |
101 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
102 | dobrej wydajności, wiarygodności i skalowalności. | |
103 | ||
104 | %package libs | |
105 | Summary: Ceph shared libraries | |
106 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha | |
107 | Group: Libraries | |
108 | ||
109 | %description libs | |
110 | Ceph shared libraries. | |
111 | ||
112 | %description libs -l pl.UTF-8 | |
113 | Biblioteki współdzielone Cepha. | |
114 | ||
115 | %package devel | |
116 | Summary: Ceph header files | |
117 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
118 | License: LGPL v2.1 | |
119 | Group: Development/Libraries | |
120 | Requires: %{name}-libs = %{version}-%{release} | |
121 | Requires: boost-devel >= 1.34 | |
122 | Requires: nss-devel | |
123 | Requires: leveldb-devel | |
124 | Requires: libatomic_ops | |
125 | Requires: libuuid-devel | |
126 | ||
127 | %description devel | |
128 | This package contains the headers needed to develop programs that use | |
129 | Ceph. | |
130 | ||
131 | %description devel -l pl.UTF-8 | |
132 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
133 | wykorzystujących Cepha. | |
134 | ||
135 | %package static | |
136 | Summary: Ceph static libraries | |
137 | Summary(pl.UTF-8): Biblioteki statyczne Cepha | |
138 | License: LGPL v2.1 | |
139 | Group: Development/Libraries | |
140 | Requires: %{name}-devel = %{version}-%{release} | |
141 | ||
142 | %description static | |
143 | This package contains static Ceph libraries. | |
144 | ||
145 | %description static -l pl.UTF-8 | |
146 | Ten pakiet zawiera biblioteki statyczne Cepha. | |
147 | ||
148 | %package -n python-ceph | |
149 | Summary: Ceph Python bindings | |
150 | Summary(pl.UTF-8): Wiązania Pythona do bibliotek Cepha | |
151 | Group: Development/Languages/Python | |
152 | Requires: %{name}-libs = %{version}-%{release} | |
153 | ||
154 | %description -n python-ceph | |
155 | Ceph Python bindings. | |
156 | ||
157 | %description -n python-ceph -l pl.UTF-8 | |
158 | Wiązania Pythona do bibliotek Cepha. | |
159 | ||
160 | %package -n java-cephfs | |
161 | Summary: CephFS Java bindings | |
162 | Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS | |
163 | Group: Libraries/Java | |
164 | Requires: %{name}-libs = %{version}-%{release} | |
165 | ||
166 | %description -n java-cephfs | |
167 | CephFS Java bindings. | |
168 | ||
169 | %description -n java-cephfs -l pl.UTF-8 | |
170 | Wiązania Javy do biblioteki CephFS. | |
171 | ||
172 | %package fuse | |
173 | Summary: Ceph FUSE-based client | |
174 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
175 | Group: Base | |
176 | Requires: %{name} = %{version}-%{release} | |
177 | ||
178 | %description fuse | |
179 | FUSE based client for Ceph distributed network file system. | |
180 | ||
181 | %description fuse -l pl.UTF-8 | |
182 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
183 | ||
184 | %package radosgw | |
185 | Summary: rados REST gateway | |
186 | Summary(pl.UTF-8): Bramka REST-owa rados | |
187 | Group: Applications/System | |
188 | #Requires: apache-mod_fcgid | |
189 | ||
190 | %description radosgw | |
191 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
192 | implemented as a FastCGI module using libfcgi, and can be used in | |
193 | conjunction with any FastCGI capable web server. | |
194 | ||
195 | %description radosgw -l pl.UTF-8 | |
196 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
197 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
198 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
199 | ||
200 | %package resource-agents | |
201 | Summary: OCF Resource Agents for Ceph processes | |
202 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
203 | Group: Applications/System | |
204 | Requires: %{name} = %{version}-%{release} | |
205 | Requires: resource-agents | |
206 | ||
207 | %description resource-agents | |
208 | OCF Resource Agents for Ceph processes. | |
209 | ||
210 | %description resource-agents -l pl.UTF-8 | |
211 | Agenci OCF do monitorowania procesów Cepha. | |
212 | ||
213 | %prep | |
214 | %setup -q | |
215 | %patch0 -p1 | |
216 | %patch1 -p1 | |
217 | %patch2 -p1 | |
218 | ||
219 | %build | |
220 | %{__libtoolize} | |
221 | %{__aclocal} -I m4 | |
222 | %{__autoconf} | |
223 | %{__autoheader} | |
224 | %{__automake} | |
225 | # required by xfs headers (for off64_t) | |
226 | CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64" | |
227 | # ac_cv_prog_uudecode_base64=no is a hack to compile Test.class instead of | |
228 | # using included one which fails with Sun/Oracle JDK 1.6 | |
229 | %configure \ | |
230 | %{?with_java:JAVAC=/usr/bin/javac} \ | |
231 | %{?with_zfs:LIBZFS_CFLAGS="-I/usr/include/libzfs -I/usr/include/libspl"} \ | |
232 | ac_cv_prog_uudecode_base64=no \ | |
233 | --sbindir=/sbin \ | |
234 | %{!?with_babeltrace:--without-babeltrace} \ | |
235 | --without-cryptopp \ | |
236 | --with-nss \ | |
237 | %{!?with_tcmalloc:--without-tcmalloc} \ | |
238 | %{?with_kinetic:--with-kinetic} \ | |
239 | %{?with_rocksdb:--with-librocksdb} \ | |
240 | %{?with_zfs:--with-libzfs} \ | |
241 | %{!?with_lttng:--without-lttng} \ | |
242 | --with-ocf \ | |
243 | --with-radosgw \ | |
244 | --with-system-leveldb \ | |
245 | --with-system-libs3 \ | |
246 | %{?with_java:--enable-cephfs-java --with-jdk-dir=%{_jvmdir}/java} \ | |
247 | --disable-silent-rules \ | |
248 | %{?with_accelio:--enable-xio} | |
249 | ||
250 | %{__make} -j1 | |
251 | ||
252 | %install | |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/{tmp,mon,osd,mds},log/ceph/stat,run/ceph} \ | |
255 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d/init.d,sysconfig} \ | |
256 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},/etc/systemd/system/ceph.target.wants} | |
257 | ||
258 | %{__make} install \ | |
259 | DESTDIR=$RPM_BUILD_ROOT \ | |
260 | javadir=%{_javadir} | |
261 | ||
262 | install -p src/init-ceph $RPM_BUILD_ROOT/etc/rc.d/init.d/ceph | |
263 | install -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
264 | ||
265 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/ceph | |
266 | install %{SOURCE10} $RPM_BUILD_ROOT%{_bindir} | |
267 | install %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir} | |
268 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ceph.service | |
269 | install %{SOURCE15} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ceph.conf | |
270 | ||
271 | # loadable modules | |
272 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/erasure-code/*.{a,la} | |
273 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rados-classes/*.{a,la} | |
274 | %if %{with java} | |
275 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcephfs_jni.{la,a} | |
276 | %endif | |
277 | ||
278 | # packaged as %doc | |
279 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/ceph/sample.{ceph.conf,fetch_config} | |
280 | ||
281 | %py_postclean | |
282 | ||
283 | %clean | |
284 | rm -rf $RPM_BUILD_ROOT | |
285 | ||
286 | %post | |
287 | /sbin/chkconfig --add ceph | |
288 | %service ceph restart | |
289 | ||
290 | # actual services are to be enabled on cluster deployment | |
291 | %systemd_post %{name}.target | |
292 | ||
293 | %preun | |
294 | if [ "$1" = "0" ] ; then | |
295 | %service ceph stop | |
296 | /sbin/chkconfig --del ceph | |
297 | fi | |
298 | %systemd_preun %{name}.target | |
299 | ||
300 | %postun | |
301 | %systemd_reload | |
302 | ||
303 | %post libs -p /sbin/ldconfig | |
304 | %postun libs -p /sbin/ldconfig | |
305 | ||
306 | %post -n java-cephfs -p /sbin/ldconfig | |
307 | %postun -n java-cephfs -p /sbin/ldconfig | |
308 | ||
309 | %files | |
310 | %defattr(644,root,root,755) | |
311 | # COPYING specifies licenses of individual parts | |
312 | %doc AUTHORS COPYING README src/sample.ceph.conf src/sample.fetch_config | |
313 | %attr(754,root,root) /etc/rc.d/init.d/ceph | |
314 | %config(noreplace) /etc/sysconfig/ceph | |
315 | %dir /etc/systemd/system/ceph.target.wants | |
316 | %{systemdunitdir}/ceph-mds@.service | |
317 | %{systemdunitdir}/ceph-mon@.service | |
318 | %{systemdunitdir}/ceph-osd@.service | |
319 | %{systemdunitdir}/ceph.service | |
320 | %{systemdunitdir}/ceph.target | |
321 | %{systemdtmpfilesdir}/ceph.conf | |
322 | %dir %{_sysconfdir}/ceph | |
323 | %attr(755,root,root) %{_bindir}/ceph | |
324 | %attr(755,root,root) %{_bindir}/ceph-authtool | |
325 | %attr(755,root,root) %{_bindir}/ceph-brag | |
326 | %attr(755,root,root) %{_bindir}/ceph-clsinfo | |
327 | %attr(755,root,root) %{_bindir}/ceph-conf | |
328 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
329 | %attr(755,root,root) %{_bindir}/ceph-crush-location | |
330 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
331 | %attr(755,root,root) %{_bindir}/ceph-dencoder | |
332 | %attr(755,root,root) %{_bindir}/ceph-mds | |
333 | %attr(755,root,root) %{_bindir}/ceph-mon | |
334 | %attr(755,root,root) %{_bindir}/ceph-objectstore-tool | |
335 | %attr(755,root,root) %{_bindir}/ceph-osd | |
336 | %attr(755,root,root) %{_bindir}/ceph-post-file | |
337 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer | |
338 | %attr(755,root,root) %{_bindir}/ceph-rest-api | |
339 | %attr(755,root,root) %{_bindir}/ceph-run | |
340 | %attr(755,root,root) %{_bindir}/ceph-syn | |
341 | %attr(755,root,root) %{_bindir}/cephctl | |
342 | %attr(755,root,root) %{_bindir}/cephfs | |
343 | %attr(755,root,root) %{_bindir}/cephfs-journal-tool | |
344 | %attr(755,root,root) %{_bindir}/cephfs-table-tool | |
345 | %attr(755,root,root) %{_bindir}/crushtool | |
346 | %attr(755,root,root) %{_bindir}/librados-config | |
347 | %attr(755,root,root) %{_bindir}/monmaptool | |
348 | %attr(755,root,root) %{_bindir}/osdmaptool | |
349 | %attr(755,root,root) %{_bindir}/rados | |
350 | %attr(755,root,root) %{_bindir}/rbd | |
351 | %attr(755,root,root) %{_bindir}/rbd-fuse | |
352 | %attr(755,root,root) %{_bindir}/rbd-replay | |
353 | %attr(755,root,root) %{_bindir}/rbd-replay-many | |
354 | %attr(755,root,root) %{_bindir}/rbd-replay-prep | |
355 | %attr(755,root,root) /sbin/ceph-create-keys | |
356 | %attr(755,root,root) /sbin/ceph-disk | |
357 | %attr(755,root,root) /sbin/ceph-disk-activate | |
358 | %attr(755,root,root) /sbin/ceph-disk-prepare | |
359 | %attr(755,root,root) /sbin/ceph-disk-udev | |
360 | %attr(755,root,root) /sbin/mount.ceph | |
361 | %attr(755,root,root) /sbin/mount.fuse.ceph | |
362 | %dir %{_libdir}/ceph | |
363 | %attr(755,root,root) %{_libdir}/ceph/ceph-osd-prestart.sh | |
364 | %{_libdir}/ceph/ceph_common.sh | |
365 | %dir %{_libdir}/ceph/erasure-code | |
366 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_example.so* | |
367 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_fail_to_initialize.so* | |
368 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_fail_to_register.so* | |
369 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_hangs.so* | |
370 | %ifarch %{x8664} | |
371 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_isa.so* | |
372 | %endif | |
373 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so* | |
374 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so* | |
375 | %ifarch arm | |
376 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_neon.so* | |
377 | %endif | |
378 | %ifarch %{ix86} %{x8664} x32 | |
379 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so* | |
380 | %endif | |
381 | %ifarch %{x8664} x32 | |
382 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so* | |
383 | %endif | |
384 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_lrc.so* | |
385 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_missing_entry_point.so* | |
386 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_missing_version.so* | |
387 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec.so* | |
388 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_generic.so* | |
389 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_neon.so* | |
390 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_sse3.so* | |
391 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_test_jerasure_sse4.so* | |
392 | %dir %{_libdir}/rados-classes | |
393 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so* | |
394 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so* | |
395 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* | |
396 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so* | |
397 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* | |
398 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so* | |
399 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_replica_log.so* | |
400 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* | |
401 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_statelog.so* | |
402 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so* | |
403 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so* | |
404 | %{_datadir}/ceph | |
405 | %config(noreplace) /etc/logrotate.d/ceph | |
406 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
407 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
408 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
409 | %{_mandir}/man8/ceph.8* | |
410 | %{_mandir}/man8/ceph-authtool.8* | |
411 | %{_mandir}/man8/ceph-clsinfo.8* | |
412 | %{_mandir}/man8/ceph-conf.8* | |
413 | %{_mandir}/man8/ceph-create-keys.8* | |
414 | %{_mandir}/man8/ceph-debugpack.8* | |
415 | %{_mandir}/man8/ceph-dencoder.8* | |
416 | %{_mandir}/man8/ceph-deploy.8* | |
417 | %{_mandir}/man8/ceph-disk.8* | |
418 | %{_mandir}/man8/ceph-mds.8* | |
419 | %{_mandir}/man8/ceph-mon.8* | |
420 | %{_mandir}/man8/ceph-osd.8* | |
421 | %{_mandir}/man8/ceph-post-file.8* | |
422 | %{_mandir}/man8/ceph-rbdnamer.8* | |
423 | %{_mandir}/man8/ceph-rest-api.8* | |
424 | %{_mandir}/man8/ceph-run.8* | |
425 | %{_mandir}/man8/ceph-syn.8* | |
426 | %{_mandir}/man8/cephfs.8* | |
427 | %{_mandir}/man8/crushtool.8* | |
428 | %{_mandir}/man8/librados-config.8* | |
429 | %{_mandir}/man8/monmaptool.8* | |
430 | %{_mandir}/man8/mount.ceph.8* | |
431 | %{_mandir}/man8/osdmaptool.8* | |
432 | %{_mandir}/man8/rados.8* | |
433 | %{_mandir}/man8/radosgw.8* | |
434 | %{_mandir}/man8/radosgw-admin.8* | |
435 | %{_mandir}/man8/rbd.8* | |
436 | %{_mandir}/man8/rbd-fuse.8* | |
437 | %{_mandir}/man8/rbd-replay.8* | |
438 | %{_mandir}/man8/rbd-replay-many.8* | |
439 | %{_mandir}/man8/rbd-replay-prep.8* | |
440 | ||
441 | %dir %{_localstatedir}/lib/ceph | |
442 | %dir %{_localstatedir}/lib/ceph/mds | |
443 | %dir %{_localstatedir}/lib/ceph/mon | |
444 | %dir %{_localstatedir}/lib/ceph/osd | |
445 | %dir %{_localstatedir}/lib/ceph/tmp | |
446 | %dir %{_localstatedir}/log/ceph | |
447 | %dir %{_localstatedir}/run/ceph | |
448 | ||
449 | %files libs | |
450 | %defattr(644,root,root,755) | |
451 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
452 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.1 | |
453 | %attr(755,root,root) %{_libdir}/libos_tp.so.*.*.* | |
454 | %attr(755,root,root) %ghost %{_libdir}/libos_tp.so.1 | |
455 | %attr(755,root,root) %{_libdir}/libosd_tp.so.*.*.* | |
456 | %attr(755,root,root) %ghost %{_libdir}/libosd_tp.so.1 | |
457 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* | |
458 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
459 | %attr(755,root,root) %{_libdir}/librados_tp.so.*.*.* | |
460 | %attr(755,root,root) %ghost %{_libdir}/librados_tp.so.2 | |
461 | %attr(755,root,root) %{_libdir}/libradosstriper.so.*.*.* | |
462 | %attr(755,root,root) %ghost %{_libdir}/libradosstriper.so.1 | |
463 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* | |
464 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
465 | %attr(755,root,root) %{_libdir}/librbd_tp.so.*.*.* | |
466 | %attr(755,root,root) %ghost %{_libdir}/librbd_tp.so.1 | |
467 | ||
468 | %files devel | |
469 | %defattr(644,root,root,755) | |
470 | %attr(755,root,root) %{_libdir}/libcephfs.so | |
471 | %attr(755,root,root) %{_libdir}/libos_tp.so | |
472 | %attr(755,root,root) %{_libdir}/libosd_tp.so | |
473 | %attr(755,root,root) %{_libdir}/librados.so | |
474 | %attr(755,root,root) %{_libdir}/librados_tp.so | |
475 | %attr(755,root,root) %{_libdir}/libradosstriper.so | |
476 | %attr(755,root,root) %{_libdir}/librbd.so | |
477 | %attr(755,root,root) %{_libdir}/librbd_tp.so | |
478 | %{_libdir}/libcephfs.la | |
479 | %{_libdir}/libos_tp.la | |
480 | %{_libdir}/libosd_tp.la | |
481 | %{_libdir}/librados.la | |
482 | %{_libdir}/librados_tp.la | |
483 | %{_libdir}/libradosstriper.la | |
484 | %{_libdir}/librbd.la | |
485 | %{_libdir}/librbd_tp.la | |
486 | %{_includedir}/cephfs | |
487 | %{_includedir}/rados | |
488 | %{_includedir}/radosstriper | |
489 | %{_includedir}/rbd | |
490 | ||
491 | %files static | |
492 | %defattr(644,root,root,755) | |
493 | %{_libdir}/libcephfs.a | |
494 | %{_libdir}/libos_tp.a | |
495 | %{_libdir}/libosd_tp.a | |
496 | %{_libdir}/librados.a | |
497 | %{_libdir}/librados_tp.a | |
498 | %{_libdir}/libradosstriper.a | |
499 | %{_libdir}/librbd.a | |
500 | %{_libdir}/librbd_tp.a | |
501 | ||
502 | %files -n python-ceph | |
503 | %defattr(644,root,root,755) | |
504 | %{py_sitescriptdir}/ceph_argparse.py[co] | |
505 | %{py_sitescriptdir}/ceph_rest_api.py[co] | |
506 | %{py_sitescriptdir}/cephfs.py[co] | |
507 | %{py_sitescriptdir}/rados.py[co] | |
508 | %{py_sitescriptdir}/rbd.py[co] | |
509 | ||
510 | %if %{with java} | |
511 | %files -n java-cephfs | |
512 | %defattr(644,root,root,755) | |
513 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.* | |
514 | %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1 | |
515 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so | |
516 | %{_javadir}/libcephfs.jar | |
517 | %endif | |
518 | ||
519 | %files fuse | |
520 | %defattr(644,root,root,755) | |
521 | %attr(755,root,root) %{_bindir}/ceph-fuse | |
522 | %{_mandir}/man8/ceph-fuse.8* | |
523 | ||
524 | %files radosgw | |
525 | %defattr(644,root,root,755) | |
526 | %attr(755,root,root) %{_bindir}/radosgw | |
527 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
528 | %{_sysconfdir}/bash_completion.d/radosgw-admin | |
529 | ||
530 | %files resource-agents | |
531 | %defattr(644,root,root,755) | |
532 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
533 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/ceph | |
534 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mds | |
535 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/mon | |
536 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/osd | |
537 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd |