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