]>
Commit | Line | Data |
---|---|---|
b6163d67 | 1 | # TODO: |
d8321c07 JB |
2 | # - bluefs? (WITH_BLUEFS=ON) |
3 | # - QATZIP? (WITH_QATZIP=ON, BR: qatzip-devel) | |
4 | # - brotli? (WITH_BROTLI=ON, uses internal brotli as downloaded subproject) | |
5 | # - seastar (WITH_SEASTAR=ON, BR: libfmt-devel >= 5.2.1, c-ares-devel >= 1.13.0) | |
6 | # - MGR_PYTHON_VERSION=3? | |
bbcdc7ce JB |
7 | # - proper init scripts if non-systemd boot is too be supported |
8 | # (upstream scripts seem overcomplicated and hardly useful) | |
9 | # - run as non-root user | |
f7926bf0 JB |
10 | # - build selinux policy (-DWITH_SELINUX=ON) |
11 | # - package sphinx docs (from doc/) | |
b6163d67 | 12 | # |
19c20e80 JR |
13 | # Note on versioning: http://docs.ceph.com/docs/master/releases/ |
14 | # | |
714b93ed | 15 | # Conditional build: |
7f577810 | 16 | %bcond_without java # Java binding |
bbcdc7ce | 17 | %bcond_with accelio # Accelio transport support [needs update for internal API changes] |
f7926bf0 | 18 | %bcond_with angular # Angular-based mgr/dashboard frontend (built using npm, too outdated currently) |
d8321c07 | 19 | %bcond_with dpdk # DPDK messaging |
f25d96c8 | 20 | %bcond_without fcgi # RADOS Gateway FCGI frontend |
4429ac83 | 21 | %bcond_with fio # FIO engines support |
d8321c07 | 22 | %bcond_with kerberos # GSSAPI/KRB5 support |
1b11728e | 23 | %bcond_without pmem # PMDK (persistent memory) support |
d8321c07 | 24 | %bcond_without rdma # RDMA transport support |
1b11728e JB |
25 | %bcond_with spdk # Ceph SPDK support (DPDK based) |
26 | %bcond_without system_rocksdb # system RocksDB storage support | |
d8321c07 | 27 | %bcond_without zfs # ZFS support |
7f577810 JB |
28 | %bcond_without lttng # LTTng tracing |
29 | %bcond_without babeltrace # Babeltrace traces support | |
30 | %bcond_without tcmalloc # tcmalloc allocator | |
c37aec31 | 31 | %bcond_with tests # build tests |
6fce7056 JR |
32 | |
33 | %ifarch x32 | |
34 | %undefine with_tcmalloc | |
35 | %endif | |
1b11728e JB |
36 | %ifnarch %{x8664} aarch64 |
37 | %undefine with_pmem | |
38 | %endif | |
714b93ed | 39 | # |
2a1a6301 | 40 | Summary: User space components of the Ceph file system |
e5fc70df | 41 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 42 | Name: ceph |
d8321c07 | 43 | Version: 14.2.22 |
f7926bf0 | 44 | Release: 1 |
9e1f65de | 45 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 | 46 | Group: Base |
4447516f | 47 | Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz |
d8321c07 | 48 | # Source0-md5: 7b7c68409cedb3e68c58ac44f37f9de3 |
b6163d67 | 49 | Source1: ceph.sysconfig |
bbcdc7ce | 50 | Source3: ceph.tmpfiles |
2a1a6301 | 51 | Patch0: %{name}-init-fix.patch |
1b11728e JB |
52 | Patch2: boost.patch |
53 | Patch3: %{name}-python.patch | |
54 | Patch4: %{name}-types.patch | |
55 | Patch5: %{name}-tcmalloc.patch | |
1b11728e | 56 | Patch7: %{name}-fcgi.patch |
79dc5cad | 57 | Patch8: %{name}-fio.patch |
101b8bdd | 58 | Patch9: %{name}-zfs.patch |
e3919159 | 59 | URL: https://ceph.io/ |
477a1b20 | 60 | %{?with_accelio:BuildRequires: accelio-devel} |
7f577810 | 61 | %{?with_babeltrace:BuildRequires: babeltrace-devel} |
56f05d7d JB |
62 | BuildRequires: boost-devel >= 1.67 |
63 | BuildRequires: boost-python-devel >= 1.67 | |
d8321c07 | 64 | BuildRequires: cmake >= 3.5.1 |
2a1a6301 | 65 | BuildRequires: curl-devel |
1b11728e JB |
66 | %if %{with dpdk} || %{with spdk} |
67 | BuildRequires: dpdk-devel | |
68 | %endif | |
714b93ed | 69 | BuildRequires: expat-devel >= 1.95 |
1b11728e JB |
70 | %{?with_fcgi:BuildRequires: fcgi-devel} |
71 | %{?with_fio:BuildRequires: fio-devel} | |
2a1a6301 | 72 | BuildRequires: gdbm-devel |
d8321c07 JB |
73 | BuildRequires: gperf |
74 | %{?with_tcmalloc:BuildRequires: gperftools-devel} | |
75 | %{?with_kerberos:BuildRequires: heimdal-devel} | |
7db8c214 | 76 | %if %{with java} |
4f42482b JB |
77 | BuildRequires: jdk |
78 | %endif | |
2a1a6301 | 79 | BuildRequires: keyutils-devel |
548e0d3f | 80 | BuildRequires: leveldb-devel >= 1.2 |
714b93ed | 81 | BuildRequires: libaio-devel |
2a1a6301 | 82 | BuildRequires: libatomic_ops |
548e0d3f | 83 | BuildRequires: libblkid-devel >= 2.17 |
d8321c07 | 84 | BuildRequires: libcap-ng-devel |
714b93ed | 85 | BuildRequires: libedit-devel >= 2.11 |
d8321c07 JB |
86 | BuildRequires: libfuse3-devel >= 3 |
87 | %{?with_rdma:BuildRequires: libibverbs-devel} | |
2a1a6301 | 88 | BuildRequires: libltdl-devel |
d8321c07 JB |
89 | BuildRequires: libnl-devel >= 3.2 |
90 | %{?with_rdma:BuildRequires: librdmacm-devel} | |
91 | # not released yet? | |
92 | #BuildRequires: librdkafka-devel >= 1.9.2 | |
f7926bf0 | 93 | BuildRequires: libstdc++-devel >= 6:7 |
6fce7056 | 94 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} |
714b93ed | 95 | BuildRequires: libtool >= 2:1.5 |
2a1a6301 | 96 | BuildRequires: libuuid-devel |
bbcdc7ce | 97 | BuildRequires: libxml2-devel >= 2.0 |
7f577810 | 98 | %{?with_lttng:BuildRequires: lttng-ust-devel} |
1b11728e | 99 | BuildRequires: lz4-devel >= 1:1.7 |
f7926bf0 | 100 | %{?with_angular:BuildRequires: npm} |
d8321c07 JB |
101 | BuildRequires: nspr-devel >= 4 |
102 | BuildRequires: nss-devel >= 3 | |
103 | BuildRequires: oath-toolkit-devel | |
bbcdc7ce | 104 | BuildRequires: openldap-devel |
d8321c07 | 105 | BuildRequires: openssl-devel >= 1.1 |
e5fc70df | 106 | BuildRequires: perl-base |
2a1a6301 | 107 | BuildRequires: pkgconfig |
1b11728e | 108 | %{?with_pmem:BuildRequires: pmdk-devel} |
bbcdc7ce | 109 | BuildRequires: python >= 1:2.7 |
1b11728e | 110 | BuildRequires: python-devel >= 1:2.7 |
bbcdc7ce | 111 | BuildRequires: python-Cython |
1b11728e | 112 | BuildRequires: python3-devel >= 1:3.2 |
a92d2e05 | 113 | BuildRequires: python3-Cython |
d8321c07 | 114 | BuildRequires: rabbitmq-c-devel |
56f05d7d | 115 | %{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.8} |
bef2a0ad | 116 | BuildRequires: rpmbuild(macros) >= 1.671 |
e3919159 | 117 | BuildRequires: sed >= 4.0 |
f965be58 | 118 | BuildRequires: snappy-devel |
bbcdc7ce | 119 | BuildRequires: sphinx-pdg-2 >= 1.0 |
548e0d3f | 120 | BuildRequires: udev-devel |
1b11728e | 121 | #BuildRequires: virtualenv for tests |
b1fa8ffe | 122 | %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} |
fa260b6c | 123 | BuildRequires: xfsprogs-devel |
7db8c214 JB |
124 | %ifarch %{x8664} |
125 | BuildRequires: yasm | |
126 | %endif | |
101b8bdd | 127 | %{?with_zfs:BuildRequires: zfs-devel >= 0.8.0} |
bbcdc7ce | 128 | BuildRequires: zlib-devel |
d8321c07 | 129 | BuildRequires: zstd-devel >= 1.4.4 |
2a1a6301 JR |
130 | Requires(post,preun): /sbin/chkconfig |
131 | Requires(preun): rc-scripts | |
132 | Requires: %{name}-libs = %{version}-%{release} | |
d8321c07 | 133 | Requires: lz4 >= 1:1.7 |
7cabda16 | 134 | Requires: python-%{name} = %{version}-%{release} |
d8321c07 | 135 | %{?with_system_rocksdb:Requires: rocksdb >= 5.8} |
bef2a0ad | 136 | Requires: systemd-units >= 38 |
d8321c07 | 137 | Requires: zstd >= 1.4.4 |
c89c1ad8 JB |
138 | Obsoletes: gcephtool < 0.51 |
139 | Obsoletes: hadoop-cephfs < 0.71 | |
2a1a6301 JR |
140 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
141 | ||
2d841236 | 142 | %define skip_post_check_so libceph_crypto_isal.so.* libceph_lz4.so.* libceph_snappy.so.* libceph_zlib.so.* libceph_zstd.so.* libcls_.*.so.* libec_.*.so.* |
2a1a6301 JR |
143 | |
144 | %description | |
145 | Ceph is a distributed network file system designed to provide | |
146 | excellent performance, reliability, and scalability. | |
147 | ||
e5fc70df JB |
148 | %description -l pl.UTF-8 |
149 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
150 | dobrej wydajności, wiarygodności i skalowalności. | |
151 | ||
2a1a6301 JR |
152 | %package libs |
153 | Summary: Ceph shared libraries | |
e5fc70df | 154 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 | 155 | Group: Libraries |
d8321c07 | 156 | Requires: openssl >= 1.1 |
2a1a6301 JR |
157 | |
158 | %description libs | |
159 | Ceph shared libraries. | |
160 | ||
e5fc70df JB |
161 | %description libs -l pl.UTF-8 |
162 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
163 | |
164 | %package devel | |
e5fc70df JB |
165 | Summary: Ceph header files |
166 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
96c29907 | 167 | License: LGPL v2.1 |
2a1a6301 JR |
168 | Group: Development/Libraries |
169 | Requires: %{name}-libs = %{version}-%{release} | |
56f05d7d | 170 | Requires: boost-devel >= 1.67 |
bbcdc7ce JB |
171 | Requires: curl-devel |
172 | Requires: expat-devel | |
173 | Requires: fcgi-devel | |
174 | Requires: nss-devel >= 3 | |
d8321c07 | 175 | Requires: leveldb-devel >= 1.2 |
96c29907 | 176 | Requires: libatomic_ops |
bbcdc7ce | 177 | Requires: libblkid-devel >= 2.17 |
f7926bf0 | 178 | Requires: libstdc++-devel >= 6:7 |
96c29907 | 179 | Requires: libuuid-devel |
bbcdc7ce JB |
180 | %{?with_lttng:Requires: lttng-ust-devel} |
181 | Requires: openldap-devel | |
1b11728e | 182 | Obsoletes: ceph-static < 12 |
2a1a6301 JR |
183 | |
184 | %description devel | |
185 | This package contains the headers needed to develop programs that use | |
186 | Ceph. | |
187 | ||
e5fc70df JB |
188 | %description devel -l pl.UTF-8 |
189 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
190 | wykorzystujących Cepha. | |
191 | ||
e5fc70df | 192 | %package -n python-ceph |
1b11728e JB |
193 | Summary: Ceph Python 2 bindings |
194 | Summary(pl.UTF-8): Wiązania Pythona 2 do bibliotek Cepha | |
e5fc70df JB |
195 | Group: Development/Languages/Python |
196 | Requires: %{name}-libs = %{version}-%{release} | |
197 | ||
198 | %description -n python-ceph | |
1b11728e | 199 | Ceph Python 2 bindings. |
e5fc70df JB |
200 | |
201 | %description -n python-ceph -l pl.UTF-8 | |
1b11728e JB |
202 | Wiązania Pythona 2 do bibliotek Cepha. |
203 | ||
204 | %package -n python3-ceph | |
205 | Summary: Ceph Python 3 bindings | |
206 | Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek Cepha | |
207 | Group: Development/Languages/Python | |
208 | Requires: %{name}-libs = %{version}-%{release} | |
209 | ||
210 | %description -n python3-ceph | |
211 | Ceph Python 3 bindings. | |
212 | ||
213 | %description -n python3-ceph -l pl.UTF-8 | |
214 | Wiązania Pythona 3 do bibliotek Cepha. | |
e5fc70df | 215 | |
4f42482b JB |
216 | %package -n java-cephfs |
217 | Summary: CephFS Java bindings | |
218 | Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS | |
219 | Group: Libraries/Java | |
220 | Requires: %{name}-libs = %{version}-%{release} | |
221 | ||
222 | %description -n java-cephfs | |
223 | CephFS Java bindings. | |
224 | ||
225 | %description -n java-cephfs -l pl.UTF-8 | |
226 | Wiązania Javy do biblioteki CephFS. | |
227 | ||
e5fc70df JB |
228 | %package fuse |
229 | Summary: Ceph FUSE-based client | |
230 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
231 | Group: Base | |
232 | Requires: %{name} = %{version}-%{release} | |
233 | ||
234 | %description fuse | |
235 | FUSE based client for Ceph distributed network file system. | |
236 | ||
237 | %description fuse -l pl.UTF-8 | |
238 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
239 | ||
2a1a6301 JR |
240 | %package radosgw |
241 | Summary: rados REST gateway | |
e5fc70df JB |
242 | Summary(pl.UTF-8): Bramka REST-owa rados |
243 | Group: Applications/System | |
2a1a6301 JR |
244 | #Requires: apache-mod_fcgid |
245 | ||
246 | %description radosgw | |
247 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
248 | implemented as a FastCGI module using libfcgi, and can be used in | |
249 | conjunction with any FastCGI capable web server. | |
250 | ||
e5fc70df JB |
251 | %description radosgw -l pl.UTF-8 |
252 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
253 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
254 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
255 | ||
245cb856 | 256 | %package resource-agents |
8029515d JB |
257 | Summary: OCF Resource Agents for Ceph processes |
258 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
259 | Group: Applications/System | |
260 | Requires: %{name} = %{version}-%{release} | |
261 | Requires: resource-agents | |
262 | ||
245cb856 | 263 | %description resource-agents |
8029515d JB |
264 | OCF Resource Agents for Ceph processes. |
265 | ||
245cb856 | 266 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
267 | Agenci OCF do monitorowania procesów Cepha. |
268 | ||
9911b50d JP |
269 | %package test |
270 | Summary: Ceph benchmarks and test tools | |
271 | Summary(pl.UTF-8): Narzędzia testowe oraz do mierzenia wydajności dla Ceph | |
272 | Group: Applications/System | |
273 | Requires: %{name} = %{version}-%{release} | |
274 | ||
275 | %description test | |
276 | Ceph benchmarks and test tools. | |
277 | ||
278 | %description test -l pl.UTF-8 | |
279 | Narzędzia testowe oraz do mierzenia wydajności dla Ceph. | |
280 | ||
79dc5cad JB |
281 | %package -n fio-ceph-objectstore |
282 | Summary: FIO engine module for Ceph ObjectStore | |
283 | Summary(pl.UTF-8): Moduł silnika FIO do używania Ceph ObjectStore | |
284 | Group: Libraries | |
285 | Requires: %{name}-libs = %{version}-%{release} | |
101b8bdd | 286 | %if %{with fio} |
79dc5cad | 287 | %requires_ge_to fio fio-devel |
101b8bdd | 288 | %endif |
79dc5cad JB |
289 | |
290 | %description -n fio-ceph-objectstore | |
291 | This FIO engine allows you to mount and use a ceph object store | |
292 | directly, without having to build a ceph cluster or start any daemons. | |
293 | ||
294 | %description -n fio-ceph-objectstore -l pl.UTF-8 | |
295 | Ten silnik FIO pozwala na bezpośrednie montowanie i używanie | |
296 | przestrzeni obiektów ceph, bez potrzeby budowania klastra ceph czy | |
297 | uruchamiania demonów. | |
298 | ||
2a1a6301 JR |
299 | %prep |
300 | %setup -q | |
301 | %patch0 -p1 | |
1b11728e JB |
302 | %patch2 -p0 |
303 | %patch3 -p1 | |
bbcdc7ce JB |
304 | %patch4 -p1 |
305 | %patch5 -p1 | |
1b11728e | 306 | %patch7 -p1 |
79dc5cad | 307 | %patch8 -p1 |
101b8bdd | 308 | %patch9 -p1 |
e3919159 | 309 | |
f7926bf0 | 310 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' \ |
d8321c07 JB |
311 | src/{ceph-post-file.in,rbd-replay-many,rbdmap} \ |
312 | src/rgw/rgw-{gap,orphan}-list | |
f7926bf0 JB |
313 | |
314 | %if %{with angular} | |
315 | # stub virtualenv with npm for src/pybind/mgr/dashboard bootstrapping | |
316 | install -d build/src/pybind/mgr/dashboard/node-env/bin | |
317 | ln -sf /usr/bin/npm build/src/pybind/mgr/dashboard/node-env/bin/npm | |
318 | cat >build/src/pybind/mgr/dashboard/node-env/bin/activate <<EOF | |
319 | deactivate() { | |
320 | unset -f deactivate | |
321 | } | |
322 | EOF | |
d8321c07 JB |
323 | # 4.12.0 no longer downloadable, adjust to nearest existing |
324 | %{__sed} -i -e '/"node-sass"/ s/4\.12\.0/4.13.1/' src/pybind/mgr/dashboard/frontend/package-lock.json | |
f7926bf0 JB |
325 | %endif |
326 | ||
2a1a6301 | 327 | %build |
1b11728e JB |
328 | install -d build |
329 | cd build | |
330 | %cmake .. \ | |
331 | -DALLOCATOR="%{?with_tcmalloc:tcmalloc}%{!?with_tcmalloc:libc}" \ | |
332 | -DFIO_INCLUDE_DIR=/usr/include/fio \ | |
333 | -DPYTHON=%{__python} \ | |
334 | -DSPHINX_BUILD=/usr/bin/sphinx-build-2 \ | |
335 | %{!?with_babeltrace:-DWITH_BABELTRACE=OFF} \ | |
336 | %{?with_java:-DWITH_CEPHFS_JAVA=ON} \ | |
337 | %{?with_dpdk:-DWITH_DPDK=ON} \ | |
338 | %{?with_fio:-DWITH_FIO=ON} \ | |
339 | %{!?with_lttng:-DWITH_LTTNG=OFF} \ | |
340 | -DWITH_LZ4=ON \ | |
f7926bf0 | 341 | %{!?with_angular:-DWITH_MGR_DASHBOARD_FRONTEND=OFF} \ |
1b11728e JB |
342 | -DWITH_OCF=ON \ |
343 | %{?with_pmem:-DWITH_PMEM=ON} \ | |
344 | %{?with_fcgi:-DWITH_RADOSGW_FCGI_FRONTEND=ON} \ | |
345 | %{?with_spdk:-DWITH_SPDK=ON} \ | |
d8321c07 | 346 | %{!?with_rdma:-DWITH_RDMA=OFF} \ |
1b11728e | 347 | -DWITH_SYSTEM_BOOST=ON \ |
d8321c07 JB |
348 | %{?with_fio:-DWITH_SYSTEM_FIO=ON} \ |
349 | %{?with_angular:-DWITH_SYSTEM_NPM=ON} \ | |
1b11728e | 350 | %{?with_system_rocksdb:-DWITH_SYSTEM_ROCKSDB=ON} \ |
d8321c07 | 351 | -DWITH_SYSTEM_ZSTD=ON \ |
1b11728e JB |
352 | -DWITH_SYSTEMD=ON \ |
353 | %{?with_accelio:-DWITH_XIO=ON} \ | |
f73f6ee6 | 354 | %{?with_zfs:-DWITH_ZFS=ON} \ |
c37aec31 JP |
355 | -DWITH_REENTRANT_STRSIGNAL=ON \ |
356 | %{!?with_tests:-DWITH_TESTS=OFF} | |
1b11728e JB |
357 | |
358 | %{__make} | |
2a1a6301 JR |
359 | |
360 | %install | |
361 | rm -rf $RPM_BUILD_ROOT | |
1b11728e JB |
362 | install -d $RPM_BUILD_ROOT%{_localstatedir}/{lib/ceph/{tmp,mon,osd,mds,mgr,radosgw,bootstrap-{osd,mds,rgw,mgr,rbd}},log/ceph/stat,run/ceph} \ |
363 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d,sysconfig} \ | |
364 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},/etc/systemd/system/ceph.target.wants,/sbin} | |
4f42482b | 365 | |
1b11728e JB |
366 | %{__make} -C build install \ |
367 | DESTDIR=$RPM_BUILD_ROOT | |
2a1a6301 | 368 | |
1b11728e JB |
369 | # sanitize paths; no config options for cmake |
370 | %{__mv} $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
371 | %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/systemd/system/* $RPM_BUILD_ROOT%{systemdunitdir} | |
372 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/mount.* $RPM_BUILD_ROOT/sbin | |
373 | ||
374 | cp -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
2a1a6301 | 375 | |
bbcdc7ce | 376 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/ceph |
b6163d67 | 377 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ceph.service |
bbcdc7ce | 378 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ceph.conf |
b6163d67 | 379 | |
1b11728e JB |
380 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
381 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
382 | %py_postclean | |
4f42482b | 383 | |
1b11728e JB |
384 | %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir} |
385 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir} | |
245cb856 | 386 | |
c37aec31 | 387 | %if %{with tests} |
1b11728e JB |
388 | # tests |
389 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ceph_test_* | |
c37aec31 | 390 | %endif |
1b11728e JB |
391 | # packaged as %doc |
392 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/sample.ceph.conf | |
f7926bf0 | 393 | %if %{with angular} |
d8321c07 | 394 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/mgr/dashboard/HACKING.rst |
f7926bf0 JB |
395 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/mgr/{.gitignore,dashboard/static/AdminLTE-2.3.7/{.gitignore,.jshintrc,README.md}} |
396 | %endif | |
2a1a6301 JR |
397 | |
398 | %clean | |
399 | rm -rf $RPM_BUILD_ROOT | |
400 | ||
401 | %post | |
402 | /sbin/chkconfig --add ceph | |
403 | %service ceph restart | |
404 | ||
bef2a0ad JK |
405 | # actual services are to be enabled on cluster deployment |
406 | %systemd_post %{name}.target | |
407 | ||
2a1a6301 JR |
408 | %preun |
409 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
410 | %service ceph stop |
411 | /sbin/chkconfig --del ceph | |
2a1a6301 | 412 | fi |
bef2a0ad JK |
413 | %systemd_preun %{name}.target |
414 | ||
415 | %postun | |
416 | %systemd_reload | |
2a1a6301 | 417 | |
e5fc70df JB |
418 | %post libs -p /sbin/ldconfig |
419 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 420 | |
4f42482b JB |
421 | %post -n java-cephfs -p /sbin/ldconfig |
422 | %postun -n java-cephfs -p /sbin/ldconfig | |
423 | ||
2a1a6301 JR |
424 | %files |
425 | %defattr(644,root,root,755) | |
9e1f65de | 426 | # COPYING specifies licenses of individual parts |
f7926bf0 | 427 | %doc AUTHORS COPYING PendingReleaseNotes README.md src/sample.ceph.conf doc/releases |
2a1a6301 | 428 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
bef2a0ad JK |
429 | %config(noreplace) /etc/sysconfig/ceph |
430 | %dir /etc/systemd/system/ceph.target.wants | |
bbcdc7ce JB |
431 | %{systemdunitdir}/ceph.service |
432 | %{systemdunitdir}/ceph.target | |
f7926bf0 | 433 | %{systemdunitdir}/ceph-crash.service |
1b11728e JB |
434 | %{systemdunitdir}/ceph-fuse.target |
435 | %{systemdunitdir}/ceph-fuse@.service | |
bbcdc7ce | 436 | %{systemdunitdir}/ceph-mds.target |
bef2a0ad | 437 | %{systemdunitdir}/ceph-mds@.service |
1b11728e JB |
438 | %{systemdunitdir}/ceph-mgr.target |
439 | %{systemdunitdir}/ceph-mgr@.service | |
bbcdc7ce | 440 | %{systemdunitdir}/ceph-mon.target |
bef2a0ad | 441 | %{systemdunitdir}/ceph-mon@.service |
bbcdc7ce | 442 | %{systemdunitdir}/ceph-osd.target |
bef2a0ad | 443 | %{systemdunitdir}/ceph-osd@.service |
bbcdc7ce JB |
444 | %{systemdunitdir}/ceph-rbd-mirror.target |
445 | %{systemdunitdir}/ceph-rbd-mirror@.service | |
1b11728e | 446 | %{systemdunitdir}/ceph-volume@.service |
bbcdc7ce | 447 | %{systemdunitdir}/rbdmap.service |
bef2a0ad | 448 | %{systemdtmpfilesdir}/ceph.conf |
2a1a6301 JR |
449 | %dir %{_sysconfdir}/ceph |
450 | %attr(755,root,root) %{_bindir}/ceph | |
8c5712e2 | 451 | %attr(755,root,root) %{_bindir}/ceph-authtool |
1b11728e | 452 | %attr(755,root,root) %{_bindir}/ceph-bluestore-tool |
2a1a6301 | 453 | %attr(755,root,root) %{_bindir}/ceph-clsinfo |
8c5712e2 | 454 | %attr(755,root,root) %{_bindir}/ceph-conf |
f7926bf0 | 455 | %attr(755,root,root) %{_bindir}/ceph-crash |
60d5543f | 456 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
d8321c07 | 457 | %attr(755,root,root) %{_bindir}/ceph-diff-sorted |
f7926bf0 | 458 | %attr(755,root,root) %{_bindir}/ceph-kvstore-tool |
2a1a6301 | 459 | %attr(755,root,root) %{_bindir}/ceph-mds |
1b11728e | 460 | %attr(755,root,root) %{_bindir}/ceph-mgr |
8c5712e2 | 461 | %attr(755,root,root) %{_bindir}/ceph-mon |
f7926bf0 | 462 | %attr(755,root,root) %{_bindir}/ceph-monstore-tool |
7f577810 | 463 | %attr(755,root,root) %{_bindir}/ceph-objectstore-tool |
2a1a6301 | 464 | %attr(755,root,root) %{_bindir}/ceph-osd |
f7926bf0 | 465 | %attr(755,root,root) %{_bindir}/ceph-osdomap-tool |
5e39e43e | 466 | %attr(755,root,root) %{_bindir}/ceph-post-file |
2a1a6301 | 467 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer |
8c5712e2 JB |
468 | %attr(755,root,root) %{_bindir}/ceph-run |
469 | %attr(755,root,root) %{_bindir}/ceph-syn | |
bbcdc7ce | 470 | %attr(755,root,root) %{_bindir}/cephfs-data-scan |
ae4b5127 | 471 | %attr(755,root,root) %{_bindir}/cephfs-journal-tool |
b431df60 | 472 | %attr(755,root,root) %{_bindir}/cephfs-table-tool |
8c5712e2 | 473 | %attr(755,root,root) %{_bindir}/crushtool |
2a1a6301 | 474 | %attr(755,root,root) %{_bindir}/librados-config |
8c5712e2 JB |
475 | %attr(755,root,root) %{_bindir}/monmaptool |
476 | %attr(755,root,root) %{_bindir}/osdmaptool | |
2a1a6301 JR |
477 | %attr(755,root,root) %{_bindir}/rados |
478 | %attr(755,root,root) %{_bindir}/rbd | |
8c5712e2 | 479 | %attr(755,root,root) %{_bindir}/rbd-fuse |
bbcdc7ce JB |
480 | %attr(755,root,root) %{_bindir}/rbd-mirror |
481 | %attr(755,root,root) %{_bindir}/rbd-nbd | |
9a1a508c | 482 | %attr(755,root,root) %{_bindir}/rbd-replay |
7f577810 | 483 | %attr(755,root,root) %{_bindir}/rbd-replay-many |
9a1a508c | 484 | %attr(755,root,root) %{_bindir}/rbd-replay-prep |
bbcdc7ce | 485 | %attr(755,root,root) %{_bindir}/rbdmap |
d8321c07 JB |
486 | %attr(755,root,root) %{_bindir}/rgw-gap-list |
487 | %attr(755,root,root) %{_bindir}/rgw-gap-list-comparator | |
488 | %attr(755,root,root) %{_bindir}/rgw-orphan-list | |
1b11728e | 489 | %attr(755,root,root) %{_sbindir}/ceph-create-keys |
1b11728e JB |
490 | %attr(755,root,root) %{_sbindir}/ceph-volume |
491 | %attr(755,root,root) %{_sbindir}/ceph-volume-systemd | |
4f42482b JB |
492 | %attr(755,root,root) /sbin/mount.ceph |
493 | %attr(755,root,root) /sbin/mount.fuse.ceph | |
e3919159 | 494 | %if "%{_libexecdir}" != "%{_libdir}" |
c1965bc2 | 495 | %dir %{_libexecdir}/ceph |
e3919159 | 496 | %endif |
a92d2e05 | 497 | %{_libexecdir}/ceph/ceph_common.sh |
c1965bc2 | 498 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-osd-prestart.sh |
bbcdc7ce | 499 | %dir %{_libdir}/ceph/compressor |
1b11728e | 500 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_lz4.so* |
bbcdc7ce JB |
501 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_snappy.so* |
502 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zlib.so* | |
1b11728e | 503 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zstd.so* |
d65c5c24 | 504 | %dir %{_libdir}/ceph/crypto |
d8321c07 | 505 | %ifarch %{x8664} |
d65c5c24 JB |
506 | %attr(755,root,root) %{_libdir}/ceph/crypto/libceph_crypto_isal.so* |
507 | %endif | |
d8321c07 | 508 | %attr(755,root,root) %{_libdir}/ceph/crypto/libceph_crypto_openssl.so |
c408d7b3 | 509 | %dir %{_libdir}/ceph/erasure-code |
d8321c07 | 510 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_clay.so |
58dc957f | 511 | %ifarch %{x8664} |
066d8601 | 512 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_isa.so* |
6fce7056 | 513 | %endif |
c408d7b3 | 514 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so* |
0509a77e | 515 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so* |
bbcdc7ce | 516 | %ifarch %{arm} |
7f577810 JB |
517 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_neon.so* |
518 | %endif | |
519 | %ifarch %{ix86} %{x8664} x32 | |
0509a77e JB |
520 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so* |
521 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so* | |
7f577810 | 522 | %endif |
9a1a508c | 523 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_lrc.so* |
b431df60 | 524 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec.so* |
bbcdc7ce JB |
525 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_generic.so* |
526 | %ifarch %{ix86} %{x8664} x32 | |
527 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse3.so* | |
1b11728e | 528 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse4.so* |
bbcdc7ce | 529 | %endif |
2a1a6301 | 530 | %dir %{_libdir}/rados-classes |
d8321c07 | 531 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cas.so* |
1b11728e JB |
532 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cephfs.so* |
533 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so* | |
534 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_journal.so* | |
535 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_kvs.so* | |
536 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* | |
537 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so* | |
538 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lua.so* | |
539 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_numops.so* | |
f7926bf0 | 540 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_otp.so* |
1b11728e JB |
541 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
542 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so* | |
1b11728e JB |
543 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* |
544 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_sdk.so* | |
1b11728e JB |
545 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_timeindex.so* |
546 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so* | |
547 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so* | |
5e39e43e | 548 | %{_datadir}/ceph |
2a1a6301 JR |
549 | %config(noreplace) /etc/logrotate.d/ceph |
550 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
551 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
552 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
553 | %{_mandir}/man8/ceph.8* | |
554 | %{_mandir}/man8/ceph-authtool.8* | |
1b11728e | 555 | %{_mandir}/man8/ceph-bluestore-tool.8* |
2a1a6301 JR |
556 | %{_mandir}/man8/ceph-clsinfo.8* |
557 | %{_mandir}/man8/ceph-conf.8* | |
63709ae0 | 558 | %{_mandir}/man8/ceph-create-keys.8* |
60d5543f | 559 | %{_mandir}/man8/ceph-dencoder.8* |
7f577810 | 560 | %{_mandir}/man8/ceph-deploy.8* |
d8321c07 | 561 | %{_mandir}/man8/ceph-diff-sorted.8* |
f7926bf0 | 562 | %{_mandir}/man8/ceph-kvstore-tool.8* |
2a1a6301 JR |
563 | %{_mandir}/man8/ceph-mds.8* |
564 | %{_mandir}/man8/ceph-mon.8* | |
565 | %{_mandir}/man8/ceph-osd.8* | |
5e39e43e | 566 | %{_mandir}/man8/ceph-post-file.8* |
60d5543f | 567 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
568 | %{_mandir}/man8/ceph-run.8* |
569 | %{_mandir}/man8/ceph-syn.8* | |
1b11728e JB |
570 | %{_mandir}/man8/ceph-volume.8* |
571 | %{_mandir}/man8/ceph-volume-systemd.8* | |
2a1a6301 JR |
572 | %{_mandir}/man8/crushtool.8* |
573 | %{_mandir}/man8/librados-config.8* | |
2a1a6301 JR |
574 | %{_mandir}/man8/monmaptool.8* |
575 | %{_mandir}/man8/mount.ceph.8* | |
576 | %{_mandir}/man8/osdmaptool.8* | |
577 | %{_mandir}/man8/rados.8* | |
2a1a6301 | 578 | %{_mandir}/man8/rbd.8* |
8c5712e2 | 579 | %{_mandir}/man8/rbd-fuse.8* |
bbcdc7ce JB |
580 | %{_mandir}/man8/rbd-mirror.8* |
581 | %{_mandir}/man8/rbd-nbd.8* | |
9a1a508c | 582 | %{_mandir}/man8/rbd-replay.8* |
7f577810 | 583 | %{_mandir}/man8/rbd-replay-many.8* |
9a1a508c | 584 | %{_mandir}/man8/rbd-replay-prep.8* |
bbcdc7ce | 585 | %{_mandir}/man8/rbdmap.8* |
d8321c07 | 586 | %{_mandir}/man8/rgw-orphan-list.8* |
60d5543f | 587 | |
2a1a6301 | 588 | %dir %{_localstatedir}/lib/ceph |
1b11728e JB |
589 | %dir %{_localstatedir}/lib/ceph/bootstrap-mds |
590 | %dir %{_localstatedir}/lib/ceph/bootstrap-mgr | |
591 | %dir %{_localstatedir}/lib/ceph/bootstrap-osd | |
592 | %dir %{_localstatedir}/lib/ceph/bootstrap-rbd | |
593 | %dir %{_localstatedir}/lib/ceph/bootstrap-rgw | |
b6163d67 | 594 | %dir %{_localstatedir}/lib/ceph/mds |
1b11728e | 595 | %dir %{_localstatedir}/lib/ceph/mgr |
b6163d67 JK |
596 | %dir %{_localstatedir}/lib/ceph/mon |
597 | %dir %{_localstatedir}/lib/ceph/osd | |
2a1a6301 JR |
598 | %dir %{_localstatedir}/lib/ceph/tmp |
599 | %dir %{_localstatedir}/log/ceph | |
bef2a0ad | 600 | %dir %{_localstatedir}/run/ceph |
2a1a6301 JR |
601 | |
602 | %files libs | |
603 | %defattr(644,root,root,755) | |
604 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* | |
1b11728e | 605 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.2 |
4447516f JB |
606 | %attr(755,root,root) %{_libdir}/libos_tp.so.*.*.* |
607 | %attr(755,root,root) %ghost %{_libdir}/libos_tp.so.1 | |
608 | %attr(755,root,root) %{_libdir}/libosd_tp.so.*.*.* | |
609 | %attr(755,root,root) %ghost %{_libdir}/libosd_tp.so.1 | |
2a1a6301 JR |
610 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* |
611 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
4447516f JB |
612 | %attr(755,root,root) %{_libdir}/librados_tp.so.*.*.* |
613 | %attr(755,root,root) %ghost %{_libdir}/librados_tp.so.2 | |
548e0d3f JB |
614 | %attr(755,root,root) %{_libdir}/libradosstriper.so.*.*.* |
615 | %attr(755,root,root) %ghost %{_libdir}/libradosstriper.so.1 | |
2a1a6301 JR |
616 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* |
617 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
4447516f JB |
618 | %attr(755,root,root) %{_libdir}/librbd_tp.so.*.*.* |
619 | %attr(755,root,root) %ghost %{_libdir}/librbd_tp.so.1 | |
bbcdc7ce JB |
620 | %attr(755,root,root) %{_libdir}/librgw.so.*.*.* |
621 | %attr(755,root,root) %ghost %{_libdir}/librgw.so.2 | |
d8321c07 JB |
622 | %attr(755,root,root) %{_libdir}/librgw_admin_user.so.*.*.* |
623 | %attr(755,root,root) %ghost %{_libdir}/librgw_admin_user.so.0 | |
f7926bf0 JB |
624 | %attr(755,root,root) %{_libdir}/librgw_op_tp.so.*.*.* |
625 | %attr(755,root,root) %ghost %{_libdir}/librgw_op_tp.so.1 | |
626 | %attr(755,root,root) %{_libdir}/librgw_rados_tp.so.*.*.* | |
627 | %attr(755,root,root) %ghost %{_libdir}/librgw_rados_tp.so.1 | |
5b8dadc9 JB |
628 | %dir %{_libdir}/ceph |
629 | %attr(755,root,root) %{_libdir}/ceph/libceph-common.so.0 | |
2a1a6301 | 630 | |
2a1a6301 JR |
631 | %files devel |
632 | %defattr(644,root,root,755) | |
2a1a6301 | 633 | %attr(755,root,root) %{_libdir}/libcephfs.so |
4447516f JB |
634 | %attr(755,root,root) %{_libdir}/libos_tp.so |
635 | %attr(755,root,root) %{_libdir}/libosd_tp.so | |
2a1a6301 | 636 | %attr(755,root,root) %{_libdir}/librados.so |
4447516f | 637 | %attr(755,root,root) %{_libdir}/librados_tp.so |
548e0d3f | 638 | %attr(755,root,root) %{_libdir}/libradosstriper.so |
2a1a6301 | 639 | %attr(755,root,root) %{_libdir}/librbd.so |
4447516f | 640 | %attr(755,root,root) %{_libdir}/librbd_tp.so |
bbcdc7ce | 641 | %attr(755,root,root) %{_libdir}/librgw.so |
d8321c07 | 642 | %attr(755,root,root) %{_libdir}/librgw_admin_user.so |
f7926bf0 JB |
643 | %attr(755,root,root) %{_libdir}/librgw_op_tp.so |
644 | %attr(755,root,root) %{_libdir}/librgw_rados_tp.so | |
e5fc70df JB |
645 | %{_includedir}/cephfs |
646 | %{_includedir}/rados | |
548e0d3f | 647 | %{_includedir}/radosstriper |
e5fc70df | 648 | %{_includedir}/rbd |
2a1a6301 | 649 | |
e5fc70df JB |
650 | %files -n python-ceph |
651 | %defattr(644,root,root,755) | |
bbcdc7ce JB |
652 | %attr(755,root,root) %{py_sitedir}/cephfs.so |
653 | %attr(755,root,root) %{py_sitedir}/rados.so | |
654 | %attr(755,root,root) %{py_sitedir}/rbd.so | |
1b11728e | 655 | %attr(755,root,root) %{py_sitedir}/rgw.so |
1b11728e JB |
656 | %{py_sitedir}/ceph_volume |
657 | %{py_sitedir}/ceph_volume-1.0.0-py*.egg-info | |
658 | %{py_sitedir}/cephfs-2.0.0-py*.egg-info | |
659 | %{py_sitedir}/rados-2.0.0-py*.egg-info | |
660 | %{py_sitedir}/rbd-2.0.0-py*.egg-info | |
661 | %{py_sitedir}/rgw-2.0.0-py*.egg-info | |
67f1bff3 | 662 | %{py_sitescriptdir}/ceph_argparse.py[co] |
bbcdc7ce | 663 | %{py_sitescriptdir}/ceph_daemon.py[co] |
bbcdc7ce | 664 | %{py_sitescriptdir}/ceph_volume_client.py[co] |
e5fc70df | 665 | |
f7926bf0 | 666 | %if 0 |
1b11728e JB |
667 | %files -n python3-ceph |
668 | %defattr(644,root,root,755) | |
669 | %attr(755,root,root) %{py3_sitedir}/cephfs.cpython-*.so | |
670 | %attr(755,root,root) %{py3_sitedir}/rados.cpython-*.so | |
671 | %attr(755,root,root) %{py3_sitedir}/rbd.cpython-*.so | |
672 | %attr(755,root,root) %{py3_sitedir}/rgw.cpython-*.so | |
673 | %{py3_sitedir}/cephfs-2.0.0-py*.egg-info | |
674 | %{py3_sitedir}/rados-2.0.0-py*.egg-info | |
675 | %{py3_sitedir}/rbd-2.0.0-py*.egg-info | |
676 | %{py3_sitedir}/rgw-2.0.0-py*.egg-info | |
677 | %{py3_sitescriptdir}/ceph_argparse.py | |
678 | %{py3_sitescriptdir}/ceph_daemon.py | |
679 | %{py3_sitescriptdir}/ceph_volume_client.py | |
680 | %{py3_sitescriptdir}/__pycache__/ceph_argparse.cpython-*.py[co] | |
681 | %{py3_sitescriptdir}/__pycache__/ceph_daemon.cpython-*.py[co] | |
682 | %{py3_sitescriptdir}/__pycache__/ceph_volume_client.cpython-*.py[co] | |
f7926bf0 | 683 | %endif |
1b11728e | 684 | |
4f42482b JB |
685 | %if %{with java} |
686 | %files -n java-cephfs | |
687 | %defattr(644,root,root,755) | |
688 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.* | |
689 | %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1 | |
690 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so | |
691 | %{_javadir}/libcephfs.jar | |
1b11728e | 692 | %{_javadir}/libcephfs-test.jar |
4f42482b JB |
693 | %endif |
694 | ||
e5fc70df JB |
695 | %files fuse |
696 | %defattr(644,root,root,755) | |
e5fc70df JB |
697 | %attr(755,root,root) %{_bindir}/ceph-fuse |
698 | %{_mandir}/man8/ceph-fuse.8* | |
699 | ||
2a1a6301 JR |
700 | %files radosgw |
701 | %defattr(644,root,root,755) | |
702 | %attr(755,root,root) %{_bindir}/radosgw | |
703 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
1b11728e | 704 | %attr(755,root,root) %{_bindir}/radosgw-es |
bbcdc7ce JB |
705 | %attr(755,root,root) %{_bindir}/radosgw-object-expirer |
706 | %attr(755,root,root) %{_bindir}/radosgw-token | |
707 | %{systemdunitdir}/ceph-radosgw.target | |
708 | %{systemdunitdir}/ceph-radosgw@.service | |
2a1a6301 | 709 | %{_sysconfdir}/bash_completion.d/radosgw-admin |
1b11728e JB |
710 | %dir %{_localstatedir}/lib/ceph/radosgw |
711 | %{_mandir}/man8/radosgw.8* | |
712 | %{_mandir}/man8/radosgw-admin.8* | |
2a1a6301 | 713 | |
245cb856 | 714 | %files resource-agents |
8029515d JB |
715 | %defattr(644,root,root,755) |
716 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
8029515d | 717 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd |
79dc5cad | 718 | |
9911b50d JP |
719 | %if %{with test} |
720 | %files test | |
721 | %defattr(644,root,root,755) | |
722 | %attr(755,root,root) %{_bindir}/ceph-client-debug | |
723 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
724 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
725 | %attr(755,root,root) %{_bindir}/ceph-kvstore-tool | |
726 | %attr(755,root,root) %{_bindir}/ceph-monstore-tool | |
727 | %attr(755,root,root) %{_bindir}/ceph-osdomap-tool | |
728 | %attr(755,root,root) %{_bindir}/ceph_bench_log | |
729 | %attr(755,root,root) %{_bindir}/ceph_erasure_code | |
730 | %attr(755,root,root) %{_bindir}/ceph_erasure_code_benchmark | |
731 | %attr(755,root,root) %{_bindir}/ceph_kvstorebench | |
732 | %attr(755,root,root) %{_bindir}/ceph_multi_stress_watch | |
733 | %attr(755,root,root) %{_bindir}/ceph_objectstore_bench | |
734 | %attr(755,root,root) %{_bindir}/ceph_omapbench | |
735 | %attr(755,root,root) %{_bindir}/ceph_perf_local | |
736 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_client | |
737 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_server | |
738 | %attr(755,root,root) %{_bindir}/ceph_perf_objectstore | |
739 | %attr(755,root,root) %{_bindir}/ceph_psim | |
740 | %attr(755,root,root) %{_bindir}/ceph_radosacl | |
741 | %attr(755,root,root) %{_bindir}/ceph_rgw_jsonparser | |
742 | %attr(755,root,root) %{_bindir}/ceph_rgw_multiparser | |
743 | %attr(755,root,root) %{_bindir}/ceph_scratchtool | |
744 | %attr(755,root,root) %{_bindir}/ceph_scratchtoolpp | |
745 | %attr(755,root,root) %{_bindir}/ceph_smalliobench | |
746 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchdumb | |
747 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchfs | |
748 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchrbd | |
749 | %attr(755,root,root) %{_bindir}/ceph_test_* | |
750 | %attr(755,root,root) %{_bindir}/ceph_tpbench | |
751 | %attr(755,root,root) %{_bindir}/ceph_xattr_bench | |
752 | %attr(755,root,root) %{_libdir}/ceph/ceph-monstore-update-crush.sh | |
753 | %{_mandir}/man8/ceph-debugpack.8* | |
754 | %{_mandir}/man8/ceph-kvstore-tool.8* | |
755 | %endif | |
756 | ||
79dc5cad JB |
757 | %if %{with fio} |
758 | %files -n fio-ceph-objectstore | |
759 | %defattr(644,root,root,755) | |
760 | %doc src/test/fio/{README.md,ceph-*.conf,ceph-*.fio} | |
761 | %attr(755,root,root) %{_libdir}/libfio_ceph_objectstore.so | |
762 | %endif |