]>
Commit | Line | Data |
---|---|---|
b6163d67 | 1 | # TODO: |
674529cb | 2 | # - system arrow, parquet (WITH_SYSTEM_ARROW=ON, arrow>=4, parquet>=4)? |
682d6dd5 | 3 | # - brotli? (WITH_BROTLI=ON, uses internal brotli as downloaded subproject) |
737284c4 | 4 | # - proper init scripts if non-systemd boot is to be supported |
bbcdc7ce JB |
5 | # (upstream scripts seem overcomplicated and hardly useful) |
6 | # - run as non-root user | |
f7926bf0 JB |
7 | # - build selinux policy (-DWITH_SELINUX=ON) |
8 | # - package sphinx docs (from doc/) | |
b6163d67 | 9 | # |
19c20e80 | 10 | # Note on versioning: http://docs.ceph.com/docs/master/releases/ |
f54c2174 | 11 | # Reef (18.1.2) is in RC stage currently |
19c20e80 | 12 | # |
714b93ed | 13 | # Conditional build: |
7f577810 | 14 | %bcond_without java # Java binding |
f7926bf0 | 15 | %bcond_with angular # Angular-based mgr/dashboard frontend (built using npm, too outdated currently) |
32e4d0ff | 16 | %bcond_without bluefs # BlueFS library |
d8321c07 | 17 | %bcond_with dpdk # DPDK messaging |
737284c4 JB |
18 | # 15.2.x/16.2.x build fails with: |
19 | # src/rgw/rgw_fcgi_process.cc:92:53: error: 'class rgw::sal::RGWRadosStore' has no member named 'get_new_req_id' | |
d5cae1aa | 20 | %bcond_with fcgi # RADOS Gateway FCGI frontend |
737284c4 | 21 | %bcond_with fio # FIO engines support (16.x: downloads fio as internal subproject) |
682d6dd5 | 22 | %bcond_with kerberos # GSSAPI/KRB5 support |
1b11728e | 23 | %bcond_without pmem # PMDK (persistent memory) support |
32e4d0ff JB |
24 | %bcond_without qat # QAT driver |
25 | %bcond_without qatzip # QATZIP | |
682d6dd5 | 26 | %bcond_without rdma # RDMA transport support |
6d7dd22f | 27 | %bcond_with seastar # seastar components (64-bit pointers required) |
1b11728e JB |
28 | %bcond_with spdk # Ceph SPDK support (DPDK based) |
29 | %bcond_without system_rocksdb # system RocksDB storage support | |
32e4d0ff | 30 | %bcond_without zbd # ZBD bluestore backend |
737284c4 | 31 | # 15.2.x/16.2.x: "fallthrough" define from OpenZFS's spl breaks "[[fallthrough]]" in src/include/blobhash.h |
d5cae1aa | 32 | %bcond_with zfs # ZFS support [not ready for zfs 0.8.x] |
7f577810 JB |
33 | %bcond_without lttng # LTTng tracing |
34 | %bcond_without babeltrace # Babeltrace traces support | |
35 | %bcond_without tcmalloc # tcmalloc allocator | |
c37aec31 | 36 | %bcond_with tests # build tests |
6fce7056 JR |
37 | |
38 | %ifarch x32 | |
39 | %undefine with_tcmalloc | |
40 | %endif | |
1b11728e JB |
41 | %ifnarch %{x8664} aarch64 |
42 | %undefine with_pmem | |
43 | %endif | |
32e4d0ff JB |
44 | %ifnarch %{x8664} aarch64 mips64 ppc64 sparc64 s390x |
45 | %undefine with_seastar | |
46 | %endif | |
836aa1d7 JP |
47 | |
48 | %{?with_java:%{?use_default_jdk}} | |
714b93ed | 49 | # |
2a1a6301 | 50 | Summary: User space components of the Ceph file system |
e5fc70df | 51 | Summary(pl.UTF-8): Działające w przestrzeni użytkownika elementy systemu plików Ceph |
2a1a6301 | 52 | Name: ceph |
01625508 | 53 | Version: 17.2.7 |
f54c2174 | 54 | Release: 1 |
9e1f65de | 55 | License: LGPL v2.1 (libraries), GPL v2 (some programs) |
2a1a6301 | 56 | Group: Base |
4447516f | 57 | Source0: http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz |
01625508 | 58 | # Source0-md5: 843fb59f95f62e0e156539e49a2a3a9a |
b6163d67 | 59 | Source1: ceph.sysconfig |
bbcdc7ce | 60 | Source3: ceph.tmpfiles |
f8bb146f | 61 | Patch0: %{name}-python.patch |
737284c4 | 62 | Patch1: %{name}-fio.patch |
f8f6a16f JB |
63 | Patch2: %{name}-cmake-static.patch |
64 | Patch3: %{name}-arrow-pld.patch | |
f8bb146f | 65 | Patch4: no-virtualenvs.patch |
32e4d0ff | 66 | Patch5: %{name}-libdir.patch |
c8d4a223 | 67 | Patch6: types.patch |
bbe36688 JR |
68 | Patch7: use-provided-cpu-flag-values.patch |
69 | Patch8: ix86-no-asm.patch | |
70 | Patch9: long-int-time_t.patch | |
32e4d0ff | 71 | Patch10: %{name}-qat.patch |
682d6dd5 | 72 | Patch11: %{name}-liburing.patch |
cc053f74 JB |
73 | Patch12: %{name}-glibc.patch |
74 | Patch13: %{name}-libfmt.patch | |
c5b31b08 | 75 | Patch14: %{name}-system-rocksdb.patch |
a74f78a4 JB |
76 | # https://src.fedoraproject.org/rpms/ceph/blob/rawhide/f/0017-gcc-12-omnibus.patch |
77 | Patch15: %{name}-gcc12.patch | |
674529cb JB |
78 | # https://src.fedoraproject.org/rpms/ceph/blob/rawhide/f/0020-src-arrow-cpp-cmake_modules-ThirdpartyToolchain.cmake.patch |
79 | Patch16: %{name}-system-xsimd.patch | |
06e5dbcf | 80 | Patch17: boost1.81.patch |
e3919159 | 81 | URL: https://ceph.io/ |
32e4d0ff | 82 | %{?with_qatzip:BuildRequires: QATzip-devel} |
7f577810 | 83 | %{?with_babeltrace:BuildRequires: babeltrace-devel} |
674529cb JB |
84 | BuildRequires: boost-devel >= 1.73 |
85 | BuildRequires: boost-python3-devel >= 1.73 | |
32e4d0ff | 86 | %{?with_seastar:BuildRequires: c-ares-devel >= 1.13.0} |
d5cae1aa | 87 | BuildRequires: cmake >= 3.22.2 |
32e4d0ff | 88 | %{?with_seastar:BuildRequires: cryptopp-devel >= 5.6.5} |
682d6dd5 | 89 | BuildRequires: cryptsetup-devel >= 2.0.5 |
2a1a6301 | 90 | BuildRequires: curl-devel |
cc053f74 JB |
91 | %if %{with dpdk} || %{with spdk} |
92 | # also seastar with dpdk support | |
1b11728e JB |
93 | BuildRequires: dpdk-devel |
94 | %endif | |
682d6dd5 | 95 | BuildRequires: doxygen |
714b93ed | 96 | BuildRequires: expat-devel >= 1.95 |
1b11728e | 97 | %{?with_fcgi:BuildRequires: fcgi-devel} |
682d6dd5 | 98 | %{?with_fio:BuildRequires: fio-devel >= 3.15} |
2a1a6301 | 99 | BuildRequires: gdbm-devel |
32e4d0ff | 100 | %{?with_seastar:BuildRequires: gnutls-devel >= 3.3.26} |
d8321c07 | 101 | BuildRequires: gperf |
682d6dd5 JB |
102 | %{?with_tcmalloc:BuildRequires: gperftools-devel >= 2.6.2} |
103 | %{?with_kerberos:BuildRequires: heimdal-devel} | |
32e4d0ff | 104 | %{?with_seastar:BuildRequires: hwloc-devel >= 1.11.2} |
7db8c214 | 105 | %if %{with java} |
5fcab725 | 106 | %buildrequires_jdk |
836aa1d7 | 107 | BuildRequires: %{?use_jdk:%{use_jdk}-jre-base-X11}%{!?use_jdk:jre-X11} |
4f42482b | 108 | %endif |
2a1a6301 | 109 | BuildRequires: keyutils-devel |
b44a3efd | 110 | BuildRequires: leveldb-devel >= 1.23-2 |
714b93ed | 111 | BuildRequires: libaio-devel |
2a1a6301 | 112 | BuildRequires: libatomic_ops |
548e0d3f | 113 | BuildRequires: libblkid-devel >= 2.17 |
682d6dd5 | 114 | BuildRequires: libcap-ng-devel |
714b93ed | 115 | BuildRequires: libedit-devel >= 2.11 |
682d6dd5 JB |
116 | BuildRequires: libfmt-devel >= 6.0.0 |
117 | BuildRequires: libfuse3-devel >= 3 | |
118 | %{?with_rdma:BuildRequires: libibverbs-devel} | |
119 | BuildRequires: libicu-devel >= 52.0 | |
2a1a6301 | 120 | BuildRequires: libltdl-devel |
682d6dd5 JB |
121 | BuildRequires: libnl-devel >= 3.2 |
122 | BuildRequires: librdkafka-devel >= 0.9.2 | |
123 | %{?with_rdma:BuildRequires: librdmacm-devel} | |
32e4d0ff | 124 | %{?with_seastar:BuildRequires: libsctp-devel} |
682d6dd5 JB |
125 | BuildRequires: libstdc++-devel >= 6:7 |
126 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel >= 2.6.2} | |
714b93ed | 127 | BuildRequires: libtool >= 2:1.5 |
682d6dd5 | 128 | BuildRequires: liburing-devel |
674529cb | 129 | BuildRequires: libutf8proc-devel >= 2.2.0 |
2a1a6301 | 130 | BuildRequires: libuuid-devel |
bbcdc7ce | 131 | BuildRequires: libxml2-devel >= 2.0 |
32e4d0ff | 132 | %{?with_zbd:BuildRequires: libzbd-devel} |
7f577810 | 133 | %{?with_lttng:BuildRequires: lttng-ust-devel} |
682d6dd5 | 134 | BuildRequires: lua-devel >= 5.3 |
32e4d0ff | 135 | BuildRequires: lz4-devel >= 1:1.7.3 |
682d6dd5 | 136 | BuildRequires: ncurses-devel |
f7926bf0 | 137 | %{?with_angular:BuildRequires: npm} |
d8321c07 JB |
138 | BuildRequires: nspr-devel >= 4 |
139 | BuildRequires: nss-devel >= 3 | |
32e4d0ff | 140 | %{?with_seastar:BuildRequires: numactl-devel} |
d5cae1aa | 141 | BuildRequires: oath-toolkit-devel |
bbcdc7ce | 142 | BuildRequires: openldap-devel |
682d6dd5 | 143 | BuildRequires: openssl-devel >= 1.1 |
e5fc70df | 144 | BuildRequires: perl-base |
2a1a6301 | 145 | BuildRequires: pkgconfig |
f8f6a16f | 146 | %{?with_pmem:BuildRequires: pmdk-devel >= 1.10.0} |
62624566 | 147 | BuildRequires: python3 >= 1:3.2 |
dc8b799e JB |
148 | BuildRequires: python3-Cython |
149 | BuildRequires: python3-PyYAML | |
62624566 | 150 | BuildRequires: python3-devel >= 1:3.2 |
e9d0e70c | 151 | BuildRequires: python3-modules >= 1:3.2 |
682d6dd5 | 152 | %{?with_tests:BuildRequires: python3-tox >= 2.9.1} |
682d6dd5 | 153 | BuildRequires: rabbitmq-c-devel |
32e4d0ff | 154 | %{?with_seastar:BuildRequires: ragel >= 6.10} |
6b8625f1 | 155 | %{?with_system_rocksdb:BuildRequires: rocksdb-devel >= 5.14} |
836aa1d7 | 156 | BuildRequires: rpmbuild(macros) >= 2.021 |
32e4d0ff | 157 | %{?with_qat:BuildRequires: qatlib-devel} |
e3919159 | 158 | BuildRequires: sed >= 4.0 |
f965be58 | 159 | BuildRequires: snappy-devel |
2b3ddb3f | 160 | BuildRequires: sphinx-pdg >= 4.4.0 |
682d6dd5 | 161 | BuildRequires: sqlite3-devel >= 3 |
dc8b799e JB |
162 | # >= 0.13.0 wanted, but seems to build with 0.11.0 |
163 | BuildRequires: thrift-devel | |
548e0d3f | 164 | BuildRequires: udev-devel |
b1fa8ffe | 165 | %{?with_dpdk:BuildRequires: xorg-lib-libpciaccess-devel} |
fa260b6c | 166 | BuildRequires: xfsprogs-devel |
674529cb | 167 | BuildRequires: xsimd-devel |
32e4d0ff | 168 | %{?with_seastar:BuildRequires: yaml-cpp-devel >= 0.5.1} |
7db8c214 JB |
169 | %ifarch %{x8664} |
170 | BuildRequires: yasm | |
171 | %endif | |
101b8bdd | 172 | %{?with_zfs:BuildRequires: zfs-devel >= 0.8.0} |
bbcdc7ce | 173 | BuildRequires: zlib-devel |
d8321c07 | 174 | BuildRequires: zstd-devel >= 1.4.4 |
2a1a6301 JR |
175 | Requires(post,preun): /sbin/chkconfig |
176 | Requires(preun): rc-scripts | |
177 | Requires: %{name}-libs = %{version}-%{release} | |
32e4d0ff | 178 | Requires: lz4 >= 1:1.7.3 |
d5cae1aa | 179 | Requires: python3-%{name} = %{version}-%{release} |
6b8625f1 | 180 | %{?with_system_rocksdb:Requires: rocksdb >= 5.14} |
bef2a0ad | 181 | Requires: systemd-units >= 38 |
d8321c07 | 182 | Requires: zstd >= 1.4.4 |
c89c1ad8 JB |
183 | Obsoletes: gcephtool < 0.51 |
184 | Obsoletes: hadoop-cephfs < 0.71 | |
2a1a6301 JR |
185 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
186 | ||
cc053f74 | 187 | %define skip_post_check_so libceph_crypto_isal.so.* libceph_crypto_qat.so.* libceph_lz4.so.* libceph_snappy.so.* libceph_zlib.so.* libceph_zstd.so.* libcls_.*.so.* libec_.*.so.* |
2a1a6301 JR |
188 | |
189 | %description | |
190 | Ceph is a distributed network file system designed to provide | |
191 | excellent performance, reliability, and scalability. | |
192 | ||
e5fc70df JB |
193 | %description -l pl.UTF-8 |
194 | Ceph to rozproszony sieciowy system plików zaprojektowany z myślą o | |
195 | dobrej wydajności, wiarygodności i skalowalności. | |
196 | ||
2a1a6301 JR |
197 | %package libs |
198 | Summary: Ceph shared libraries | |
e5fc70df | 199 | Summary(pl.UTF-8): Biblioteki współdzielone Cepha |
2a1a6301 | 200 | Group: Libraries |
737284c4 | 201 | Requires: libfmt >= 6.0.0 |
6b8625f1 | 202 | Requires: librdkafka >= 0.9.2 |
d8321c07 | 203 | Requires: openssl >= 1.1 |
2a1a6301 JR |
204 | |
205 | %description libs | |
206 | Ceph shared libraries. | |
207 | ||
e5fc70df JB |
208 | %description libs -l pl.UTF-8 |
209 | Biblioteki współdzielone Cepha. | |
2a1a6301 JR |
210 | |
211 | %package devel | |
e5fc70df JB |
212 | Summary: Ceph header files |
213 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Cepha | |
96c29907 | 214 | License: LGPL v2.1 |
2a1a6301 JR |
215 | Group: Development/Libraries |
216 | Requires: %{name}-libs = %{version}-%{release} | |
674529cb | 217 | Requires: boost-devel >= 1.73 |
bbcdc7ce | 218 | Requires: curl-devel |
6b8625f1 | 219 | Requires: expat-devel >= 1.95 |
bbcdc7ce JB |
220 | Requires: fcgi-devel |
221 | Requires: nss-devel >= 3 | |
b44a3efd | 222 | Requires: leveldb-devel >= 1.23-2 |
96c29907 | 223 | Requires: libatomic_ops |
bbcdc7ce | 224 | Requires: libblkid-devel >= 2.17 |
682d6dd5 | 225 | Requires: libstdc++-devel >= 6:7 |
96c29907 | 226 | Requires: libuuid-devel |
bbcdc7ce JB |
227 | %{?with_lttng:Requires: lttng-ust-devel} |
228 | Requires: openldap-devel | |
1b11728e | 229 | Obsoletes: ceph-static < 12 |
2a1a6301 JR |
230 | |
231 | %description devel | |
232 | This package contains the headers needed to develop programs that use | |
233 | Ceph. | |
234 | ||
e5fc70df JB |
235 | %description devel -l pl.UTF-8 |
236 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
237 | wykorzystujących Cepha. | |
238 | ||
1b11728e JB |
239 | %package -n python3-ceph |
240 | Summary: Ceph Python 3 bindings | |
241 | Summary(pl.UTF-8): Wiązania Pythona 3 do bibliotek Cepha | |
242 | Group: Development/Languages/Python | |
243 | Requires: %{name}-libs = %{version}-%{release} | |
6b8625f1 | 244 | Obsoletes: python-ceph < 15 |
1b11728e JB |
245 | |
246 | %description -n python3-ceph | |
247 | Ceph Python 3 bindings. | |
248 | ||
249 | %description -n python3-ceph -l pl.UTF-8 | |
250 | Wiązania Pythona 3 do bibliotek Cepha. | |
e5fc70df | 251 | |
4f42482b JB |
252 | %package -n java-cephfs |
253 | Summary: CephFS Java bindings | |
254 | Summary(pl.UTF-8): Wiązania Javy do biblioteki CephFS | |
255 | Group: Libraries/Java | |
256 | Requires: %{name}-libs = %{version}-%{release} | |
257 | ||
258 | %description -n java-cephfs | |
259 | CephFS Java bindings. | |
260 | ||
261 | %description -n java-cephfs -l pl.UTF-8 | |
262 | Wiązania Javy do biblioteki CephFS. | |
263 | ||
e5fc70df JB |
264 | %package fuse |
265 | Summary: Ceph FUSE-based client | |
266 | Summary(pl.UTF-8): Klient Cepha oparty na FUSE | |
267 | Group: Base | |
268 | Requires: %{name} = %{version}-%{release} | |
269 | ||
270 | %description fuse | |
271 | FUSE based client for Ceph distributed network file system. | |
272 | ||
273 | %description fuse -l pl.UTF-8 | |
274 | Oparty na FUSE klient rozproszonego sieciowego systemu plików Ceph. | |
275 | ||
2a1a6301 JR |
276 | %package radosgw |
277 | Summary: rados REST gateway | |
e5fc70df JB |
278 | Summary(pl.UTF-8): Bramka REST-owa rados |
279 | Group: Applications/System | |
2a1a6301 JR |
280 | #Requires: apache-mod_fcgid |
281 | ||
282 | %description radosgw | |
283 | radosgw is an S3 HTTP REST gateway for the RADOS object store. It is | |
284 | implemented as a FastCGI module using libfcgi, and can be used in | |
285 | conjunction with any FastCGI capable web server. | |
286 | ||
e5fc70df JB |
287 | %description radosgw -l pl.UTF-8 |
288 | radosgw to REST-owa bramka HTTP S3 do przechowalni obiektów RADOS. | |
289 | Jest zaimplementowana jako moduł FastCGI wykorzystujący libfcgi i może | |
290 | być używana w połączeniu z dowolnym serwerem WWW obsługującym FastCGI. | |
291 | ||
245cb856 | 292 | %package resource-agents |
8029515d JB |
293 | Summary: OCF Resource Agents for Ceph processes |
294 | Summary(pl.UTF-8): Agenci OCF do monitorowania procesów Cepha | |
295 | Group: Applications/System | |
296 | Requires: %{name} = %{version}-%{release} | |
297 | Requires: resource-agents | |
298 | ||
245cb856 | 299 | %description resource-agents |
8029515d JB |
300 | OCF Resource Agents for Ceph processes. |
301 | ||
245cb856 | 302 | %description resource-agents -l pl.UTF-8 |
8029515d JB |
303 | Agenci OCF do monitorowania procesów Cepha. |
304 | ||
9911b50d JP |
305 | %package test |
306 | Summary: Ceph benchmarks and test tools | |
307 | Summary(pl.UTF-8): Narzędzia testowe oraz do mierzenia wydajności dla Ceph | |
308 | Group: Applications/System | |
309 | Requires: %{name} = %{version}-%{release} | |
310 | ||
311 | %description test | |
312 | Ceph benchmarks and test tools. | |
313 | ||
314 | %description test -l pl.UTF-8 | |
315 | Narzędzia testowe oraz do mierzenia wydajności dla Ceph. | |
316 | ||
79dc5cad JB |
317 | %package -n fio-ceph-objectstore |
318 | Summary: FIO engine module for Ceph ObjectStore | |
319 | Summary(pl.UTF-8): Moduł silnika FIO do używania Ceph ObjectStore | |
320 | Group: Libraries | |
321 | Requires: %{name}-libs = %{version}-%{release} | |
101b8bdd | 322 | %if %{with fio} |
79dc5cad | 323 | %requires_ge_to fio fio-devel |
101b8bdd | 324 | %endif |
79dc5cad JB |
325 | |
326 | %description -n fio-ceph-objectstore | |
327 | This FIO engine allows you to mount and use a ceph object store | |
328 | directly, without having to build a ceph cluster or start any daemons. | |
329 | ||
330 | %description -n fio-ceph-objectstore -l pl.UTF-8 | |
331 | Ten silnik FIO pozwala na bezpośrednie montowanie i używanie | |
332 | przestrzeni obiektów ceph, bez potrzeby budowania klastra ceph czy | |
333 | uruchamiania demonów. | |
334 | ||
2a1a6301 JR |
335 | %prep |
336 | %setup -q | |
337 | %patch0 -p1 | |
737284c4 | 338 | %patch1 -p1 |
f8bb146f JR |
339 | %patch2 -p1 |
340 | %patch3 -p1 | |
341 | %patch4 -p1 | |
32e4d0ff | 342 | %patch5 -p1 |
c8d4a223 | 343 | %patch6 -p1 |
c8d4a223 | 344 | %patch7 -p1 |
bbe36688 | 345 | %patch8 -p1 |
9d79249d | 346 | %ifarch %{ix86} |
bbe36688 | 347 | %patch9 -p1 |
9d79249d | 348 | %endif |
32e4d0ff | 349 | %patch10 -p1 |
682d6dd5 | 350 | %patch11 -p1 |
cc053f74 JB |
351 | %patch12 -p1 |
352 | %patch13 -p1 | |
c5b31b08 | 353 | %patch14 -p1 |
a74f78a4 | 354 | %patch15 -p1 |
674529cb | 355 | %patch16 -p1 |
06e5dbcf | 356 | %patch17 -p1 |
e3919159 | 357 | |
f7926bf0 | 358 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' \ |
d8321c07 JB |
359 | src/{ceph-post-file.in,rbd-replay-many,rbdmap} \ |
360 | src/rgw/rgw-{gap,orphan}-list | |
f7926bf0 | 361 | |
737284c4 | 362 | %{__sed} -i -e '1s,/usr/bin/awk,/bin/awk,' \ |
370f7446 JR |
363 | src/rgw/rgw-gap-list-comparator |
364 | ||
f7926bf0 JB |
365 | %if %{with angular} |
366 | # stub virtualenv with npm for src/pybind/mgr/dashboard bootstrapping | |
367 | install -d build/src/pybind/mgr/dashboard/node-env/bin | |
368 | ln -sf /usr/bin/npm build/src/pybind/mgr/dashboard/node-env/bin/npm | |
369 | cat >build/src/pybind/mgr/dashboard/node-env/bin/activate <<EOF | |
370 | deactivate() { | |
371 | unset -f deactivate | |
372 | } | |
373 | EOF | |
f7926bf0 JB |
374 | %endif |
375 | ||
2a1a6301 | 376 | %build |
1b11728e JB |
377 | install -d build |
378 | cd build | |
379 | %cmake .. \ | |
bbe36688 JR |
380 | %ifarch %{x8664} %{ix86} x32 |
381 | -DHAVE_INTEL_SSE=1 \ | |
382 | %endif | |
383 | %ifarch %{x8664} x32 | |
384 | -DHAVE_INTEL_SSE2=1 \ | |
385 | -DHAVE_INTEL_SSE3=1 \ | |
386 | -DHAVE_INTEL_SSSE3=1 \ | |
387 | -DHAVE_INTEL_PCLMUL=1 \ | |
388 | -DHAVE_INTEL_SSE4_1=1 \ | |
389 | -DHAVE_INTEL_SSE4_2=1 \ | |
390 | %endif | |
1b11728e JB |
391 | -DALLOCATOR="%{?with_tcmalloc:tcmalloc}%{!?with_tcmalloc:libc}" \ |
392 | -DFIO_INCLUDE_DIR=/usr/include/fio \ | |
737284c4 | 393 | %{?with_java:-DJAVA_HOME:PATH=%{java_home}} \ |
d9328226 | 394 | -DLUA_INCLUDE_DIR=%{_includedir}/lua \ |
d5cae1aa | 395 | -DPYTHON=%{__python3} \ |
f8bb146f | 396 | -DSPHINX_BUILD=/usr/bin/sphinx-build \ |
1b11728e | 397 | %{!?with_babeltrace:-DWITH_BABELTRACE=OFF} \ |
32e4d0ff | 398 | %{?with_bluefs:-DWITH_BLUEFS=ON} \ |
720615cf JR |
399 | %if %{with pmem} |
400 | -DWITH_BLUESTORE_PMEM=ON \ | |
401 | -DWITH_SYSTEM_PMDK:BOOL=ON \ | |
402 | %endif | |
1b11728e JB |
403 | %{?with_java:-DWITH_CEPHFS_JAVA=ON} \ |
404 | %{?with_dpdk:-DWITH_DPDK=ON} \ | |
405 | %{?with_fio:-DWITH_FIO=ON} \ | |
682d6dd5 | 406 | %{?with_kerberos:-DWITH_GSSAPI=ON} \ |
1b11728e JB |
407 | %{!?with_lttng:-DWITH_LTTNG=OFF} \ |
408 | -DWITH_LZ4=ON \ | |
f7926bf0 | 409 | %{!?with_angular:-DWITH_MGR_DASHBOARD_FRONTEND=OFF} \ |
1b11728e | 410 | -DWITH_OCF=ON \ |
737284c4 | 411 | -DWITH_PYTHON3=%{py3_ver} \ |
1b11728e | 412 | %{?with_fcgi:-DWITH_RADOSGW_FCGI_FRONTEND=ON} \ |
682d6dd5 | 413 | %{!?with_rdma:-DWITH_RDMA=OFF} \ |
737284c4 | 414 | -DWITH_REENTRANT_STRSIGNAL=ON \ |
32e4d0ff JB |
415 | %{?with_qat:-DWITH_QAT=ON} \ |
416 | %{?with_qatzip:-DWITH_QATZIP=ON} \ | |
417 | %{?with_seastar:-DWITH_SEASTAR=ON} \ | |
1b11728e JB |
418 | %{?with_spdk:-DWITH_SPDK=ON} \ |
419 | -DWITH_SYSTEM_BOOST=ON \ | |
682d6dd5 | 420 | -DWITH_SYSTEM_LIBURING=ON \ |
d8321c07 | 421 | %{?with_angular:-DWITH_SYSTEM_NPM=ON} \ |
1b11728e | 422 | %{?with_system_rocksdb:-DWITH_SYSTEM_ROCKSDB=ON} \ |
d8321c07 | 423 | -DWITH_SYSTEM_ZSTD=ON \ |
1b11728e | 424 | -DWITH_SYSTEMD=ON \ |
737284c4 | 425 | %{!?with_tests:-DWITH_TESTS=OFF} \ |
32e4d0ff | 426 | %{?with_zbd:-DWITH_ZBD=ON} \ |
737284c4 | 427 | %{?with_zfs:-DWITH_ZFS=ON} |
1b11728e | 428 | |
dc8b799e JB |
429 | # some object files have missing dependencies on these, pregenerate to avoid global -j1 |
430 | %{__make} legacy-option-headers | |
431 | ||
f8bb146f | 432 | %{__make} |
2a1a6301 JR |
433 | |
434 | %install | |
435 | rm -rf $RPM_BUILD_ROOT | |
1b11728e JB |
436 | 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} \ |
437 | $RPM_BUILD_ROOT%{_sysconfdir}/{ceph,bash_completion.d,logrotate.d,rc.d,sysconfig} \ | |
438 | $RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir},/etc/systemd/system/ceph.target.wants,/sbin} | |
4f42482b | 439 | |
1b11728e JB |
440 | %{__make} -C build install \ |
441 | DESTDIR=$RPM_BUILD_ROOT | |
2a1a6301 | 442 | |
1b11728e JB |
443 | # sanitize paths; no config options for cmake |
444 | %{__mv} $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d | |
1b11728e JB |
445 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/mount.* $RPM_BUILD_ROOT/sbin |
446 | ||
447 | cp -p src/logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ceph | |
2a1a6301 | 448 | |
bbcdc7ce | 449 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/ceph |
b6163d67 | 450 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/ceph.service |
bbcdc7ce | 451 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/ceph.conf |
b6163d67 | 452 | |
682d6dd5 | 453 | %if %{without tests} |
2df85c68 | 454 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/{ceph,ceph_volume}/tests |
682d6dd5 JB |
455 | %endif |
456 | ||
1b11728e JB |
457 | %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir} |
458 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir} | |
245cb856 | 459 | |
1b11728e JB |
460 | # packaged as %doc |
461 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/sample.ceph.conf | |
bb30e67a | 462 | |
f7926bf0 | 463 | %if %{with angular} |
d8321c07 | 464 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/mgr/dashboard/HACKING.rst |
f7926bf0 JB |
465 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ceph/mgr/{.gitignore,dashboard/static/AdminLTE-2.3.7/{.gitignore,.jshintrc,README.md}} |
466 | %endif | |
2a1a6301 JR |
467 | |
468 | %clean | |
469 | rm -rf $RPM_BUILD_ROOT | |
470 | ||
471 | %post | |
472 | /sbin/chkconfig --add ceph | |
473 | %service ceph restart | |
474 | ||
bef2a0ad JK |
475 | # actual services are to be enabled on cluster deployment |
476 | %systemd_post %{name}.target | |
477 | ||
2a1a6301 JR |
478 | %preun |
479 | if [ "$1" = "0" ] ; then | |
72daa1da JR |
480 | %service ceph stop |
481 | /sbin/chkconfig --del ceph | |
2a1a6301 | 482 | fi |
bef2a0ad JK |
483 | %systemd_preun %{name}.target |
484 | ||
485 | %postun | |
486 | %systemd_reload | |
2a1a6301 | 487 | |
e5fc70df JB |
488 | %post libs -p /sbin/ldconfig |
489 | %postun libs -p /sbin/ldconfig | |
2a1a6301 | 490 | |
4f42482b JB |
491 | %post -n java-cephfs -p /sbin/ldconfig |
492 | %postun -n java-cephfs -p /sbin/ldconfig | |
493 | ||
2a1a6301 JR |
494 | %files |
495 | %defattr(644,root,root,755) | |
9e1f65de | 496 | # COPYING specifies licenses of individual parts |
f7926bf0 | 497 | %doc AUTHORS COPYING PendingReleaseNotes README.md src/sample.ceph.conf doc/releases |
2a1a6301 | 498 | %attr(754,root,root) /etc/rc.d/init.d/ceph |
bef2a0ad JK |
499 | %config(noreplace) /etc/sysconfig/ceph |
500 | %dir /etc/systemd/system/ceph.target.wants | |
bbcdc7ce JB |
501 | %{systemdunitdir}/ceph.service |
502 | %{systemdunitdir}/ceph.target | |
bb30e67a | 503 | %{systemdunitdir}/ceph-crash.service |
1b11728e JB |
504 | %{systemdunitdir}/ceph-fuse.target |
505 | %{systemdunitdir}/ceph-fuse@.service | |
bb30e67a JR |
506 | %{systemdunitdir}/ceph-immutable-object-cache.target |
507 | %{systemdunitdir}/ceph-immutable-object-cache@.service | |
bbcdc7ce | 508 | %{systemdunitdir}/ceph-mds.target |
bef2a0ad | 509 | %{systemdunitdir}/ceph-mds@.service |
1b11728e JB |
510 | %{systemdunitdir}/ceph-mgr.target |
511 | %{systemdunitdir}/ceph-mgr@.service | |
bbcdc7ce | 512 | %{systemdunitdir}/ceph-mon.target |
bef2a0ad | 513 | %{systemdunitdir}/ceph-mon@.service |
bbcdc7ce | 514 | %{systemdunitdir}/ceph-osd.target |
bef2a0ad | 515 | %{systemdunitdir}/ceph-osd@.service |
bbcdc7ce JB |
516 | %{systemdunitdir}/ceph-rbd-mirror.target |
517 | %{systemdunitdir}/ceph-rbd-mirror@.service | |
1b11728e | 518 | %{systemdunitdir}/ceph-volume@.service |
737284c4 JB |
519 | %{systemdunitdir}/cephfs-mirror.target |
520 | %{systemdunitdir}/cephfs-mirror@.service | |
bbcdc7ce | 521 | %{systemdunitdir}/rbdmap.service |
bef2a0ad | 522 | %{systemdtmpfilesdir}/ceph.conf |
2a1a6301 JR |
523 | %dir %{_sysconfdir}/ceph |
524 | %attr(755,root,root) %{_bindir}/ceph | |
8c5712e2 | 525 | %attr(755,root,root) %{_bindir}/ceph-authtool |
1b11728e | 526 | %attr(755,root,root) %{_bindir}/ceph-bluestore-tool |
2a1a6301 | 527 | %attr(755,root,root) %{_bindir}/ceph-clsinfo |
8c5712e2 | 528 | %attr(755,root,root) %{_bindir}/ceph-conf |
bb30e67a | 529 | %attr(755,root,root) %{_bindir}/ceph-crash |
60d5543f | 530 | %attr(755,root,root) %{_bindir}/ceph-dencoder |
bb30e67a JR |
531 | %attr(755,root,root) %{_bindir}/ceph-diff-sorted |
532 | %attr(755,root,root) %{_bindir}/ceph-erasure-code-tool | |
4c3aa1f1 | 533 | %attr(755,root,root) %{_bindir}/ceph-exporter |
bb30e67a JR |
534 | %attr(755,root,root) %{_bindir}/ceph-immutable-object-cache |
535 | %attr(755,root,root) %{_bindir}/ceph-kvstore-tool | |
2a1a6301 | 536 | %attr(755,root,root) %{_bindir}/ceph-mds |
1b11728e | 537 | %attr(755,root,root) %{_bindir}/ceph-mgr |
8c5712e2 | 538 | %attr(755,root,root) %{_bindir}/ceph-mon |
bb30e67a | 539 | %attr(755,root,root) %{_bindir}/ceph-monstore-tool |
7f577810 | 540 | %attr(755,root,root) %{_bindir}/ceph-objectstore-tool |
2a1a6301 | 541 | %attr(755,root,root) %{_bindir}/ceph-osd |
bb30e67a | 542 | %attr(755,root,root) %{_bindir}/ceph-osdomap-tool |
5e39e43e | 543 | %attr(755,root,root) %{_bindir}/ceph-post-file |
2a1a6301 | 544 | %attr(755,root,root) %{_bindir}/ceph-rbdnamer |
8c5712e2 JB |
545 | %attr(755,root,root) %{_bindir}/ceph-run |
546 | %attr(755,root,root) %{_bindir}/ceph-syn | |
bbcdc7ce | 547 | %attr(755,root,root) %{_bindir}/cephfs-data-scan |
ae4b5127 | 548 | %attr(755,root,root) %{_bindir}/cephfs-journal-tool |
737284c4 | 549 | %attr(755,root,root) %{_bindir}/cephfs-mirror |
b431df60 | 550 | %attr(755,root,root) %{_bindir}/cephfs-table-tool |
737284c4 | 551 | %attr(755,root,root) %{_bindir}/cephfs-top |
ee3ab38d JB |
552 | %if %{with seastore} |
553 | %attr(755,root,root) %{_bindir}/crimson-osd | |
554 | %attr(755,root,root) %{_bindir}/crimson-store-nbd | |
555 | %endif | |
f8f6a16f | 556 | %attr(755,root,root) %{_bindir}/crushdiff |
8c5712e2 | 557 | %attr(755,root,root) %{_bindir}/crushtool |
2a1a6301 | 558 | %attr(755,root,root) %{_bindir}/librados-config |
8c5712e2 JB |
559 | %attr(755,root,root) %{_bindir}/monmaptool |
560 | %attr(755,root,root) %{_bindir}/osdmaptool | |
2a1a6301 JR |
561 | %attr(755,root,root) %{_bindir}/rados |
562 | %attr(755,root,root) %{_bindir}/rbd | |
8c5712e2 | 563 | %attr(755,root,root) %{_bindir}/rbd-fuse |
bbcdc7ce JB |
564 | %attr(755,root,root) %{_bindir}/rbd-mirror |
565 | %attr(755,root,root) %{_bindir}/rbd-nbd | |
9a1a508c | 566 | %attr(755,root,root) %{_bindir}/rbd-replay |
7f577810 | 567 | %attr(755,root,root) %{_bindir}/rbd-replay-many |
9a1a508c | 568 | %attr(755,root,root) %{_bindir}/rbd-replay-prep |
bbcdc7ce | 569 | %attr(755,root,root) %{_bindir}/rbdmap |
bb30e67a JR |
570 | %attr(755,root,root) %{_bindir}/rgw-gap-list |
571 | %attr(755,root,root) %{_bindir}/rgw-gap-list-comparator | |
572 | %attr(755,root,root) %{_bindir}/rgw-orphan-list | |
1b11728e | 573 | %attr(755,root,root) %{_sbindir}/ceph-create-keys |
1b11728e JB |
574 | %attr(755,root,root) %{_sbindir}/ceph-volume |
575 | %attr(755,root,root) %{_sbindir}/ceph-volume-systemd | |
4f42482b JB |
576 | %attr(755,root,root) /sbin/mount.ceph |
577 | %attr(755,root,root) /sbin/mount.fuse.ceph | |
e3919159 | 578 | %if "%{_libexecdir}" != "%{_libdir}" |
c1965bc2 | 579 | %dir %{_libexecdir}/ceph |
e3919159 | 580 | %endif |
a92d2e05 | 581 | %{_libexecdir}/ceph/ceph_common.sh |
c1965bc2 | 582 | %attr(755,root,root) %{_libexecdir}/ceph/ceph-osd-prestart.sh |
bbcdc7ce | 583 | %dir %{_libdir}/ceph/compressor |
1b11728e | 584 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_lz4.so* |
bbcdc7ce JB |
585 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_snappy.so* |
586 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zlib.so* | |
1b11728e | 587 | %attr(755,root,root) %{_libdir}/ceph/compressor/libceph_zstd.so* |
d65c5c24 | 588 | %dir %{_libdir}/ceph/crypto |
bb30e67a | 589 | %ifarch %{x8664} |
d65c5c24 JB |
590 | %attr(755,root,root) %{_libdir}/ceph/crypto/libceph_crypto_isal.so* |
591 | %endif | |
737284c4 | 592 | %attr(755,root,root) %{_libdir}/ceph/crypto/libceph_crypto_openssl.so* |
cc053f74 JB |
593 | %if %{with qat} |
594 | %attr(755,root,root) %{_libdir}/ceph/crypto/libceph_crypto_qat.so* | |
595 | %endif | |
f8f6a16f JB |
596 | %dir %{_libdir}/ceph/denc |
597 | %attr(755,root,root) %{_libdir}/ceph/denc/denc-mod-cephfs.so | |
598 | %attr(755,root,root) %{_libdir}/ceph/denc/denc-mod-common.so | |
599 | %attr(755,root,root) %{_libdir}/ceph/denc/denc-mod-osd.so | |
600 | %attr(755,root,root) %{_libdir}/ceph/denc/denc-mod-rbd.so | |
601 | %attr(755,root,root) %{_libdir}/ceph/denc/denc-mod-rgw.so | |
c408d7b3 | 602 | %dir %{_libdir}/ceph/erasure-code |
bb30e67a | 603 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_clay.so* |
58dc957f | 604 | %ifarch %{x8664} |
066d8601 | 605 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_isa.so* |
6fce7056 | 606 | %endif |
c408d7b3 | 607 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure.so* |
0509a77e | 608 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_generic.so* |
bbcdc7ce | 609 | %ifarch %{arm} |
7f577810 JB |
610 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_neon.so* |
611 | %endif | |
612 | %ifarch %{ix86} %{x8664} x32 | |
0509a77e JB |
613 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse3.so* |
614 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_jerasure_sse4.so* | |
bb30e67a JR |
615 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse3.so* |
616 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_sse4.so* | |
7f577810 | 617 | %endif |
9a1a508c | 618 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_lrc.so* |
b431df60 | 619 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec.so* |
bbcdc7ce | 620 | %attr(755,root,root) %{_libdir}/ceph/erasure-code/libec_shec_generic.so* |
bb30e67a JR |
621 | %dir %{_libdir}/ceph/librbd |
622 | %attr(755,root,root) %{_libdir}/ceph/librbd/libceph_librbd_parent_cache.so* | |
2a1a6301 | 623 | %dir %{_libdir}/rados-classes |
bb30e67a JR |
624 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_2pc_queue.so* |
625 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cas.so* | |
1b11728e | 626 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cephfs.so* |
bb30e67a JR |
627 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_cmpomap.so* |
628 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_fifo.so* | |
1b11728e JB |
629 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_hello.so* |
630 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_journal.so* | |
1b11728e JB |
631 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lock.so* |
632 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_log.so* | |
633 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_lua.so* | |
634 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_numops.so* | |
bb30e67a JR |
635 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_otp.so* |
636 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_queue.so* | |
1b11728e JB |
637 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rbd.so* |
638 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_refcount.so* | |
1b11728e | 639 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw.so* |
6b8625f1 | 640 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_rgw_gc.so* |
1b11728e | 641 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_sdk.so* |
f8f6a16f | 642 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_test_remote_reads.so* |
1b11728e JB |
643 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_timeindex.so* |
644 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_user.so* | |
645 | %attr(755,root,root) %{_libdir}/rados-classes/libcls_version.so* | |
5e39e43e | 646 | %{_datadir}/ceph |
2a1a6301 JR |
647 | %config(noreplace) /etc/logrotate.d/ceph |
648 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rados | |
649 | %config(noreplace) %{_sysconfdir}/bash_completion.d/ceph | |
650 | %config(noreplace) %{_sysconfdir}/bash_completion.d/rbd | |
651 | %{_mandir}/man8/ceph.8* | |
652 | %{_mandir}/man8/ceph-authtool.8* | |
1b11728e | 653 | %{_mandir}/man8/ceph-bluestore-tool.8* |
2a1a6301 JR |
654 | %{_mandir}/man8/ceph-clsinfo.8* |
655 | %{_mandir}/man8/ceph-conf.8* | |
63709ae0 | 656 | %{_mandir}/man8/ceph-create-keys.8* |
60d5543f | 657 | %{_mandir}/man8/ceph-dencoder.8* |
bb30e67a | 658 | %{_mandir}/man8/ceph-diff-sorted.8* |
bb30e67a JR |
659 | %{_mandir}/man8/ceph-immutable-object-cache.8* |
660 | %{_mandir}/man8/ceph-kvstore-tool.8* | |
2a1a6301 JR |
661 | %{_mandir}/man8/ceph-mds.8* |
662 | %{_mandir}/man8/ceph-mon.8* | |
663 | %{_mandir}/man8/ceph-osd.8* | |
5e39e43e | 664 | %{_mandir}/man8/ceph-post-file.8* |
60d5543f | 665 | %{_mandir}/man8/ceph-rbdnamer.8* |
2a1a6301 JR |
666 | %{_mandir}/man8/ceph-run.8* |
667 | %{_mandir}/man8/ceph-syn.8* | |
1b11728e JB |
668 | %{_mandir}/man8/ceph-volume.8* |
669 | %{_mandir}/man8/ceph-volume-systemd.8* | |
6b8625f1 | 670 | %{_mandir}/man8/cephadm.8* |
737284c4 JB |
671 | %{_mandir}/man8/cephfs-mirror.8* |
672 | %{_mandir}/man8/cephfs-top.8* | |
f8f6a16f | 673 | %{_mandir}/man8/crushdiff.8* |
2a1a6301 JR |
674 | %{_mandir}/man8/crushtool.8* |
675 | %{_mandir}/man8/librados-config.8* | |
2a1a6301 JR |
676 | %{_mandir}/man8/monmaptool.8* |
677 | %{_mandir}/man8/mount.ceph.8* | |
bb30e67a | 678 | %{_mandir}/man8/mount.fuse.ceph.8* |
2a1a6301 JR |
679 | %{_mandir}/man8/osdmaptool.8* |
680 | %{_mandir}/man8/rados.8* | |
2a1a6301 | 681 | %{_mandir}/man8/rbd.8* |
8c5712e2 | 682 | %{_mandir}/man8/rbd-fuse.8* |
bbcdc7ce JB |
683 | %{_mandir}/man8/rbd-mirror.8* |
684 | %{_mandir}/man8/rbd-nbd.8* | |
9a1a508c | 685 | %{_mandir}/man8/rbd-replay.8* |
7f577810 | 686 | %{_mandir}/man8/rbd-replay-many.8* |
9a1a508c | 687 | %{_mandir}/man8/rbd-replay-prep.8* |
bbcdc7ce | 688 | %{_mandir}/man8/rbdmap.8* |
bb30e67a | 689 | %{_mandir}/man8/rgw-orphan-list.8* |
60d5543f | 690 | |
2a1a6301 | 691 | %dir %{_localstatedir}/lib/ceph |
1b11728e JB |
692 | %dir %{_localstatedir}/lib/ceph/bootstrap-mds |
693 | %dir %{_localstatedir}/lib/ceph/bootstrap-mgr | |
694 | %dir %{_localstatedir}/lib/ceph/bootstrap-osd | |
695 | %dir %{_localstatedir}/lib/ceph/bootstrap-rbd | |
696 | %dir %{_localstatedir}/lib/ceph/bootstrap-rgw | |
b6163d67 | 697 | %dir %{_localstatedir}/lib/ceph/mds |
1b11728e | 698 | %dir %{_localstatedir}/lib/ceph/mgr |
b6163d67 JK |
699 | %dir %{_localstatedir}/lib/ceph/mon |
700 | %dir %{_localstatedir}/lib/ceph/osd | |
2a1a6301 JR |
701 | %dir %{_localstatedir}/lib/ceph/tmp |
702 | %dir %{_localstatedir}/log/ceph | |
bef2a0ad | 703 | %dir %{_localstatedir}/run/ceph |
2a1a6301 JR |
704 | |
705 | %files libs | |
706 | %defattr(644,root,root,755) | |
32e4d0ff JB |
707 | %if %{with bluefs} |
708 | %attr(755,root,root) %{_libdir}/libbluefs.so | |
709 | %endif | |
2a1a6301 | 710 | %attr(755,root,root) %{_libdir}/libcephfs.so.*.*.* |
1b11728e | 711 | %attr(755,root,root) %ghost %{_libdir}/libcephfs.so.2 |
4447516f JB |
712 | %attr(755,root,root) %{_libdir}/libos_tp.so.*.*.* |
713 | %attr(755,root,root) %ghost %{_libdir}/libos_tp.so.1 | |
714 | %attr(755,root,root) %{_libdir}/libosd_tp.so.*.*.* | |
715 | %attr(755,root,root) %ghost %{_libdir}/libosd_tp.so.1 | |
2a1a6301 JR |
716 | %attr(755,root,root) %{_libdir}/librados.so.*.*.* |
717 | %attr(755,root,root) %ghost %{_libdir}/librados.so.2 | |
4447516f JB |
718 | %attr(755,root,root) %{_libdir}/librados_tp.so.*.*.* |
719 | %attr(755,root,root) %ghost %{_libdir}/librados_tp.so.2 | |
bb30e67a JR |
720 | %attr(755,root,root) %{_libdir}/libradosgw.so.*.*.* |
721 | %attr(755,root,root) %ghost %{_libdir}/libradosgw.so.2 | |
548e0d3f JB |
722 | %attr(755,root,root) %{_libdir}/libradosstriper.so.*.*.* |
723 | %attr(755,root,root) %ghost %{_libdir}/libradosstriper.so.1 | |
2a1a6301 JR |
724 | %attr(755,root,root) %{_libdir}/librbd.so.*.*.* |
725 | %attr(755,root,root) %ghost %{_libdir}/librbd.so.1 | |
4447516f JB |
726 | %attr(755,root,root) %{_libdir}/librbd_tp.so.*.*.* |
727 | %attr(755,root,root) %ghost %{_libdir}/librbd_tp.so.1 | |
bbcdc7ce JB |
728 | %attr(755,root,root) %{_libdir}/librgw.so.*.*.* |
729 | %attr(755,root,root) %ghost %{_libdir}/librgw.so.2 | |
bb30e67a JR |
730 | %attr(755,root,root) %{_libdir}/librgw_op_tp.so.*.*.* |
731 | %attr(755,root,root) %ghost %{_libdir}/librgw_op_tp.so.2 | |
732 | %attr(755,root,root) %{_libdir}/librgw_rados_tp.so.*.*.* | |
733 | %attr(755,root,root) %ghost %{_libdir}/librgw_rados_tp.so.2 | |
734 | %attr(755,root,root) %{_libdir}/libcephsqlite.so | |
5b8dadc9 | 735 | %dir %{_libdir}/ceph |
bb30e67a | 736 | %attr(755,root,root) %{_libdir}/ceph/libceph-common.so.2 |
2a1a6301 | 737 | |
2a1a6301 JR |
738 | %files devel |
739 | %defattr(644,root,root,755) | |
2a1a6301 | 740 | %attr(755,root,root) %{_libdir}/libcephfs.so |
4447516f JB |
741 | %attr(755,root,root) %{_libdir}/libos_tp.so |
742 | %attr(755,root,root) %{_libdir}/libosd_tp.so | |
2a1a6301 | 743 | %attr(755,root,root) %{_libdir}/librados.so |
4447516f | 744 | %attr(755,root,root) %{_libdir}/librados_tp.so |
bb30e67a | 745 | %attr(755,root,root) %{_libdir}/libradosgw.so |
548e0d3f | 746 | %attr(755,root,root) %{_libdir}/libradosstriper.so |
2a1a6301 | 747 | %attr(755,root,root) %{_libdir}/librbd.so |
4447516f | 748 | %attr(755,root,root) %{_libdir}/librbd_tp.so |
bbcdc7ce | 749 | %attr(755,root,root) %{_libdir}/librgw.so |
bb30e67a JR |
750 | %attr(755,root,root) %{_libdir}/librgw_op_tp.so |
751 | %attr(755,root,root) %{_libdir}/librgw_rados_tp.so | |
e5fc70df JB |
752 | %{_includedir}/cephfs |
753 | %{_includedir}/rados | |
548e0d3f | 754 | %{_includedir}/radosstriper |
e5fc70df | 755 | %{_includedir}/rbd |
bb30e67a | 756 | %{_includedir}/libcephsqlite.h |
2a1a6301 | 757 | |
1b11728e JB |
758 | %files -n python3-ceph |
759 | %defattr(644,root,root,755) | |
760 | %attr(755,root,root) %{py3_sitedir}/cephfs.cpython-*.so | |
bb30e67a | 761 | %attr(755,root,root) %{py3_sitedir}/rados.cpython-*.so |
bb30e67a | 762 | %attr(755,root,root) %{py3_sitedir}/rbd.cpython-*.so |
bb30e67a | 763 | %attr(755,root,root) %{py3_sitedir}/rgw.cpython-*.so |
2df85c68 JR |
764 | %{py3_sitedir}/cephfs-2.0.0-py*.egg-info |
765 | %{py3_sitedir}/rados-2.0.0-py*.egg-info | |
766 | %{py3_sitedir}/rbd-2.0.0-py*.egg-info | |
1b11728e | 767 | %{py3_sitedir}/rgw-2.0.0-py*.egg-info |
2b3ddb3f JB |
768 | %{py3_sitescriptdir}/ceph_*.py |
769 | %{py3_sitescriptdir}/__pycache__/ceph_*.py* | |
770 | %{py3_sitescriptdir}/ceph | |
771 | %{py3_sitescriptdir}/ceph_volume | |
2df85c68 JR |
772 | %{py3_sitescriptdir}/ceph-1.0.0-py*.egg-info |
773 | %{py3_sitescriptdir}/ceph_volume-1.0.0-py*.egg-info | |
774 | %{py3_sitescriptdir}/cephfs_top-0.0.1-py*.egg-info | |
1b11728e | 775 | |
4f42482b JB |
776 | %if %{with java} |
777 | %files -n java-cephfs | |
778 | %defattr(644,root,root,755) | |
779 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so.*.*.* | |
780 | %attr(755,root,root) %ghost %{_libdir}/libcephfs_jni.so.1 | |
781 | %attr(755,root,root) %{_libdir}/libcephfs_jni.so | |
782 | %{_javadir}/libcephfs.jar | |
783 | %endif | |
784 | ||
e5fc70df JB |
785 | %files fuse |
786 | %defattr(644,root,root,755) | |
e5fc70df JB |
787 | %attr(755,root,root) %{_bindir}/ceph-fuse |
788 | %{_mandir}/man8/ceph-fuse.8* | |
789 | ||
2a1a6301 JR |
790 | %files radosgw |
791 | %defattr(644,root,root,755) | |
792 | %attr(755,root,root) %{_bindir}/radosgw | |
793 | %attr(755,root,root) %{_bindir}/radosgw-admin | |
1b11728e | 794 | %attr(755,root,root) %{_bindir}/radosgw-es |
bbcdc7ce JB |
795 | %attr(755,root,root) %{_bindir}/radosgw-object-expirer |
796 | %attr(755,root,root) %{_bindir}/radosgw-token | |
797 | %{systemdunitdir}/ceph-radosgw.target | |
798 | %{systemdunitdir}/ceph-radosgw@.service | |
2a1a6301 | 799 | %{_sysconfdir}/bash_completion.d/radosgw-admin |
1b11728e JB |
800 | %dir %{_localstatedir}/lib/ceph/radosgw |
801 | %{_mandir}/man8/radosgw.8* | |
802 | %{_mandir}/man8/radosgw-admin.8* | |
2a1a6301 | 803 | |
245cb856 | 804 | %files resource-agents |
8029515d JB |
805 | %defattr(644,root,root,755) |
806 | %dir %{_prefix}/lib/ocf/resource.d/ceph | |
8029515d | 807 | %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/ceph/rbd |
79dc5cad | 808 | |
bb30e67a | 809 | %if %{with tests} |
9911b50d JP |
810 | %files test |
811 | %defattr(644,root,root,755) | |
812 | %attr(755,root,root) %{_bindir}/ceph-client-debug | |
813 | %attr(755,root,root) %{_bindir}/ceph-coverage | |
814 | %attr(755,root,root) %{_bindir}/ceph-debugpack | |
815 | %attr(755,root,root) %{_bindir}/ceph-kvstore-tool | |
816 | %attr(755,root,root) %{_bindir}/ceph-monstore-tool | |
817 | %attr(755,root,root) %{_bindir}/ceph-osdomap-tool | |
818 | %attr(755,root,root) %{_bindir}/ceph_bench_log | |
819 | %attr(755,root,root) %{_bindir}/ceph_erasure_code | |
820 | %attr(755,root,root) %{_bindir}/ceph_erasure_code_benchmark | |
821 | %attr(755,root,root) %{_bindir}/ceph_kvstorebench | |
822 | %attr(755,root,root) %{_bindir}/ceph_multi_stress_watch | |
823 | %attr(755,root,root) %{_bindir}/ceph_objectstore_bench | |
824 | %attr(755,root,root) %{_bindir}/ceph_omapbench | |
825 | %attr(755,root,root) %{_bindir}/ceph_perf_local | |
826 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_client | |
827 | %attr(755,root,root) %{_bindir}/ceph_perf_msgr_server | |
828 | %attr(755,root,root) %{_bindir}/ceph_perf_objectstore | |
829 | %attr(755,root,root) %{_bindir}/ceph_psim | |
830 | %attr(755,root,root) %{_bindir}/ceph_radosacl | |
831 | %attr(755,root,root) %{_bindir}/ceph_rgw_jsonparser | |
832 | %attr(755,root,root) %{_bindir}/ceph_rgw_multiparser | |
833 | %attr(755,root,root) %{_bindir}/ceph_scratchtool | |
834 | %attr(755,root,root) %{_bindir}/ceph_scratchtoolpp | |
835 | %attr(755,root,root) %{_bindir}/ceph_smalliobench | |
836 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchdumb | |
837 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchfs | |
838 | %attr(755,root,root) %{_bindir}/ceph_smalliobenchrbd | |
839 | %attr(755,root,root) %{_bindir}/ceph_test_* | |
840 | %attr(755,root,root) %{_bindir}/ceph_tpbench | |
841 | %attr(755,root,root) %{_bindir}/ceph_xattr_bench | |
842 | %attr(755,root,root) %{_libdir}/ceph/ceph-monstore-update-crush.sh | |
682d6dd5 JB |
843 | %{py3_sitedir}/ceph/tests |
844 | %{py3_sitedir}/ceph_volume/tests | |
845 | %if %{with java} | |
846 | %{_javadir}/libcephfs-test.jar | |
847 | %endif | |
9911b50d JP |
848 | %{_mandir}/man8/ceph-debugpack.8* |
849 | %{_mandir}/man8/ceph-kvstore-tool.8* | |
850 | %endif | |
851 | ||
79dc5cad JB |
852 | %if %{with fio} |
853 | %files -n fio-ceph-objectstore | |
854 | %defattr(644,root,root,755) | |
855 | %doc src/test/fio/{README.md,ceph-*.conf,ceph-*.fio} | |
856 | %attr(755,root,root) %{_libdir}/libfio_ceph_objectstore.so | |
857 | %endif |