2 # spec file for package ceph
4 # Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
5 # at the top-level directory of this distribution and at
6 # https://github.com/ceph/ceph/blob/master/COPYING
8 # All modifications and additions to the file contributed by third parties
9 # remain the property of their copyright owners, unless otherwise agreed
12 # This file is under the GNU Lesser General Public License, version 2.1
14 # Please submit bugfixes or comments via http://tracker.ceph.com/
17 #################################################################################
18 # conditional build section
20 # please read http://rpm.org/user_doc/conditional_builds.html for explanation of
22 #################################################################################
23 %bcond_with make_check
24 %bcond_with cmake_verbose_logging
25 %bcond_without ceph_test_package
29 %bcond_without tcmalloc
31 %if 0%{?fedora} || 0%{?rhel}
32 %bcond_without selinux
34 %bcond_with cephfs_java
36 %bcond_without cephfs_java
38 %bcond_without amqp_endpoint
39 %bcond_without kafka_endpoint
41 %bcond_without libradosstriper
43 %global _remote_tarball_prefix https
://download.ceph.com
/tarballs
/
46 %bcond_with amqp_endpoint
47 %bcond_with cephfs_java
48 %bcond_with kafka_endpoint
49 %bcond_with libradosstriper
50 %ifarch x86_64 aarch64 ppc64le
57 #Compat macro for _fillupdir macro introduced in Nov 2017
58 %if ! %{defined _fillupdir}
59 %global _fillupdir
/var
/adm
/fillup
-templates
63 %if 0%{?fedora} || 0%{?suse_version} >= 1500
64 # distros that ship cmd2 and/or colorama
65 %bcond_without cephfs_shell
67 # distros that do _not_ ship cmd2/colorama
68 %bcond_with cephfs_shell
70 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
74 # get selinux policy version
75 # Force 0.0.0 policy version for centos builds to avoid repository sync issues between rhel and centos
77 %global _selinux_policy_version
0.0.0
79 %{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
83 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
84 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
85 %{!?python3_pkgversion: %global python3_pkgversion 3}
86 %{!?python3_version_nodots: %global python3_version_nodots 3}
87 %{!?python3_version: %global python3_version 3}
89 %define __python
%{__python3}
91 # unify libexec for all targets
92 %global _libexecdir
%{_exec_prefix}/lib
94 # disable dwz which compresses the debuginfo
95 %global _find_debuginfo_dwz_opts
%{nil}
97 #################################################################################
98 # main package definition
99 #################################################################################
101 Version: @PROJECT_VERSION@
102 Release: @RPM_RELEASE@
%{?dist}
103 %if 0%{?fedora} || 0%{?rhel}
107 # define _epoch_prefix macro which will expand to the empty string if epoch is
109 %global _epoch_prefix
%{?epoch:%{epoch}:}
111 Summary: User space components of the Ceph file system
112 License: LGPL
-2.1 and LGPL
-3.0 and CC
-BY
-SA
-3.0 and GPL
-2.0 and BSL
-1.0 and BSD
-3-Clause and MIT
113 %if 0%{?suse_version}
114 Group: System
/Filesystems
116 URL: http
://ceph.com
/
117 Source0: %{?_remote_tarball_prefix}@TARBALL_BASENAME@.tar.bz2
118 %if 0%{?suse_version}
119 # _insert_obs_source_lines_here
120 ExclusiveArch: x86_64 aarch64 ppc64le s390x
122 #################################################################################
123 # dependencies that apply across all distro families
124 #################################################################################
125 Requires: ceph
-osd
= %{_epoch_prefix}%{version}-%{release}
126 Requires: ceph
-mds
= %{_epoch_prefix}%{version}-%{release}
127 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
128 Requires: ceph
-mon
= %{_epoch_prefix}%{version}-%{release}
129 Requires(post
): binutils
130 %if 0%{with cephfs_java}
131 BuildRequires
: java
-devel
132 BuildRequires
: sharutils
135 BuildRequires
: checkpolicy
136 BuildRequires
: selinux
-policy
-devel
140 BuildRequires
: cmake3
> 3.5
142 BuildRequires
: cmake
> 3.5
144 BuildRequires
: cryptsetup
145 BuildRequires
: fuse
-devel
147 # devtoolset offers newer make and valgrind-devel, but the old ones are good
149 BuildRequires
: devtoolset
-8-gcc
-c
++ >= 8.3.1-3.1
151 BuildRequires
: gcc
-c
++
154 %if 0%{with tcmalloc}
155 %if 0%{?fedora} || 0%{?rhel}
156 BuildRequires
: gperftools
-devel
>= 2.6.1
158 %if 0%{?suse_version}
159 BuildRequires
: gperftools
-devel
>= 2.4
162 BuildRequires
: leveldb
-devel
> 1.2
163 BuildRequires
: libaio
-devel
164 BuildRequires
: libblkid
-devel
>= 2.17
165 BuildRequires
: libcurl
-devel
166 BuildRequires
: libcap
-ng
-devel
167 BuildRequires
: pkgconfig
(libudev
)
168 BuildRequires
: libnl3
-devel
169 BuildRequires
: liboath
-devel
170 BuildRequires
: libtool
171 BuildRequires
: libxml2
-devel
173 BuildRequires
: ncurses
-devel
174 BuildRequires
: parted
177 BuildRequires
: pkgconfig
178 BuildRequires
: procps
179 BuildRequires
: python
%{python3_pkgversion}
180 BuildRequires
: python
%{python3_pkgversion}-devel
181 BuildRequires
: snappy
-devel
183 BuildRequires
: pkgconfig
(udev
)
184 BuildRequires
: util
-linux
185 BuildRequires
: valgrind
-devel
187 BuildRequires
: xfsprogs
188 BuildRequires
: xfsprogs
-devel
189 BuildRequires
: xmlstarlet
191 %if 0%{with amqp_endpoint}
192 BuildRequires
: librabbitmq
-devel
194 %if 0%{with kafka_endpoint}
195 BuildRequires
: librdkafka
-devel
197 %if 0%{with make_check}
199 BuildRequires
: libuuid
-devel
201 BuildRequires
: python
%{python3_version_nodots}-bcrypt
202 BuildRequires
: python
%{python3_version_nodots}-nose
203 BuildRequires
: python
%{python3_version_nodots}-requests
204 BuildRequires
: python
%{python3_version_nodots}-dateutil
206 BuildRequires
: python
%{python3_pkgversion}-bcrypt
207 BuildRequires
: python
%{python3_pkgversion}-nose
208 BuildRequires
: python
%{python3_pkgversion}-pecan
209 BuildRequires
: python
%{python3_pkgversion}-requests
210 BuildRequires
: python
%{python3_pkgversion}-dateutil
213 BuildRequires
: python
%{python3_version_nodots}-six
214 BuildRequires
: python
%{python3_version_nodots}-virtualenv
216 BuildRequires
: python
%{python3_pkgversion}-six
217 BuildRequires
: python
%{python3_pkgversion}-virtualenv
220 BuildRequires
: python
%{python3_version_nodots}-coverage
222 BuildRequires
: python
%{python3_pkgversion}-coverage
225 BuildRequires
: python
%{python3_version_nodots}-pyOpenSSL
227 BuildRequires
: python
%{python3_pkgversion}-pyOpenSSL
232 BuildRequires
: c
-ares
-devel
233 BuildRequires
: gnutls
-devel
234 BuildRequires
: hwloc
-devel
235 BuildRequires
: libpciaccess
-devel
236 BuildRequires
: lksctp
-tools
-devel
237 BuildRequires
: protobuf
-devel
239 BuildRequires
: systemtap
-sdt
-devel
240 BuildRequires
: yaml
-cpp
-devel
242 #################################################################################
243 # distro-conditional dependencies
244 #################################################################################
245 %if 0%{?suse_version}
246 BuildRequires
: pkgconfig
(systemd
)
247 BuildRequires
: systemd
-rpm
-macros
249 PreReq
: %fillup_prereq
250 BuildRequires
: fdupes
251 BuildRequires
: net
-tools
252 BuildRequires
: libbz2
-devel
253 BuildRequires
: mozilla
-nss
-devel
254 BuildRequires
: keyutils
-devel
255 BuildRequires
: libopenssl
-devel
256 BuildRequires
: lsb
-release
257 BuildRequires
: openldap2
-devel
259 #BuildRequires: krb5-devel
260 BuildRequires
: cunit
-devel
261 BuildRequires
: python
%{python3_pkgversion}-setuptools
262 BuildRequires
: python
%{python3_pkgversion}-Cython
263 BuildRequires
: python
%{python3_pkgversion}-PrettyTable
264 BuildRequires
: python
%{python3_pkgversion}-Sphinx
265 BuildRequires
: rdma
-core
-devel
266 BuildRequires
: liblz4
-devel
>= 1.7
267 # for prometheus-alerts
268 BuildRequires
: golang
-github
-prometheus
-prometheus
270 %if 0%{?fedora} || 0%{?rhel}
272 BuildRequires
: boost
-random
273 BuildRequires
: nss
-devel
274 BuildRequires
: keyutils
-libs
-devel
275 BuildRequires
: libibverbs
-devel
276 BuildRequires
: librdmacm
-devel
277 BuildRequires
: openldap
-devel
278 #BuildRequires: krb5-devel
279 BuildRequires
: openssl
-devel
280 BuildRequires
: CUnit
-devel
281 BuildRequires
: redhat
-lsb
-core
282 BuildRequires
: python
%{python3_pkgversion}-devel
283 BuildRequires
: python
%{python3_pkgversion}-setuptools
285 BuildRequires
: python
%{python3_version_nodots}-Cython
287 BuildRequires
: python
%{python3_pkgversion}-Cython
289 BuildRequires
: python
%{python3_pkgversion}-prettytable
290 BuildRequires
: python
%{python3_pkgversion}-sphinx
291 BuildRequires
: lz4
-devel
>= 1.7
293 # distro-conditional make check dependencies
294 %if 0%{with make_check}
295 %if 0%{?fedora} || 0%{?rhel}
296 BuildRequires
: libtool
-ltdl
-devel
297 BuildRequires
: xmlsec1
298 BuildRequires
: xmlsec1
-devel
300 BuildRequires
: xmlsec1
-nss
302 BuildRequires
: xmlsec1
-openssl
303 BuildRequires
: xmlsec1
-openssl
-devel
305 BuildRequires
: python
%{python3_version_nodots}-jwt
306 BuildRequires
: python
%{python3_version_nodots}-scipy
308 BuildRequires
: python
%{python3_pkgversion}-cherrypy
309 BuildRequires
: python
%{python3_pkgversion}-jwt
310 BuildRequires
: python
%{python3_pkgversion}-routes
311 BuildRequires
: python
%{python3_pkgversion}-scipy
312 BuildRequires
: python
%{python3_pkgversion}-werkzeug
315 BuildRequires
: python
%{python3_version_nodots}-pyOpenSSL
317 BuildRequires
: python
%{python3_pkgversion}-pyOpenSSL
320 %if 0%{?suse_version}
321 BuildRequires
: libxmlsec1
-1
322 BuildRequires
: libxmlsec1
-nss1
323 BuildRequires
: libxmlsec1
-openssl1
324 BuildRequires
: python
%{python3_pkgversion}-CherryPy
325 BuildRequires
: python
%{python3_pkgversion}-PyJWT
326 BuildRequires
: python
%{python3_pkgversion}-Routes
327 BuildRequires
: python
%{python3_pkgversion}-Werkzeug
328 BuildRequires
: python
%{python3_pkgversion}-numpy
-devel
329 BuildRequires
: xmlsec1
-devel
330 BuildRequires
: xmlsec1
-openssl
-devel
333 # lttng and babeltrace for rbd-replay-prep
335 %if 0%{?fedora} || 0%{?rhel}
336 BuildRequires
: lttng
-ust
-devel
337 BuildRequires
: libbabeltrace
-devel
339 %if 0%{?suse_version}
340 BuildRequires
: lttng
-ust
-devel
341 BuildRequires
: babeltrace
-devel
344 %if 0%{?suse_version}
345 BuildRequires
: libexpat
-devel
347 %if 0%{?rhel} || 0%{?fedora}
348 BuildRequires
: expat
-devel
351 %if 0%{?fedora} || 0%{?rhel}
352 BuildRequires
: redhat
-rpm
-config
355 %if 0%{?fedora} || 0%{?rhel}
356 BuildRequires
: cryptopp
-devel
357 BuildRequires
: numactl
-devel
358 BuildRequires
: protobuf
-compiler
360 %if 0%{?suse_version}
361 BuildRequires
: libcryptopp
-devel
362 BuildRequires
: libnuma
-devel
366 BuildRequires
: /usr
/bin
/pathfix.py
370 Ceph is a massively scalable
, open
-source, distributed storage system that runs
371 on commodity hardware and delivers object
, block and file system storage.
374 #################################################################################
376 #################################################################################
378 Summary: Ceph Base Package
379 %if 0%{?suse_version}
380 Group: System
/Filesystems
382 Provides: ceph
-test:/usr
/bin
/ceph
-kvstore
-tool
383 Requires: ceph
-common
= %{_epoch_prefix}%{version}-%{release}
384 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
385 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
386 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
387 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
389 Requires: ceph
-selinux
= %{_epoch_prefix}%{version}-%{release}
398 Requires: python
%{python3_pkgversion}-setuptools
402 %if 0%{?fedora} || 0%{?rhel}
403 # The following is necessary due to tracker 36508 and can be removed once the
404 # associated upstream bugs are resolved.
405 %if 0%{with tcmalloc}
406 Requires: gperftools
-libs
>= 2.6.1
413 Base is the package that includes all the files shared amongst ceph servers
416 Summary: Utility to bootstrap Ceph clusters
418 %if 0%{?suse_version}
419 Requires: apparmor
-abstractions
421 Requires: python
%{python3_pkgversion}
425 %description -n cephadm
426 Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed
427 with systemd and podman.
429 %package -n ceph
-common
431 %if 0%{?suse_version}
432 Group: System
/Filesystems
434 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
435 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
436 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
437 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
438 Requires: python
%{python3_pkgversion}-rbd = %{_epoch_prefix}%{version}-%{release}
439 Requires: python
%{python3_pkgversion}-cephfs = %{_epoch_prefix}%{version}-%{release}
440 Requires: python
%{python3_pkgversion}-rgw = %{_epoch_prefix}%{version}-%{release}
441 Requires: python
%{python3_pkgversion}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
442 Requires: python
%{python3_pkgversion}-ceph-common = %{_epoch_prefix}%{version}-%{release}
443 %if 0%{?fedora} || 0%{?rhel}
444 Requires: python
%{python3_pkgversion}-prettytable
446 %if 0%{?suse_version}
447 Requires: python
%{python3_pkgversion}-PrettyTable
449 %if 0%{with libradosstriper}
450 Requires: libradosstriper1
= %{_epoch_prefix}%{version}-%{release}
453 %if 0%{?suse_version}
454 Requires(pre
): pwdutils
456 %description -n ceph
-common
457 Common utilities to mount and interact with a ceph storage cluster.
458 Comprised of files that are common to Ceph clients and servers.
461 Summary: Ceph Metadata Server Daemon
462 %if 0%{?suse_version}
463 Group: System
/Filesystems
465 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
467 ceph
-mds is the metadata server daemon
for the Ceph distributed file system.
468 One or more instances of ceph
-mds collectively manage the file system
469 namespace
, coordinating access to the shared OSD cluster.
472 Summary: Ceph Monitor Daemon
473 %if 0%{?suse_version}
474 Group: System
/Filesystems
476 Provides: ceph
-test:/usr
/bin
/ceph
-monstore
-tool
477 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
479 ceph
-mon is the cluster monitor daemon
for the Ceph distributed file
480 system. One or more instances of ceph
-mon form a Paxos part
-time
481 parliament cluster that provides extremely reliable and durable storage
482 of cluster membership
, configuration
, and state.
485 Summary: Ceph Manager Daemon
486 %if 0%{?suse_version}
487 Group: System
/Filesystems
489 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
490 Requires: ceph
-mgr
-modules
-core
= %{_epoch_prefix}%{version}-%{release}
492 Requires: python
%{python3_version_nodots}-six
494 Requires: python
%{python3_pkgversion}-six
497 Recommends
: ceph
-mgr
-dashboard
= %{_epoch_prefix}%{version}-%{release}
498 Recommends
: ceph
-mgr
-diskprediction
-local = %{_epoch_prefix}%{version}-%{release}
499 Recommends
: ceph
-mgr
-diskprediction
-cloud
= %{_epoch_prefix}%{version}-%{release}
500 Recommends
: ceph
-mgr
-k8sevents
= %{_epoch_prefix}%{version}-%{release}
501 Recommends
: ceph
-mgr
-cephadm
= %{_epoch_prefix}%{version}-%{release}
502 Recommends
: python
%{python3_pkgversion}-influxdb
505 ceph
-mgr enables python modules that provide services
(such as the REST
506 module derived from Calamari
) and expose CLI hooks. ceph
-mgr gathers
507 the cluster maps
, the daemon metadata
, and performance counters
, and
508 exposes all these to the python modules.
510 %package mgr
-dashboard
511 Summary: Ceph Dashboard
513 %if 0%{?suse_version}
514 Group: System
/Filesystems
516 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
517 Requires: ceph
-grafana
-dashboards
= %{_epoch_prefix}%{version}-%{release}
518 Requires: ceph
-prometheus
-alerts
= %{_epoch_prefix}%{version}-%{release}
519 %if 0%{?fedora} || 0%{?rhel}
520 Requires: python
%{python3_pkgversion}-cherrypy
521 Requires: python
%{python3_pkgversion}-jwt
522 Requires: python
%{python3_pkgversion}-routes
523 Requires: python
%{python3_pkgversion}-werkzeug
525 Recommends
: python
%{python3_pkgversion}-saml
528 %if 0%{?suse_version}
529 Requires: python
%{python3_pkgversion}-CherryPy
530 Requires: python
%{python3_pkgversion}-PyJWT
531 Requires: python
%{python3_pkgversion}-Routes
532 Requires: python
%{python3_pkgversion}-Werkzeug
533 Recommends
: python
%{python3_pkgversion}-python3
-saml
535 %description mgr
-dashboard
536 ceph
-mgr
-dashboard is a manager module
, providing a web
-based application
537 to monitor and manage many aspects of a Ceph cluster and related components.
538 See the Dashboard documentation at http
://docs.ceph.com
/ for details and a
539 detailed feature overview.
541 %package mgr
-diskprediction
-local
542 Summary: Ceph Manager module
for predicting disk failures
544 %if 0%{?suse_version}
545 Group: System
/Filesystems
547 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
548 Requires: python
%{python3_pkgversion}-numpy
549 Requires: python3
-scipy
554 %description mgr
-diskprediction
-local
555 ceph
-mgr
-diskprediction
-local is a ceph
-mgr module that tries to predict
556 disk failures using
local algorithms and machine
-learning databases.
558 %package mgr
-diskprediction
-cloud
559 Summary: Ceph Manager module
for cloud
-based disk failure prediction
561 %if 0%{?suse_version}
562 Group: System
/Filesystems
564 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
565 %if 0%{without python2}
566 Requires: python3
-grpcio
567 Requires: python3
-protobuf
569 Requires: python2
-grpcio
570 Requires: python2
-protobuf
572 %description mgr
-diskprediction
-cloud
573 ceph
-mgr
-diskprediction
-cloud is a ceph
-mgr module that tries to predict
574 disk failures using services
in the Google cloud.
576 %package mgr
-modules
-core
577 Summary: Ceph Manager modules which are always enabled
579 %if 0%{?suse_version}
580 Group: System
/Filesystems
583 Requires: python
%{python3_version_nodots}-bcrypt
584 Requires: python
%{python3_version_nodots}-pyOpenSSL
585 Requires: python
%{python3_version_nodots}-requests
586 Requires: python
%{python3_version_nodots}-PyYAML
587 Requires: python
%{python3_version_nodots}-dateutil
589 Requires: python
%{python3_pkgversion}-bcrypt
590 Requires: python
%{python3_pkgversion}-pecan
591 Requires: python
%{python3_pkgversion}-pyOpenSSL
592 Requires: python
%{python3_pkgversion}-requests
593 Requires: python
%{python3_pkgversion}-dateutil
595 %if 0%{?fedora} || 0%{?rhel} >= 8
596 Requires: python
%{python3_pkgversion}-cherrypy
597 Requires: python
%{python3_pkgversion}-pyyaml
598 Requires: python
%{python3_pkgversion}-werkzeug
600 %if 0%{?suse_version}
601 Requires: python
%{python3_pkgversion}-CherryPy
602 Requires: python
%{python3_pkgversion}-PyYAML
603 Requires: python
%{python3_pkgversion}-Werkzeug
606 Recommends
: ceph
-mgr
-rook
= %{_epoch_prefix}%{version}-%{release}
608 %description mgr
-modules
-core
609 ceph
-mgr
-modules
-core provides a
set of modules which are always
614 Summary: Ceph Manager module
for Rook
-based orchestration
615 %if 0%{?suse_version}
616 Group: System
/Filesystems
618 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
619 Requires: python
%{python3_pkgversion}-kubernetes
620 Requires: python
%{python3_pkgversion}-jsonpatch
621 %description mgr
-rook
622 ceph
-mgr
-rook is a ceph
-mgr module
for orchestration functions using
625 %package mgr
-k8sevents
627 Summary: Ceph Manager module to orchestrate ceph
-events to kubernetes' events API
628 %if 0%{?suse_version}
629 Group: System
/Filesystems
631 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
632 Requires: python
%{python3_pkgversion}-kubernetes
633 %description mgr
-k8sevents
634 ceph
-mgr
-k8sevents is a ceph
-mgr module that sends every ceph
-events
635 to kubernetes' events API
638 Summary: Ceph Manager module
for cephadm
-based orchestration
640 %if 0%{?suse_version}
641 Group: System
/Filesystems
643 Requires: ceph
-mgr
= %{_epoch_prefix}%{version}-%{release}
644 Requires: python
%{python3_pkgversion}-remoto
645 Requires: cephadm
= %{_epoch_prefix}%{version}-%{release}
646 %if 0%{?suse_version}
648 Requires: python
%{python3_pkgversion}-Jinja2
650 %if 0%{?rhel} || 0%{?fedora}
651 Requires: openssh
-clients
652 Requires: python
%{python3_pkgversion}-jinja2
654 %description mgr
-cephadm
655 ceph
-mgr
-cephadm is a ceph
-mgr module
for orchestration functions using
656 the integrated cephadm deployment tool management operations.
659 Summary: Ceph fuse
-based client
660 %if 0%{?suse_version}
661 Group: System
/Filesystems
664 Requires: python
%{python3_pkgversion}
666 FUSE based client
for Ceph distributed network file system
669 Summary: Ceph fuse
-based client
670 %if 0%{?suse_version}
671 Group: System
/Filesystems
673 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
674 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
675 %description -n rbd
-fuse
676 FUSE based client to map Ceph rbd images to files
678 %package -n rbd
-mirror
679 Summary: Ceph daemon
for mirroring RBD images
680 %if 0%{?suse_version}
681 Group: System
/Filesystems
683 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
684 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
685 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
686 %description -n rbd
-mirror
687 Daemon
for mirroring RBD images between Ceph clusters
, streaming
688 changes asynchronously.
690 %package immutable
-object
-cache
691 Summary: Ceph daemon
for immutable object cache
692 %if 0%{?suse_version}
693 Group: System
/Filesystems
695 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
696 %description immutable
-object
-cache
697 Daemon
for immutable object cache.
700 Summary: Ceph RBD client base on NBD
701 %if 0%{?suse_version}
702 Group: System
/Filesystems
704 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
705 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
706 %description -n rbd
-nbd
707 NBD based client to map Ceph rbd images to
local device
710 Summary: Rados REST gateway
711 %if 0%{?suse_version}
712 Group: System
/Filesystems
714 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
716 Requires: ceph
-selinux
= %{_epoch_prefix}%{version}-%{release}
718 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
719 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
720 %if 0%{?rhel} || 0%{?fedora}
724 RADOS is a distributed object store used by the Ceph distributed
725 storage system. This package provides a REST gateway to the
726 object store that aims to implement a superset of Amazon's S3
727 service as well as the OpenStack Object Storage
("Swift"
) API.
730 %package resource
-agents
731 Summary: OCF
-compliant resource agents
for Ceph daemons
732 %if 0%{?suse_version}
733 Group: System
/Filesystems
735 Requires: ceph
-base
= %{_epoch_prefix}%{version}
736 Requires: resource
-agents
737 %description resource
-agents
738 Resource agents
for monitoring and managing Ceph daemons
739 under Open Cluster Framework
(OCF
) compliant resource
740 managers such as Pacemaker.
744 Summary: Ceph Object Storage Daemon
745 %if 0%{?suse_version}
746 Group: System
/Filesystems
748 Provides: ceph
-test:/usr
/bin
/ceph
-osdomap
-tool
749 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
752 Requires: libstoragemgmt
753 Requires: python
%{python3_pkgversion}-ceph-common = %{_epoch_prefix}%{version}-%{release}
755 ceph
-osd is the object storage daemon
for the Ceph distributed file
756 system. It is responsible
for storing objects on a
local file system
757 and providing access to them over the network.
761 Summary: Ceph Object Storage Daemon
(crimson
)
762 %if 0%{?suse_version}
763 Group: System
/Filesystems
765 Requires: ceph
-osd
= %{_epoch_prefix}%{version}-%{release}
766 %description crimson
-osd
767 crimson
-osd is the object storage daemon
for the Ceph distributed file
768 system. It is responsible
for storing objects on a
local file system
769 and providing access to them over the network.
772 %package -n librados2
773 Summary: RADOS distributed object store client library
774 %if 0%{?suse_version}
775 Group: System
/Libraries
777 %if 0%{?rhel} || 0%{?fedora}
778 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
780 %description -n librados2
781 RADOS is a reliable
, autonomic distributed object storage cluster
782 developed as part of the Ceph distributed storage system. This is a
783 shared library allowing applications to access the distributed object
784 store using a simple file
-like interface.
786 %package -n librados
-devel
787 Summary: RADOS headers
788 %if 0%{?suse_version}
789 Group: Development
/Libraries
/C and C
++
791 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
792 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
793 Provides: librados2
-devel
= %{_epoch_prefix}%{version}-%{release}
794 Obsoletes
: librados2
-devel
< %{_epoch_prefix}%{version}-%{release}
795 %description -n librados
-devel
796 This package contains C libraries and headers needed to develop programs
797 that use RADOS object store.
799 %package -n libradospp
-devel
800 Summary: RADOS headers
801 %if 0%{?suse_version}
802 Group: Development
/Libraries
/C and C
++
804 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
805 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
806 %description -n libradospp
-devel
807 This package contains C
++ libraries and headers needed to develop programs
808 that use RADOS object store.
811 Summary: RADOS gateway client library
812 %if 0%{?suse_version}
813 Group: System
/Libraries
815 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
816 %description -n librgw2
817 This package provides a library implementation of the RADOS gateway
818 (distributed object store with S3 and Swift personalities
).
820 %package -n librgw
-devel
821 Summary: RADOS gateway client library
822 %if 0%{?suse_version}
823 Group: Development
/Libraries
/C and C
++
825 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
826 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
827 Provides: librgw2
-devel
= %{_epoch_prefix}%{version}-%{release}
828 Obsoletes
: librgw2
-devel
< %{_epoch_prefix}%{version}-%{release}
829 %description -n librgw
-devel
830 This package contains libraries and headers needed to develop programs
831 that use RADOS gateway client library.
833 %package -n python
%{python3_pkgversion}-rgw
834 Summary: Python
3 libraries
for the RADOS gateway
835 %if 0%{?suse_version}
836 Group: Development
/Libraries
/Python
838 Requires: librgw2
= %{_epoch_prefix}%{version}-%{release}
839 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
840 %{?python_provide:%python_provide python%{python3_pkgversion}-rgw}
841 Provides: python
-rgw
= %{_epoch_prefix}%{version}-%{release}
842 Obsoletes
: python
-rgw
< %{_epoch_prefix}%{version}-%{release}
843 %description -n python
%{python3_pkgversion}-rgw
844 This package contains Python
3 libraries
for interacting with Cephs RADOS
847 %package -n python
%{python3_pkgversion}-rados
848 Summary: Python
3 libraries
for the RADOS object store
849 %if 0%{?suse_version}
850 Group: Development
/Libraries
/Python
852 Requires: python
%{python3_pkgversion}
853 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
854 %{?python_provide:%python_provide python%{python3_pkgversion}-rados}
855 Provides: python
-rados
= %{_epoch_prefix}%{version}-%{release}
856 Obsoletes
: python
-rados
< %{_epoch_prefix}%{version}-%{release}
857 %description -n python
%{python3_pkgversion}-rados
858 This package contains Python
3 libraries
for interacting with Cephs RADOS
861 %if 0%{with libradosstriper}
862 %package -n libradosstriper1
863 Summary: RADOS striping interface
864 %if 0%{?suse_version}
865 Group: System
/Libraries
867 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
868 %description -n libradosstriper1
869 Striping interface built on top of the rados library
, allowing
870 to stripe bigger objects onto several standard rados objects using
871 an interface very similar to the rados one.
873 %package -n libradosstriper
-devel
874 Summary: RADOS striping interface headers
875 %if 0%{?suse_version}
876 Group: Development
/Libraries
/C and C
++
878 Requires: libradosstriper1
= %{_epoch_prefix}%{version}-%{release}
879 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
880 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
881 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
882 Provides: libradosstriper1
-devel
= %{_epoch_prefix}%{version}-%{release}
883 Obsoletes
: libradosstriper1
-devel
< %{_epoch_prefix}%{version}-%{release}
884 %description -n libradosstriper
-devel
885 This package contains libraries and headers needed to develop programs
886 that use RADOS striping interface.
890 Summary: RADOS block device client library
891 %if 0%{?suse_version}
892 Group: System
/Libraries
894 Requires: librados2
= %{_epoch_prefix}%{version}-%{release}
895 %if 0%{?suse_version}
896 Requires(post
): coreutils
898 %if 0%{?rhel} || 0%{?fedora}
899 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
901 %description -n librbd1
902 RBD is a block device striped across multiple distributed objects
in
903 RADOS
, a reliable
, autonomic distributed object storage cluster
904 developed as part of the Ceph distributed storage system. This is a
905 shared library allowing applications to manage these block devices.
907 %package -n librbd
-devel
908 Summary: RADOS block device headers
909 %if 0%{?suse_version}
910 Group: Development
/Libraries
/C and C
++
912 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
913 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
914 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
915 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
916 Provides: librbd1
-devel
= %{_epoch_prefix}%{version}-%{release}
917 Obsoletes
: librbd1
-devel
< %{_epoch_prefix}%{version}-%{release}
918 %description -n librbd
-devel
919 This package contains libraries and headers needed to develop programs
920 that use RADOS block device.
922 %package -n python
%{python3_pkgversion}-rbd
923 Summary: Python
3 libraries
for the RADOS block device
924 %if 0%{?suse_version}
925 Group: Development
/Libraries
/Python
927 Requires: librbd1
= %{_epoch_prefix}%{version}-%{release}
928 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
929 %{?python_provide:%python_provide python%{python3_pkgversion}-rbd}
930 Provides: python
-rbd
= %{_epoch_prefix}%{version}-%{release}
931 Obsoletes
: python
-rbd
< %{_epoch_prefix}%{version}-%{release}
932 %description -n python
%{python3_pkgversion}-rbd
933 This package contains Python
3 libraries
for interacting with Cephs RADOS
936 %package -n libcephfs2
937 Summary: Ceph distributed file system client library
938 %if 0%{?suse_version}
939 Group: System
/Libraries
941 Obsoletes
: libcephfs1
< %{_epoch_prefix}%{version}-%{release}
942 %if 0%{?rhel} || 0%{?fedora}
943 Obsoletes
: ceph
-libs
< %{_epoch_prefix}%{version}-%{release}
944 Obsoletes
: ceph
-libcephfs
946 %description -n libcephfs2
947 Ceph is a distributed network file system designed to provide excellent
948 performance
, reliability
, and scalability. This is a shared library
949 allowing applications to access a Ceph distributed file system via a
950 POSIX
-like interface.
952 %package -n libcephfs
-devel
953 Summary: Ceph distributed file system headers
954 %if 0%{?suse_version}
955 Group: Development
/Libraries
/C and C
++
957 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
958 Requires: librados
-devel
= %{_epoch_prefix}%{version}-%{release}
959 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
960 Provides: libcephfs2
-devel
= %{_epoch_prefix}%{version}-%{release}
961 Obsoletes
: libcephfs2
-devel
< %{_epoch_prefix}%{version}-%{release}
962 %description -n libcephfs
-devel
963 This package contains libraries and headers needed to develop programs
964 that use Cephs distributed file system.
966 %package -n python
%{python3_pkgversion}-cephfs
967 Summary: Python
3 libraries
for Ceph distributed file system
968 %if 0%{?suse_version}
969 Group: Development
/Libraries
/Python
971 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
972 Requires: python
%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
973 Requires: python
%{python3_pkgversion}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
974 %{?python_provide:%python_provide python%{python3_pkgversion}-cephfs}
975 Provides: python
-cephfs
= %{_epoch_prefix}%{version}-%{release}
976 Obsoletes
: python
-cephfs
< %{_epoch_prefix}%{version}-%{release}
977 %description -n python
%{python3_pkgversion}-cephfs
978 This package contains Python
3 libraries
for interacting with Cephs distributed
981 %package -n python
%{python3_pkgversion}-ceph
-argparse
982 Summary: Python
3 utility libraries
for Ceph CLI
983 %if 0%{?suse_version}
984 Group: Development
/Libraries
/Python
986 %{?python_provide:%python_provide python%{python3_pkgversion}-ceph-argparse}
987 %description -n python
%{python3_pkgversion}-ceph
-argparse
988 This package contains types and routines
for Python
3 used by the Ceph CLI as
989 well as the RESTful interface. These have to
do with querying the daemons
for
990 command-description information
, validating user
command input against those
991 descriptions
, and submitting the
command to the appropriate daemon.
993 %package -n python
%{python3_pkgversion}-ceph
-common
994 Summary: Python
3 utility libraries
for Ceph
995 %if 0%{?fedora} || 0%{?rhel} >= 8
996 Requires: python
%{python3_pkgversion}-pyyaml
998 %if 0%{?suse_version}
999 Requires: python
%{python3_pkgversion}-PyYAML
1001 %if 0%{?suse_version}
1002 Group: Development
/Libraries
/Python
1004 %{?python_provide:%python_provide python%{python3_pkgversion}-ceph-common}
1005 %description -n python
%{python3_pkgversion}-ceph
-common
1006 This package contains data structures
, classes and functions used by Ceph.
1007 It also contains utilities used
for the cephadm orchestrator.
1009 %if 0%{with cephfs_shell}
1010 %package -n cephfs
-shell
1011 Summary: Interactive shell
for Ceph file system
1012 Requires: python
%{python3_pkgversion}-cmd2
1013 Requires: python
%{python3_pkgversion}-colorama
1014 Requires: python
%{python3_pkgversion}-cephfs
1015 %description -n cephfs
-shell
1016 This package contains an interactive tool that allows accessing a Ceph
1017 file system without mounting it by providing a nice pseudo
-shell which
1018 works like an FTP client.
1021 %if 0%{with ceph_test_package}
1022 %package -n ceph
-test
1023 Summary: Ceph benchmarks and
test tools
1024 %if 0%{?suse_version}
1025 Group: System
/Benchmark
1027 Requires: ceph
-common
= %{_epoch_prefix}%{version}-%{release}
1028 Requires: xmlstarlet
1031 %description -n ceph
-test
1032 This package contains Ceph benchmarks and
test tools.
1035 %if 0%{with cephfs_java}
1037 %package -n libcephfs_jni1
1038 Summary: Java Native Interface library
for CephFS Java bindings
1039 %if 0%{?suse_version}
1040 Group: System
/Libraries
1043 Requires: libcephfs2
= %{_epoch_prefix}%{version}-%{release}
1044 %description -n libcephfs_jni1
1045 This package contains the Java Native Interface library
for CephFS Java
1048 %package -n libcephfs_jni
-devel
1049 Summary: Development files
for CephFS Java Native Interface library
1050 %if 0%{?suse_version}
1051 Group: Development
/Libraries
/Java
1054 Requires: libcephfs_jni1
= %{_epoch_prefix}%{version}-%{release}
1055 Obsoletes
: ceph
-devel
< %{_epoch_prefix}%{version}-%{release}
1056 Provides: libcephfs_jni1
-devel
= %{_epoch_prefix}%{version}-%{release}
1057 Obsoletes
: libcephfs_jni1
-devel
< %{_epoch_prefix}%{version}-%{release}
1058 %description -n libcephfs_jni
-devel
1059 This package contains the development files
for CephFS Java Native Interface
1062 %package -n cephfs
-java
1063 Summary: Java libraries
for the Ceph File System
1064 %if 0%{?suse_version}
1065 Group: System
/Libraries
1068 Requires: libcephfs_jni1
= %{_epoch_prefix}%{version}-%{release}
1070 BuildRequires
: junit
1071 %description -n cephfs
-java
1072 This package contains the Java libraries
for the Ceph File System.
1076 %package -n rados
-objclass
-devel
1077 Summary: RADOS object class development kit
1078 %if 0%{?suse_version}
1079 Group: Development
/Libraries
/C and C
++
1081 Requires: libradospp
-devel
= %{_epoch_prefix}%{version}-%{release}
1082 %description -n rados
-objclass
-devel
1083 This package contains libraries and headers needed to develop RADOS object
1086 %if 0%{with selinux}
1089 Summary: SELinux support
for Ceph MON
, OSD and MDS
1090 %if 0%{?suse_version}
1091 Group: System
/Filesystems
1093 Requires: ceph
-base
= %{_epoch_prefix}%{version}-%{release}
1094 Requires: policycoreutils
, libselinux
-utils
1095 Requires(post
): ceph
-base
= %{_epoch_prefix}%{version}-%{release}
1096 Requires(post
): selinux
-policy
-base
>= %{_selinux_policy_version}, policycoreutils
, gawk
1097 Requires(postun
): policycoreutils
1098 %description selinux
1099 This package contains SELinux support
for Ceph MON
, OSD and MDS. The package
1100 also performs file
-system relabelling which can take a long
time on heavily
1101 populated file
-systems.
1105 %package grafana
-dashboards
1106 Summary: The
set of Grafana dashboards
for monitoring purposes
1108 %if 0%{?suse_version}
1109 Group: System
/Filesystems
1111 %description grafana
-dashboards
1112 This package provides a
set of Grafana dashboards
for monitoring of
1113 Ceph clusters. The dashboards require a Prometheus server setup
1114 collecting data from Ceph Manager "prometheus" module and Prometheus
1115 project "node_exporter" module. The dashboards are designed to be
1116 integrated with the Ceph Manager Dashboard web UI.
1118 %package prometheus
-alerts
1119 Summary: Prometheus alerts
for a Ceph deplyoment
1121 Group: System
/Monitoring
1122 %description prometheus
-alerts
1123 This package provides Ceph’s default alerts
for Prometheus.
1125 #################################################################################
1127 #################################################################################
1129 %autosetup -p1
-n @TARBALL_BASENAME@
1132 # LTO can be enabled as soon as the following GCC bug is fixed:
1133 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
1134 %define _lto_cflags
%{nil}
1137 .
/opt
/rh
/devtoolset
-8/enable
1140 %if 0%{with cephfs_java}
1142 for i
in /usr
/{lib64
,lib
}/jvm
/java
/include
{,/linux
}; do
1143 [ -d $i
] && java_inc
="$java_inc
-I$i"
1147 %if 0%{?suse_version}
1148 # the following setting fixed an OOM condition we once encountered in the OBS
1149 RPM_OPT_FLAGS
="$RPM_OPT_FLAGS
--param ggc
-min
-expand
=20 --param ggc
-min
-heapsize
=32768"
1152 export CPPFLAGS
="$java_inc"
1153 export CFLAGS
="$RPM_OPT_FLAGS"
1154 export CXXFLAGS
="$RPM_OPT_FLAGS"
1155 export LDFLAGS
="$RPM_LD_FLAGS"
1157 # Parallel build settings ...
1158 CEPH_MFLAGS_JOBS
="
%{?_smp_mflags}"
1159 CEPH_SMP_NCPUS
=$
(echo "$CEPH_MFLAGS_JOBS" | sed 's
/-j
//'
)
1160 %if 0%{?__isa_bits} == 32
1161 # 32-bit builds can use 3G memory max, which is not enough even for -j2
1164 # do not eat all memory
1165 echo "Available memory
:"
1167 echo "System limits
:"
1169 if test -n "$CEPH_SMP_NCPUS"
-a "$CEPH_SMP_NCPUS"
-gt
1 ; then
1170 mem_per_process
=2500
1171 max_mem
=$
(LANG
=C free
-m | sed
-n "s|^Mem
: *\
([0-9]*\
).
*$|\
1|p"
)
1172 max_jobs
="$
(($max_mem
/ $mem_per_process
))"
1173 test "$CEPH_SMP_NCPUS"
-gt "$max_jobs"
&& CEPH_SMP_NCPUS
="$max_jobs"
&& echo "Warning
: Reducing build parallelism to
-j$max_jobs because of memory limits"
1174 test "$CEPH_SMP_NCPUS"
-le
0 && CEPH_SMP_NCPUS
="
1"
&& echo "Warning
: Not using parallel build at all because of memory limits"
1176 export CEPH_SMP_NCPUS
1177 export CEPH_MFLAGS_JOBS
="
-j$CEPH_SMP_NCPUS"
1189 -DCMAKE_INSTALL_PREFIX
=%{_prefix} \
1190 -DCMAKE_INSTALL_LIBDIR
=%{_libdir} \
1191 -DCMAKE_INSTALL_LIBEXECDIR
=%{_libexecdir} \
1192 -DCMAKE_INSTALL_LOCALSTATEDIR
=%{_localstatedir} \
1193 -DCMAKE_INSTALL_SYSCONFDIR
=%{_sysconfdir} \
1194 -DCMAKE_INSTALL_MANDIR
=%{_mandir} \
1195 -DCMAKE_INSTALL_DOCDIR
=%{_docdir}/ceph \
1196 -DCMAKE_INSTALL_INCLUDEDIR
=%{_includedir} \
1198 -DWITH_PYTHON3
=%{python3_version} \
1199 -DWITH_MGR_DASHBOARD_FRONTEND
=OFF \
1200 %if 0%{without ceph_test_package}
1203 %if 0%{with cephfs_java}
1204 -DWITH_CEPHFS_JAVA
=ON \
1206 %if 0%{with selinux}
1211 -DWITH_BABELTRACE
=ON \
1214 -DWITH_BABELTRACE
=OFF \
1216 $CEPH_EXTRA_CMAKE_ARGS \
1220 %ifarch aarch64 armv7hl mips mipsel ppc ppc64 ppc64le
%{ix86} x86_64
1221 -DWITH_BOOST_CONTEXT
=ON \
1223 -DWITH_BOOST_CONTEXT
=OFF \
1225 %if 0%{with cephfs_shell}
1226 -DWITH_CEPHFS_SHELL
=ON \
1228 %if 0%{with libradosstriper}
1229 -DWITH_LIBRADOSSTRIPER
=ON \
1231 -DWITH_LIBRADOSSTRIPER
=OFF \
1233 %if 0%{with amqp_endpoint}
1234 -DWITH_RADOSGW_AMQP_ENDPOINT
=ON \
1236 -DWITH_RADOSGW_AMQP_ENDPOINT
=OFF \
1238 %if 0%{with kafka_endpoint}
1239 -DWITH_RADOSGW_KAFKA_ENDPOINT
=ON \
1241 -DWITH_RADOSGW_KAFKA_ENDPOINT
=OFF \
1243 %if 0%{with cmake_verbose_logging}
1244 -DCMAKE_VERBOSE_MAKEFILE
=ON \
1246 -DBOOST_J
=$CEPH_SMP_NCPUS \
1249 %if %{with cmake_verbose_logging}
1250 cat .
/CMakeFiles
/CMakeOutput.log
1251 cat .
/CMakeFiles
/CMakeError.log
1254 make "$CEPH_MFLAGS_JOBS"
1257 %if 0%{with make_check}
1259 # run in-tree unittests
1261 ctest "$CEPH_MFLAGS_JOBS"
1267 make DESTDIR
=%{buildroot} install
1268 # we have dropped sysvinit bits
1269 rm -f
%{buildroot}/%{_sysconfdir}/init.d
/ceph
1271 install -m
0644 -D src
/etc
-rbdmap
%{buildroot}%{_sysconfdir}/ceph
/rbdmap
1272 %if 0%{?fedora} || 0%{?rhel}
1273 install -m
0644 -D etc
/sysconfig
/ceph
%{buildroot}%{_sysconfdir}/sysconfig
/ceph
1275 %if 0%{?suse_version}
1276 install -m
0644 -D etc
/sysconfig
/ceph
%{buildroot}%{_fillupdir}/sysconfig.%{name}
1278 install -m
0644 -D systemd
/ceph.tmpfiles.d
%{buildroot}%{_tmpfilesdir}/ceph
-common.conf
1279 install -m
0644 -D systemd
/50-ceph.preset
%{buildroot}%{_libexecdir}/systemd
/system
-preset
/50-ceph.preset
1280 mkdir -p
%{buildroot}%{_sbindir}
1281 install -m
0644 -D src
/logrotate.conf
%{buildroot}%{_sysconfdir}/logrotate.d
/ceph
1282 chmod
0644 %{buildroot}%{_docdir}/ceph
/sample.ceph.conf
1283 install -m
0644 -D COPYING
%{buildroot}%{_docdir}/ceph
/COPYING
1284 install -m
0644 -D etc
/sysctl
/90-ceph
-osd.conf
%{buildroot}%{_sysctldir}/90-ceph
-osd.conf
1286 install -m
0755 src
/cephadm
/cephadm
%{buildroot}%{_sbindir}/cephadm
1287 mkdir -p
%{buildroot}%{_sharedstatedir}/cephadm
1288 chmod
0700 %{buildroot}%{_sharedstatedir}/cephadm
1289 mkdir -p
%{buildroot}%{_sharedstatedir}/cephadm
/.ssh
1290 chmod
0700 %{buildroot}%{_sharedstatedir}/cephadm
/.ssh
1291 touch
%{buildroot}%{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1292 chmod
0600 %{buildroot}%{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1294 # firewall templates and /sbin/mount.ceph symlink
1295 %if 0%{?suse_version}
1296 mkdir -p
%{buildroot}/sbin
1297 ln
-sf
%{_sbindir}/mount.ceph %{buildroot}/sbin
/mount.ceph
1301 install -m
0644 -D udev
/50-rbd.rules
%{buildroot}%{_udevrulesdir}/50-rbd.rules
1304 install -m
0600 -D sudoers.d
/ceph
-osd
-smartctl
%{buildroot}%{_sysconfdir}/sudoers.d
/ceph
-osd
-smartctl
1305 install -m
0600 -D sudoers.d
/cephadm
%{buildroot}%{_sysconfdir}/sudoers.d
/cephadm
1308 pathfix.py
-pni "
%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
1309 pathfix.py
-pni "
%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
1312 #set up placeholder directories
1313 mkdir -p
%{buildroot}%{_sysconfdir}/ceph
1314 mkdir -p
%{buildroot}%{_localstatedir}/run
/ceph
1315 mkdir -p
%{buildroot}%{_localstatedir}/log
/ceph
1316 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/tmp
1317 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mon
1318 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/osd
1319 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mds
1320 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/mgr
1321 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/crash
1322 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/crash
/posted
1323 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/radosgw
1324 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-osd
1325 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-mds
1326 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rgw
1327 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-mgr
1328 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rbd
1329 mkdir -p
%{buildroot}%{_localstatedir}/lib
/ceph
/bootstrap
-rbd
-mirror
1332 install -m
644 -D monitoring
/prometheus
/alerts
/ceph_default_alerts.yml
%{buildroot}/etc
/prometheus
/ceph
/ceph_default_alerts.yml
1334 %if 0%{?suse_version}
1335 # create __pycache__ directories and their contents
1336 %py3_compile %{buildroot}%{python3_sitelib}
1337 # hardlink duplicate files under /usr to save space
1338 %fdupes %{buildroot}%{_prefix}
1342 %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
1348 #################################################################################
1349 # files and systemd scriptlets
1350 #################################################################################
1354 %{_bindir}/ceph
-crash
1355 %{_bindir}/crushtool
1356 %{_bindir}/monmaptool
1357 %{_bindir}/osdmaptool
1358 %{_bindir}/ceph
-kvstore
-tool
1360 %{_libexecdir}/systemd
/system
-preset
/50-ceph.preset
1361 %{_sbindir}/ceph
-create
-keys
1362 %dir %{_libexecdir}/ceph
1363 %{_libexecdir}/ceph
/ceph_common.sh
1364 %dir %{_libdir}/rados
-classes
1365 %{_libdir}/rados
-classes
/*
1366 %dir %{_libdir}/ceph
1367 %dir %{_libdir}/ceph
/erasure
-code
1368 %{_libdir}/ceph
/erasure
-code
/libec_
*.so
*
1369 %dir %{_libdir}/ceph
/compressor
1370 %{_libdir}/ceph
/compressor
/libceph_
*.so
*
1371 %{_unitdir}/ceph
-crash.service
1372 %dir %{_libdir}/ceph
/crypto
1373 %{_libdir}/ceph
/crypto
/libceph_
*.so
*
1375 %{_libdir}/libos_tp.so
*
1376 %{_libdir}/libosd_tp.so
*
1378 %config(noreplace
) %{_sysconfdir}/logrotate.d
/ceph
1379 %if 0%{?fedora} || 0%{?rhel}
1380 %config(noreplace
) %{_sysconfdir}/sysconfig
/ceph
1382 %if 0%{?suse_version}
1383 %{_fillupdir}/sysconfig.
*
1385 %{_unitdir}/ceph.target
1386 %dir %{python3_sitelib}/ceph_volume
1387 %{python3_sitelib}/ceph_volume
/*
1388 %{python3_sitelib}/ceph_volume
-*
1389 %{_mandir}/man8
/ceph
-deploy
.8*
1390 %{_mandir}/man8
/ceph
-create
-keys
.8*
1391 %{_mandir}/man8
/ceph
-run
.8*
1392 %{_mandir}/man8
/crushtool
.8*
1393 %{_mandir}/man8
/osdmaptool
.8*
1394 %{_mandir}/man8
/monmaptool
.8*
1395 %{_mandir}/man8
/ceph
-kvstore
-tool
.8*
1396 #set up placeholder directories
1397 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/crash
1398 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/crash
/posted
1399 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/tmp
1400 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-osd
1401 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-mds
1402 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rgw
1403 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-mgr
1404 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rbd
1405 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/bootstrap
-rbd
-mirror
1409 %if 0%{?suse_version}
1411 if [ $
1 -eq
1 ] ; then
1412 /usr
/bin
/systemctl preset ceph.target ceph
-crash.service
>/dev
/null
2>&1 ||
:
1415 %if 0%{?fedora} || 0%{?rhel}
1416 %systemd_post ceph.target ceph
-crash.service
1418 if [ $
1 -eq
1 ] ; then
1419 /usr
/bin
/systemctl start ceph.target ceph
-crash.service
>/dev
/null
2>&1 ||
:
1423 %if 0%{?suse_version}
1424 %service_del_preun ceph.target ceph
-crash.service
1426 %if 0%{?fedora} || 0%{?rhel}
1427 %systemd_preun ceph.target ceph
-crash.service
1432 %if 0%{?suse_version}
1433 DISABLE_RESTART_ON_UPDATE
="yes"
1434 %service_del_postun ceph.target
1436 %if 0%{?fedora} || 0%{?rhel}
1437 %systemd_postun ceph.target
1439 if [ $
1 -ge
1 ] ; then
1440 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1441 # "yes". In any case: if units are not running, do not touch them.
1442 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1443 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1444 source $SYSCONF_CEPH
1449 getent group cephadm
>/dev
/null || groupadd
-r cephadm
1450 getent passwd cephadm
>/dev
/null || useradd
-r
-g cephadm
-s
/bin
/bash
-c "cephadm user
for mgr
/cephadm"
-d
%{_sharedstatedir}/cephadm cephadm
1453 %if ! 0%{?suse_version}
1455 userdel
-r cephadm || true
1461 %{_mandir}/man8
/cephadm
.8*
1462 %{_sysconfdir}/sudoers.d
/cephadm
1463 %attr(0700,cephadm
,cephadm
) %dir %{_sharedstatedir}/cephadm
1464 %attr(0700,cephadm
,cephadm
) %dir %{_sharedstatedir}/cephadm
/.ssh
1465 %attr(0600,cephadm
,cephadm
) %{_sharedstatedir}/cephadm
/.ssh
/authorized_keys
1468 %dir %{_docdir}/ceph
1469 %doc %{_docdir}/ceph
/sample.ceph.conf
1470 %license %{_docdir}/ceph
/COPYING
1472 %{_bindir}/ceph
-authtool
1473 %{_bindir}/ceph
-conf
1474 %{_bindir}/ceph
-dencoder
1475 %{_bindir}/ceph
-rbdnamer
1477 %{_bindir}/cephfs
-data
-scan
1478 %{_bindir}/cephfs
-journal
-tool
1479 %{_bindir}/cephfs
-table
-tool
1481 %{_bindir}/radosgw
-admin
1483 %{_bindir}/rbd
-replay
1484 %{_bindir}/rbd
-replay
-many
1486 %{_sbindir}/mount.ceph
1487 %if 0%{?suse_version}
1491 %{_bindir}/rbd
-replay
-prep
1493 %{_bindir}/ceph
-post
-file
1494 %{_tmpfilesdir}/ceph
-common.conf
1495 %{_mandir}/man8
/ceph
-authtool
.8*
1496 %{_mandir}/man8
/ceph
-conf
.8*
1497 %{_mandir}/man8
/ceph
-dencoder
.8*
1498 %{_mandir}/man8
/ceph
-diff
-sorted
.8*
1499 %{_mandir}/man8
/ceph
-rbdnamer
.8*
1500 %{_mandir}/man8
/ceph
-syn
.8*
1501 %{_mandir}/man8
/ceph
-post
-file
.8*
1502 %{_mandir}/man8
/ceph
.8*
1503 %{_mandir}/man8
/mount.ceph
.8*
1504 %{_mandir}/man8
/rados
.8*
1505 %{_mandir}/man8
/radosgw
-admin
.8*
1506 %{_mandir}/man8
/rbd
.8*
1507 %{_mandir}/man8
/rbdmap
.8*
1508 %{_mandir}/man8
/rbd
-replay
.8*
1509 %{_mandir}/man8
/rbd
-replay
-many
.8*
1510 %{_mandir}/man8
/rbd
-replay
-prep
.8*
1511 %{_mandir}/man8
/rgw
-orphan
-list
.8*
1512 %dir %{_datadir}/ceph
/
1513 %{_datadir}/ceph
/known_hosts_drop.ceph.com
1514 %{_datadir}/ceph
/id_rsa_drop.ceph.com
1515 %{_datadir}/ceph
/id_rsa_drop.ceph.com.pub
1516 %dir %{_sysconfdir}/ceph
/
1517 %config %{_sysconfdir}/bash_completion.d
/ceph
1518 %config %{_sysconfdir}/bash_completion.d
/rados
1519 %config %{_sysconfdir}/bash_completion.d
/rbd
1520 %config %{_sysconfdir}/bash_completion.d
/radosgw
-admin
1521 %config(noreplace
) %{_sysconfdir}/ceph
/rbdmap
1522 %{_unitdir}/rbdmap.service
1523 %dir %{_udevrulesdir}
1524 %{_udevrulesdir}/50-rbd.rules
1525 %attr(3770,ceph
,ceph
) %dir %{_localstatedir}/log
/ceph
/
1526 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/
1531 %if 0%{?rhel} || 0%{?fedora}
1532 /usr
/sbin
/groupadd ceph
-g $CEPH_GROUP_ID
-o
-r
2>/dev
/null ||
:
1533 /usr
/sbin
/useradd ceph
-u $CEPH_USER_ID
-o
-r
-g ceph
-s
/sbin
/nologin
-c "Ceph daemons"
-d
%{_localstatedir}/lib
/ceph
2>/dev
/null ||
:
1535 %if 0%{?suse_version}
1536 if ! getent group ceph
>/dev
/null
; then
1537 CEPH_GROUP_ID_OPTION
=""
1538 getent group $CEPH_GROUP_ID
>/dev
/null || CEPH_GROUP_ID_OPTION
="
-g $CEPH_GROUP_ID"
1539 groupadd ceph $CEPH_GROUP_ID_OPTION
-r
2>/dev
/null ||
:
1541 if ! getent passwd ceph
>/dev
/null
; then
1542 CEPH_USER_ID_OPTION
=""
1543 getent passwd $CEPH_USER_ID
>/dev
/null || CEPH_USER_ID_OPTION
="
-u $CEPH_USER_ID"
1544 useradd ceph $CEPH_USER_ID_OPTION
-r
-g ceph
-s
/sbin
/nologin
2>/dev
/null ||
:
1546 usermod
-c "Ceph storage service" \
1547 -d
%{_localstatedir}/lib
/ceph \
1555 %tmpfiles_create %{_tmpfilesdir}/ceph
-common.conf
1558 # Package removal cleanup
1559 if [ "$
1"
-eq "
0"
] ; then
1560 rm -rf
%{_localstatedir}/log
/ceph
1561 rm -rf
%{_sysconfdir}/ceph
1566 %{_mandir}/man8
/ceph
-mds
.8*
1567 %{_unitdir}/ceph
-mds@.service
1568 %{_unitdir}/ceph
-mds.target
1569 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mds
1572 %if 0%{?suse_version}
1573 if [ $
1 -eq
1 ] ; then
1574 /usr
/bin
/systemctl preset ceph
-mds@\
*.service ceph
-mds.target
>/dev
/null
2>&1 ||
:
1577 %if 0%{?fedora} || 0%{?rhel}
1578 %systemd_post ceph
-mds@\
*.service ceph
-mds.target
1580 if [ $
1 -eq
1 ] ; then
1581 /usr
/bin
/systemctl start ceph
-mds.target
>/dev
/null
2>&1 ||
:
1585 %if 0%{?suse_version}
1586 %service_del_preun ceph
-mds@\
*.service ceph
-mds.target
1588 %if 0%{?fedora} || 0%{?rhel}
1589 %systemd_preun ceph
-mds@\
*.service ceph
-mds.target
1593 %if 0%{?suse_version}
1594 DISABLE_RESTART_ON_UPDATE
="yes"
1595 %service_del_postun ceph
-mds@\
*.service ceph
-mds.target
1597 %if 0%{?fedora} || 0%{?rhel}
1598 %systemd_postun ceph
-mds@\
*.service ceph
-mds.target
1600 if [ $
1 -ge
1 ] ; then
1601 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1602 # "yes". In any case: if units are not running, do not touch them.
1603 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1604 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1605 source $SYSCONF_CEPH
1607 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1608 /usr
/bin
/systemctl try
-restart ceph
-mds@\
*.service
> /dev
/null
2>&1 ||
:
1614 %dir %{_datadir}/ceph
/mgr
1615 %{_datadir}/ceph
/mgr
/mgr_module.
*
1616 %{_datadir}/ceph
/mgr
/mgr_util.
*
1618 %{_datadir}/ceph
/mgr
/__pycache__
1620 %{_unitdir}/ceph
-mgr@.service
1621 %{_unitdir}/ceph
-mgr.target
1622 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mgr
1625 %if 0%{?suse_version}
1626 if [ $
1 -eq
1 ] ; then
1627 /usr
/bin
/systemctl preset ceph
-mgr@\
*.service ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1630 %if 0%{?fedora} || 0%{?rhel}
1631 %systemd_post ceph
-mgr@\
*.service ceph
-mgr.target
1633 if [ $
1 -eq
1 ] ; then
1634 /usr
/bin
/systemctl start ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1638 %if 0%{?suse_version}
1639 %service_del_preun ceph
-mgr@\
*.service ceph
-mgr.target
1641 %if 0%{?fedora} || 0%{?rhel}
1642 %systemd_preun ceph
-mgr@\
*.service ceph
-mgr.target
1646 %if 0%{?suse_version}
1647 DISABLE_RESTART_ON_UPDATE
="yes"
1648 %service_del_postun ceph
-mgr@\
*.service ceph
-mgr.target
1650 %if 0%{?fedora} || 0%{?rhel}
1651 %systemd_postun ceph
-mgr@\
*.service ceph
-mgr.target
1653 if [ $
1 -ge
1 ] ; then
1654 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1655 # "yes". In any case: if units are not running, do not touch them.
1656 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1657 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1658 source $SYSCONF_CEPH
1660 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1661 /usr
/bin
/systemctl try
-restart ceph
-mgr@\
*.service
> /dev
/null
2>&1 ||
:
1665 %files mgr
-dashboard
1666 %{_datadir}/ceph
/mgr
/dashboard
1669 if [ $
1 -eq
1 ] ; then
1670 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1673 %postun mgr
-dashboard
1674 if [ $
1 -eq
1 ] ; then
1675 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1678 %files mgr
-diskprediction
-local
1679 %{_datadir}/ceph
/mgr
/diskprediction_local
1681 %post mgr
-diskprediction
-local
1682 if [ $
1 -eq
1 ] ; then
1683 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1686 %postun mgr
-diskprediction
-local
1687 if [ $
1 -eq
1 ] ; then
1688 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1691 %files mgr
-diskprediction
-cloud
1692 %{_datadir}/ceph
/mgr
/diskprediction_cloud
1694 %post mgr
-diskprediction
-cloud
1695 if [ $
1 -eq
1 ] ; then
1696 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1699 %postun mgr
-diskprediction
-cloud
1700 if [ $
1 -eq
1 ] ; then
1701 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1704 %files mgr
-modules
-core
1705 %dir %{_datadir}/ceph
/mgr
1706 %{_datadir}/ceph
/mgr
/alerts
1707 %{_datadir}/ceph
/mgr
/balancer
1708 %{_datadir}/ceph
/mgr
/crash
1709 %{_datadir}/ceph
/mgr
/devicehealth
1710 %{_datadir}/ceph
/mgr
/influx
1711 %{_datadir}/ceph
/mgr
/insights
1712 %{_datadir}/ceph
/mgr
/iostat
1713 %{_datadir}/ceph
/mgr
/localpool
1714 %{_datadir}/ceph
/mgr
/orchestrator
1715 %{_datadir}/ceph
/mgr
/osd_perf_query
1716 %{_datadir}/ceph
/mgr
/osd_support
1717 %{_datadir}/ceph
/mgr
/pg_autoscaler
1718 %{_datadir}/ceph
/mgr
/progress
1719 %{_datadir}/ceph
/mgr
/prometheus
1720 %{_datadir}/ceph
/mgr
/rbd_support
1721 %{_datadir}/ceph
/mgr
/restful
1722 %{_datadir}/ceph
/mgr
/selftest
1723 %{_datadir}/ceph
/mgr
/status
1724 %{_datadir}/ceph
/mgr
/telegraf
1725 %{_datadir}/ceph
/mgr
/telemetry
1726 %{_datadir}/ceph
/mgr
/test_orchestrator
1727 %{_datadir}/ceph
/mgr
/volumes
1728 %{_datadir}/ceph
/mgr
/zabbix
1731 %{_datadir}/ceph
/mgr
/rook
1734 if [ $
1 -eq
1 ] ; then
1735 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1739 if [ $
1 -eq
1 ] ; then
1740 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1743 %files mgr
-k8sevents
1744 %{_datadir}/ceph
/mgr
/k8sevents
1747 if [ $
1 -eq
1 ] ; then
1748 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1751 %postun mgr
-k8sevents
1752 if [ $
1 -eq
1 ] ; then
1753 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1757 %{_datadir}/ceph
/mgr
/cephadm
1760 if [ $
1 -eq
1 ] ; then
1761 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1765 if [ $
1 -eq
1 ] ; then
1766 /usr
/bin
/systemctl try
-restart ceph
-mgr.target
>/dev
/null
2>&1 ||
:
1771 %{_bindir}/ceph
-monstore
-tool
1772 %{_mandir}/man8
/ceph
-mon
.8*
1773 %{_unitdir}/ceph
-mon@.service
1774 %{_unitdir}/ceph
-mon.target
1775 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/mon
1778 %if 0%{?suse_version}
1779 if [ $
1 -eq
1 ] ; then
1780 /usr
/bin
/systemctl preset ceph
-mon@\
*.service ceph
-mon.target
>/dev
/null
2>&1 ||
:
1783 %if 0%{?fedora} || 0%{?rhel}
1784 %systemd_post ceph
-mon@\
*.service ceph
-mon.target
1786 if [ $
1 -eq
1 ] ; then
1787 /usr
/bin
/systemctl start ceph
-mon.target
>/dev
/null
2>&1 ||
:
1791 %if 0%{?suse_version}
1792 %service_del_preun ceph
-mon@\
*.service ceph
-mon.target
1794 %if 0%{?fedora} || 0%{?rhel}
1795 %systemd_preun ceph
-mon@\
*.service ceph
-mon.target
1799 %if 0%{?suse_version}
1800 DISABLE_RESTART_ON_UPDATE
="yes"
1801 %service_del_postun ceph
-mon@\
*.service ceph
-mon.target
1803 %if 0%{?fedora} || 0%{?rhel}
1804 %systemd_postun ceph
-mon@\
*.service ceph
-mon.target
1806 if [ $
1 -ge
1 ] ; then
1807 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1808 # "yes". In any case: if units are not running, do not touch them.
1809 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1810 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1811 source $SYSCONF_CEPH
1813 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1814 /usr
/bin
/systemctl try
-restart ceph
-mon@\
*.service
> /dev
/null
2>&1 ||
:
1819 %{_bindir}/ceph
-fuse
1820 %{_mandir}/man8
/ceph
-fuse
.8*
1821 %{_sbindir}/mount.fuse.ceph
1822 %{_unitdir}/ceph
-fuse@.service
1823 %{_unitdir}/ceph
-fuse.target
1827 %{_mandir}/man8
/rbd
-fuse
.8*
1829 %files -n rbd
-mirror
1830 %{_bindir}/rbd
-mirror
1831 %{_mandir}/man8
/rbd
-mirror
.8*
1832 %{_unitdir}/ceph
-rbd
-mirror@.service
1833 %{_unitdir}/ceph
-rbd
-mirror.target
1836 %if 0%{?suse_version}
1837 if [ $
1 -eq
1 ] ; then
1838 /usr
/bin
/systemctl preset ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
>/dev
/null
2>&1 ||
:
1841 %if 0%{?fedora} || 0%{?rhel}
1842 %systemd_post ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1844 if [ $
1 -eq
1 ] ; then
1845 /usr
/bin
/systemctl start ceph
-rbd
-mirror.target
>/dev
/null
2>&1 ||
:
1848 %preun -n rbd
-mirror
1849 %if 0%{?suse_version}
1850 %service_del_preun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1852 %if 0%{?fedora} || 0%{?rhel}
1853 %systemd_preun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1856 %postun -n rbd
-mirror
1857 %if 0%{?suse_version}
1858 DISABLE_RESTART_ON_UPDATE
="yes"
1859 %service_del_postun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1861 %if 0%{?fedora} || 0%{?rhel}
1862 %systemd_postun ceph
-rbd
-mirror@\
*.service ceph
-rbd
-mirror.target
1864 if [ $
1 -ge
1 ] ; then
1865 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1866 # "yes". In any case: if units are not running, do not touch them.
1867 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1868 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1869 source $SYSCONF_CEPH
1871 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1872 /usr
/bin
/systemctl try
-restart ceph
-rbd
-mirror@\
*.service
> /dev
/null
2>&1 ||
:
1876 %files immutable
-object
-cache
1877 %{_bindir}/ceph
-immutable
-object
-cache
1878 %{_mandir}/man8
/ceph
-immutable
-object
-cache
.8*
1879 %{_unitdir}/ceph
-immutable
-object
-cache@.service
1880 %{_unitdir}/ceph
-immutable
-object
-cache.target
1882 %post immutable
-object
-cache
1883 %if 0%{?suse_version}
1884 if [ $
1 -eq
1 ] ; then
1885 /usr
/bin
/systemctl preset ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
>/dev
/null
2>&1 ||
:
1888 %if 0%{?fedora} || 0%{?rhel}
1889 %systemd_post ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1891 if [ $
1 -eq
1 ] ; then
1892 /usr
/bin
/systemctl start ceph
-immutable
-object
-cache.target
>/dev
/null
2>&1 ||
:
1895 %preun immutable
-object
-cache
1896 %if 0%{?suse_version}
1897 %service_del_preun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1899 %if 0%{?fedora} || 0%{?rhel}
1900 %systemd_preun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1903 %postun immutable
-object
-cache
1904 test -n "$FIRST_ARG" || FIRST_ARG
=$
1
1905 %if 0%{?suse_version}
1906 DISABLE_RESTART_ON_UPDATE
="yes"
1907 %service_del_postun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1909 %if 0%{?fedora} || 0%{?rhel}
1910 %systemd_postun ceph
-immutable
-object
-cache@\
*.service ceph
-immutable
-object
-cache.target
1912 if [ $FIRST_ARG
-ge
1 ] ; then
1913 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1914 # "yes". In any case: if units are not running, do not touch them.
1915 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1916 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1917 source $SYSCONF_CEPH
1919 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1920 /usr
/bin
/systemctl try
-restart ceph
-immutable
-object
-cache@\
*.service
> /dev
/null
2>&1 ||
:
1926 %{_mandir}/man8
/rbd
-nbd
.8*
1929 %{_bindir}/ceph
-diff
-sorted
1931 %{_bindir}/radosgw
-token
1932 %{_bindir}/radosgw
-es
1933 %{_bindir}/radosgw
-object
-expirer
1934 %{_bindir}/rgw
-orphan
-list
1935 %{_libdir}/libradosgw.so
*
1936 %{_mandir}/man8
/radosgw
.8*
1937 %dir %{_localstatedir}/lib
/ceph
/radosgw
1938 %{_unitdir}/ceph
-radosgw@.service
1939 %{_unitdir}/ceph
-radosgw.target
1943 %if 0%{?suse_version}
1944 if [ $
1 -eq
1 ] ; then
1945 /usr
/bin
/systemctl preset ceph
-radosgw@\
*.service ceph
-radosgw.target
>/dev
/null
2>&1 ||
:
1948 %if 0%{?fedora} || 0%{?rhel}
1949 %systemd_post ceph
-radosgw@\
*.service ceph
-radosgw.target
1951 if [ $
1 -eq
1 ] ; then
1952 /usr
/bin
/systemctl start ceph
-radosgw.target
>/dev
/null
2>&1 ||
:
1956 %if 0%{?suse_version}
1957 %service_del_preun ceph
-radosgw@\
*.service ceph
-radosgw.target
1959 %if 0%{?fedora} || 0%{?rhel}
1960 %systemd_preun ceph
-radosgw@\
*.service ceph
-radosgw.target
1965 %if 0%{?suse_version}
1966 DISABLE_RESTART_ON_UPDATE
="yes"
1967 %service_del_postun ceph
-radosgw@\
*.service ceph
-radosgw.target
1969 %if 0%{?fedora} || 0%{?rhel}
1970 %systemd_postun ceph
-radosgw@\
*.service ceph
-radosgw.target
1972 if [ $
1 -ge
1 ] ; then
1973 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
1974 # "yes". In any case: if units are not running, do not touch them.
1975 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
1976 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
1977 source $SYSCONF_CEPH
1979 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
1980 /usr
/bin
/systemctl try
-restart ceph
-radosgw@\
*.service
> /dev
/null
2>&1 ||
:
1985 %{_bindir}/ceph
-clsinfo
1986 %{_bindir}/ceph
-bluestore
-tool
1987 %{_bindir}/ceph
-objectstore
-tool
1988 %{_bindir}/ceph
-osdomap
-tool
1990 %{_libexecdir}/ceph
/ceph
-osd
-prestart.sh
1991 %{_sbindir}/ceph
-volume
1992 %{_sbindir}/ceph
-volume
-systemd
1993 %{_mandir}/man8
/ceph
-clsinfo
.8*
1994 %{_mandir}/man8
/ceph
-osd
.8*
1995 %{_mandir}/man8
/ceph
-bluestore
-tool
.8*
1996 %{_mandir}/man8
/ceph
-volume
.8*
1997 %{_mandir}/man8
/ceph
-volume
-systemd
.8*
1998 %{_unitdir}/ceph
-osd@.service
1999 %{_unitdir}/ceph
-osd.target
2000 %{_unitdir}/ceph
-volume@.service
2001 %attr(750,ceph
,ceph
) %dir %{_localstatedir}/lib
/ceph
/osd
2002 %config(noreplace
) %{_sysctldir}/90-ceph
-osd.conf
2003 %{_sysconfdir}/sudoers.d
/ceph
-osd
-smartctl
2006 %if 0%{?suse_version}
2007 if [ $
1 -eq
1 ] ; then
2008 /usr
/bin
/systemctl preset ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
>/dev
/null
2>&1 ||
:
2011 %if 0%{?fedora} || 0%{?rhel}
2012 %systemd_post ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2014 if [ $
1 -eq
1 ] ; then
2015 /usr
/bin
/systemctl start ceph
-osd.target
>/dev
/null
2>&1 ||
:
2017 %if 0%{?sysctl_apply}
2018 %sysctl_apply 90-ceph
-osd.conf
2020 /usr
/lib
/systemd
/systemd
-sysctl
%{_sysctldir}/90-ceph
-osd.conf
> /dev
/null
2>&1 ||
:
2024 %if 0%{?suse_version}
2025 %service_del_preun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2027 %if 0%{?fedora} || 0%{?rhel}
2028 %systemd_preun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2032 %if 0%{?suse_version}
2033 DISABLE_RESTART_ON_UPDATE
="yes"
2034 %service_del_postun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2036 %if 0%{?fedora} || 0%{?rhel}
2037 %systemd_postun ceph
-osd@\
*.service ceph
-volume@\
*.service ceph
-osd.target
2039 if [ $
1 -ge
1 ] ; then
2040 # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
2041 # "yes". In any case: if units are not running, do not touch them.
2042 SYSCONF_CEPH
=%{_sysconfdir}/sysconfig
/ceph
2043 if [ -f $SYSCONF_CEPH
-a
-r $SYSCONF_CEPH
] ; then
2044 source $SYSCONF_CEPH
2046 if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE"
= "Xyes"
] ; then
2047 /usr
/bin
/systemctl try
-restart ceph
-osd@\
*.service ceph
-volume@\
*.service
> /dev
/null
2>&1 ||
:
2051 %if 0%{with seastar}
2053 %{_bindir}/crimson
-osd
2058 %files resource
-agents
2059 %dir %{_prefix}/lib
/ocf
2060 %dir %{_prefix}/lib
/ocf
/resource.d
2061 %dir %{_prefix}/lib
/ocf
/resource.d
/ceph
2062 %attr(0755,-,-) %{_prefix}/lib
/ocf
/resource.d
/ceph
/rbd
2067 %{_libdir}/librados.so.
*
2068 %dir %{_libdir}/ceph
2069 %{_libdir}/ceph
/libceph
-common.so.
*
2071 %{_libdir}/librados_tp.so.
*
2073 %dir %{_sysconfdir}/ceph
2075 %post -n librados2
-p
/sbin
/ldconfig
2077 %postun -n librados2
-p
/sbin
/ldconfig
2079 %files -n librados
-devel
2080 %dir %{_includedir}/rados
2081 %{_includedir}/rados
/librados.h
2082 %{_includedir}/rados
/rados_types.h
2083 %{_libdir}/librados.so
2085 %{_libdir}/librados_tp.so
2087 %{_bindir}/librados
-config
2088 %{_mandir}/man8
/librados
-config
.8*
2090 %files -n libradospp
-devel
2091 %dir %{_includedir}/rados
2092 %{_includedir}/rados
/buffer.h
2093 %{_includedir}/rados
/buffer_fwd.h
2094 %{_includedir}/rados
/crc32c.h
2095 %{_includedir}/rados
/inline_memory.h
2096 %{_includedir}/rados
/librados.hpp
2097 %{_includedir}/rados
/librados_fwd.hpp
2098 %{_includedir}/rados
/page.h
2099 %{_includedir}/rados
/rados_types.hpp
2101 %files -n python
%{python3_pkgversion}-rados
2102 %{python3_sitearch}/rados.cpython
*.so
2103 %{python3_sitearch}/rados
-*.egg
-info
2105 %if 0%{with libradosstriper}
2106 %files -n libradosstriper1
2107 %{_libdir}/libradosstriper.so.
*
2109 %post -n libradosstriper1
-p
/sbin
/ldconfig
2111 %postun -n libradosstriper1
-p
/sbin
/ldconfig
2113 %files -n libradosstriper
-devel
2114 %dir %{_includedir}/radosstriper
2115 %{_includedir}/radosstriper
/libradosstriper.h
2116 %{_includedir}/radosstriper
/libradosstriper.hpp
2117 %{_libdir}/libradosstriper.so
2121 %{_libdir}/librbd.so.
*
2123 %{_libdir}/librbd_tp.so.
*
2126 %post -n librbd1
-p
/sbin
/ldconfig
2128 %postun -n librbd1
-p
/sbin
/ldconfig
2130 %files -n librbd
-devel
2131 %dir %{_includedir}/rbd
2132 %{_includedir}/rbd
/librbd.h
2133 %{_includedir}/rbd
/librbd.hpp
2134 %{_includedir}/rbd
/features.h
2135 %{_libdir}/librbd.so
2137 %{_libdir}/librbd_tp.so
2141 %{_libdir}/librgw.so.
*
2142 %{_libdir}/librgw_admin_user.so.
*
2144 %{_libdir}/librgw_op_tp.so.
*
2145 %{_libdir}/librgw_rados_tp.so.
*
2148 %post -n librgw2
-p
/sbin
/ldconfig
2150 %postun -n librgw2
-p
/sbin
/ldconfig
2152 %files -n librgw
-devel
2153 %dir %{_includedir}/rados
2154 %{_includedir}/rados
/librgw.h
2155 %{_includedir}/rados
/librgw_admin_user.h
2156 %{_includedir}/rados
/rgw_file.h
2157 %{_libdir}/librgw.so
2158 %{_libdir}/librgw_admin_user.so
2160 %{_libdir}/librgw_op_tp.so
2161 %{_libdir}/librgw_rados_tp.so
2164 %files -n python
%{python3_pkgversion}-rgw
2165 %{python3_sitearch}/rgw.cpython
*.so
2166 %{python3_sitearch}/rgw
-*.egg
-info
2168 %files -n python
%{python3_pkgversion}-rbd
2169 %{python3_sitearch}/rbd.cpython
*.so
2170 %{python3_sitearch}/rbd
-*.egg
-info
2172 %files -n libcephfs2
2173 %{_libdir}/libcephfs.so.
*
2174 %dir %{_sysconfdir}/ceph
2176 %post -n libcephfs2
-p
/sbin
/ldconfig
2178 %postun -n libcephfs2
-p
/sbin
/ldconfig
2180 %files -n libcephfs
-devel
2181 %dir %{_includedir}/cephfs
2182 %{_includedir}/cephfs
/libcephfs.h
2183 %{_includedir}/cephfs
/ceph_ll_client.h
2184 %{_libdir}/libcephfs.so
2186 %files -n python
%{python3_pkgversion}-cephfs
2187 %{python3_sitearch}/cephfs.cpython
*.so
2188 %{python3_sitearch}/cephfs
-*.egg
-info
2189 %{python3_sitelib}/ceph_volume_client.py
2190 %{python3_sitelib}/__pycache__
/ceph_volume_client.cpython
*.py
*
2192 %files -n python
%{python3_pkgversion}-ceph
-argparse
2193 %{python3_sitelib}/ceph_argparse.py
2194 %{python3_sitelib}/__pycache__
/ceph_argparse.cpython
*.py
*
2195 %{python3_sitelib}/ceph_daemon.py
2196 %{python3_sitelib}/__pycache__
/ceph_daemon.cpython
*.py
*
2198 %files -n python
%{python3_pkgversion}-ceph
-common
2199 %{python3_sitelib}/ceph
2200 %{python3_sitelib}/ceph
-*.egg
-info
2202 %if 0%{with cephfs_shell}
2203 %files -n cephfs
-shell
2204 %{python3_sitelib}/cephfs_shell
-*.egg
-info
2205 %{_bindir}/cephfs
-shell
2208 %if 0%{with ceph_test_package}
2210 %{_bindir}/ceph
-client
-debug
2211 %{_bindir}/ceph_bench_log
2212 %{_bindir}/ceph_kvstorebench
2213 %{_bindir}/ceph_multi_stress_watch
2214 %{_bindir}/ceph_erasure_code
2215 %{_bindir}/ceph_erasure_code_benchmark
2216 %{_bindir}/ceph_omapbench
2217 %{_bindir}/ceph_objectstore_bench
2218 %{_bindir}/ceph_perf_objectstore
2219 %{_bindir}/ceph_perf_local
2220 %{_bindir}/ceph_perf_msgr_client
2221 %{_bindir}/ceph_perf_msgr_server
2222 %{_bindir}/ceph_psim
2223 %{_bindir}/ceph_radosacl
2224 %{_bindir}/ceph_rgw_jsonparser
2225 %{_bindir}/ceph_rgw_multiparser
2226 %{_bindir}/ceph_scratchtool
2227 %{_bindir}/ceph_scratchtoolpp
2228 %{_bindir}/ceph_test_
*
2229 %{_bindir}/ceph
-coverage
2230 %{_bindir}/ceph
-debugpack
2231 %{_bindir}/ceph
-dedup
-tool
2232 %{_mandir}/man8
/ceph
-debugpack
.8*
2233 %dir %{_libdir}/ceph
2234 %{_libdir}/ceph
/ceph
-monstore
-update
-crush.sh
2237 %if 0%{with cephfs_java}
2238 %files -n libcephfs_jni1
2239 %{_libdir}/libcephfs_jni.so.
*
2241 %post -n libcephfs_jni1
-p
/sbin
/ldconfig
2243 %postun -n libcephfs_jni1
-p
/sbin
/ldconfig
2245 %files -n libcephfs_jni
-devel
2246 %{_libdir}/libcephfs_jni.so
2248 %files -n cephfs
-java
2249 %{_javadir}/libcephfs.jar
2250 %{_javadir}/libcephfs
-test.jar
2253 %files -n rados
-objclass
-devel
2254 %dir %{_includedir}/rados
2255 %{_includedir}/rados
/objclass.h
2257 %if 0%{with selinux}
2259 %attr(0600,root
,root
) %{_datadir}/selinux
/packages
/ceph.pp
2260 %{_datadir}/selinux
/devel
/include
/contrib
/ceph.
if
2261 %{_mandir}/man8
/ceph_selinux
.8*
2264 # backup file_contexts before update
2265 .
/etc
/selinux
/config
2266 FILE_CONTEXT
=/etc
/selinux
/$
{SELINUXTYPE
}/contexts
/files
/file_contexts
2267 cp $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
2269 # Install the policy
2270 /usr
/sbin
/semodule
-i
%{_datadir}/selinux
/packages
/ceph.pp
2272 # Load the policy if SELinux is enabled
2273 if ! /usr
/sbin
/selinuxenabled
; then
2274 # Do not relabel if selinux is not enabled
2278 if diff $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
> /dev
/null
2>&1; then
2279 # Do not relabel if file contexts did not change
2283 # Check whether the daemons are running
2284 /usr
/bin
/systemctl status ceph.target
> /dev
/null
2>&1
2287 # Stop the daemons if they were running
2288 if test $STATUS
-eq
0; then
2289 /usr
/bin
/systemctl stop ceph.target
> /dev
/null
2>&1
2292 # Relabel the files fix for first package install
2293 /usr
/sbin
/fixfiles
-C $
{FILE_CONTEXT
}.pre restore
2> /dev
/null
2295 rm -f $
{FILE_CONTEXT
}.pre
2296 # The fixfiles command won't fix label for /var/run/ceph
2297 /usr
/sbin
/restorecon
-R
/var
/run
/ceph
> /dev
/null
2>&1
2299 # Start the daemons iff they were running before
2300 if test $STATUS
-eq
0; then
2301 /usr
/bin
/systemctl start ceph.target
> /dev
/null
2>&1 ||
:
2306 if [ $
1 -eq
0 ]; then
2307 # backup file_contexts before update
2308 .
/etc
/selinux
/config
2309 FILE_CONTEXT
=/etc
/selinux
/$
{SELINUXTYPE
}/contexts
/files
/file_contexts
2310 cp $
{FILE_CONTEXT
} $
{FILE_CONTEXT
}.pre
2313 /usr
/sbin
/semodule
-n
-r ceph
> /dev
/null
2>&1
2315 # Reload the policy if SELinux is enabled
2316 if ! /usr
/sbin
/selinuxenabled
; then
2317 # Do not relabel if SELinux is not enabled
2321 # Check whether the daemons are running
2322 /usr
/bin
/systemctl status ceph.target
> /dev
/null
2>&1
2325 # Stop the daemons if they were running
2326 if test $STATUS
-eq
0; then
2327 /usr
/bin
/systemctl stop ceph.target
> /dev
/null
2>&1
2330 /usr
/sbin
/fixfiles
-C $
{FILE_CONTEXT
}.pre restore
2> /dev
/null
2331 rm -f $
{FILE_CONTEXT
}.pre
2332 # The fixfiles command won't fix label for /var/run/ceph
2333 /usr
/sbin
/restorecon
-R
/var
/run
/ceph
> /dev
/null
2>&1
2335 # Start the daemons if they were running before
2336 if test $STATUS
-eq
0; then
2337 /usr
/bin
/systemctl start ceph.target
> /dev
/null
2>&1 ||
:
2343 %files grafana
-dashboards
2344 %if 0%{?suse_version}
2345 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
2346 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
/dashboards
2348 %attr(0755,root
,root
) %dir %{_sysconfdir}/grafana
/dashboards
/ceph
-dashboard
2349 %config %{_sysconfdir}/grafana
/dashboards
/ceph
-dashboard
/*
2350 %doc monitoring
/grafana
/dashboards
/README
2351 %doc monitoring
/grafana
/README.md
2353 %files prometheus
-alerts
2354 %if 0%{?suse_version}
2355 %attr(0755,root
,root
) %dir %{_sysconfdir}/prometheus
2357 %attr(0755,root
,root
) %dir %{_sysconfdir}/prometheus
/ceph
2358 %config %{_sysconfdir}/prometheus
/ceph
/ceph_default_alerts.yml