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