File ceph-test.spec of Package ceph-test
1282
1
#!BuildConstraint: hardware:memory:size unit=G 10
2
#!BuildConstraint: hardware:disk:size unit=G 60
3
#
4
# spec file for package ceph
5
#
6
# Copyright (C) 2004-2019 The Ceph Project Developers. See COPYING file
7
# at the top-level directory of this distribution and at
8
# https://github.com/ceph/ceph/blob/master/COPYING
9
#
10
# All modifications and additions to the file contributed by third parties
11
# remain the property of their copyright owners, unless otherwise agreed
12
# upon.
13
#
14
# This file is under the GNU Lesser General Public License, version 2.1
15
#
16
# Please submit bugfixes or comments via http://tracker.ceph.com/
17
#
18
19
#################################################################################
20
# conditional build section
21
#
22
# please read http://rpm.org/user_doc/conditional_builds.html for explanation of
23
# bcond syntax!
24
#################################################################################
25
%bcond_with make_check
26
%bcond_with zbd
27
%bcond_with cmake_verbose_logging
28
%bcond_without ceph_test_package
29
%bcond_with minimal_debugging_information
30
%ifarch s390
31
%bcond_with tcmalloc
32
%else
33
%bcond_without tcmalloc
34
%endif
35
%if 0%{?rhel} >= 9
36
%bcond_without system_pmdk
37
%else
38
%bcond_with system_pmdk
39
%endif
40
%if 0%{?fedora} || 0%{?rhel}
41
%bcond_without selinux
42
%ifarch x86_64 ppc64le
43
%bcond_without rbd_rwl_cache
44
%bcond_without rbd_ssd_cache
45
%else
46
%bcond_with rbd_rwl_cache
47
%bcond_with rbd_ssd_cache
48
%endif
49
%if 0%{?rhel} >= 8
50
%bcond_with cephfs_java
51
%else
52
%bcond_without cephfs_java
53
%endif
54
%bcond_without amqp_endpoint
55
%bcond_without kafka_endpoint
56
%bcond_without lttng
57
%bcond_without libradosstriper
58
%bcond_without ocf
59
%global luarocks_package_name luarocks
60
%bcond_without lua_packages
61
%global _remote_tarball_prefix https://download.ceph.com/tarballs/
62
%endif
63
%if 0%{?suse_version}
64
%bcond_with amqp_endpoint
65
%bcond_with cephfs_java
66
%bcond_with kafka_endpoint
67
%bcond_with libradosstriper
68
%ifarch x86_64 aarch64 ppc64le
69
%bcond_without lttng
70
%bcond_without rbd_rwl_cache
71
%bcond_without rbd_ssd_cache
72
%else
73
%bcond_with lttng
74
%bcond_with rbd_rwl_cache
75
%bcond_with rbd_ssd_cache
76
%endif
77
%bcond_with ocf
78
%bcond_with selinux
79
#Compat macro for _fillupdir macro introduced in Nov 2017
80
%if ! %{defined _fillupdir}
81
%global _fillupdir /var/adm/fillup-templates
82
%endif
83
#luarocks
84
%if 0%{?is_opensuse}
85
# openSUSE
86
%bcond_without lua_packages
87
%if 0%{?sle_version}
88
# openSUSE Leap
89
%global luarocks_package_name lua53-luarocks
90
%else
91
# openSUSE Tumbleweed
92
%global luarocks_package_name lua54-luarocks
93
%endif
94
%else
95
# SLE
96
%bcond_with lua_packages
97
%endif
98
%endif
99
%bcond_with seastar
100
%bcond_with jaeger
101
%if 0%{?fedora} || 0%{?suse_version} >= 1500
102
# distros that ship cmd2 and/or colorama
103
%bcond_without cephfs_shell
104
%else
105
# distros that do _not_ ship cmd2/colorama
106
%bcond_with cephfs_shell
107
%endif
108
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
109
%global weak_deps 1
110
%endif
111
%if %{with selinux}
112
# get selinux policy version
113
# Force 0.0.0 policy version for centos builds to avoid repository sync issues between rhel and centos
114
%if 0%{?centos}
115
%global _selinux_policy_version 0.0.0
116
%else
117
%{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
118
%endif
119
%endif
120
121
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
122
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
123
%{!?python3_pkgversion: %global python3_pkgversion 3}
124
%{!?python3_version_nodots: %global python3_version_nodots 3}
125
%{!?python3_version: %global python3_version 3}
126
127
# disable dwz which compresses the debuginfo
128
%global _find_debuginfo_dwz_opts %{nil}
129
130
%if 0%{with seastar}
131
# disable -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1, as gcc-toolset-{9,10}-annobin
132
# do not provide gcc-annobin.so anymore, despite that they provide annobin.so. but
133
# redhat-rpm-config still passes -fplugin=gcc-annobin to the compiler.
134
%undefine _annotated_build
135
%endif
136
137
#################################################################################
138
# main package definition
139
#################################################################################
140
Name: ceph-test
141
Version: 16.2.13.66+g54799ee0666
142
Release: 0%{?dist}
143
%if 0%{?fedora} || 0%{?rhel}
144
Epoch: 2
145
%endif
146
147
# define _epoch_prefix macro which will expand to the empty string if epoch is
148
# undefined
149
%global _epoch_prefix %{?epoch:%{epoch}:}
150
151
Summary: Ceph benchmarks and test tools
152
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
153
%if 0%{?suse_version}
154
Group: System/Filesystems
155
%endif
156
URL: http://ceph.com/
157
Source0: %{?_remote_tarball_prefix}ceph-16.2.13-66-g54799ee0666.tar.bz2
158
%if 0%{?suse_version}
159
Source92: ceph-rpmlintrc
160
Source93: checkin.sh
161
Source94: pre_checkin.sh
162
Source95: pre_checkin.env
163
Source96: README-constraints.txt
164
Source97: README-ceph-test.txt
165
Source98: README-checkin.txt
166
Source99: README-packaging.txt
167
# _insert_obs_source_lines_here
168
ExclusiveArch: x86_64
169
%endif
170
#################################################################################
171
# dependencies that apply across all distro families
172
#################################################################################
173
174
175
176
177
Requires: ceph-common
178
Requires: xmlstarlet
179
Requires: jq
180
Requires: socat
181
Requires(post): binutils
182
%if 0%{with cephfs_java}
183
BuildRequires: java-devel
184
BuildRequires: sharutils
185
%endif
186
%if 0%{with selinux}
187
BuildRequires: checkpolicy
188
BuildRequires: selinux-policy-devel
189
%endif
190
BuildRequires: gperf
191
BuildRequires: cmake > 3.5
192
BuildRequires: cryptsetup
193
BuildRequires: fuse-devel
194
%if 0%{with seastar}
195
BuildRequires: gcc-toolset-9-gcc-c++ >= 9.2.1-2.3
196
%else
197
BuildRequires: gcc-c++
198
%endif
199
%if 0%{with tcmalloc}
200
# libprofiler did not build on ppc64le until 2.7.90
201
%if 0%{?fedora} || 0%{?rhel} >= 8
202
BuildRequires: gperftools-devel >= 2.7.90
203
%endif
204
%if 0%{?rhel} && 0%{?rhel} < 8
205
BuildRequires: gperftools-devel >= 2.6.1
206
%endif
207
%if 0%{?suse_version}
208
BuildRequires: gperftools-devel >= 2.4
209
%endif
210
%endif
211
BuildRequires: leveldb-devel > 1.2
212
BuildRequires: libaio-devel
213
BuildRequires: libblkid-devel >= 2.17
214
BuildRequires: cryptsetup-devel
215
BuildRequires: libcurl-devel
216
BuildRequires: libcap-ng-devel
217
BuildRequires: fmt-devel >= 5.2.1
218
BuildRequires: pkgconfig(libudev)
219
BuildRequires: libnl3-devel
220
BuildRequires: liboath-devel
221
BuildRequires: libtool
222
BuildRequires: libxml2-devel
223
BuildRequires: make
224
BuildRequires: ncurses-devel
225
BuildRequires: libicu-devel
226
BuildRequires: parted
227
BuildRequires: patch
228
BuildRequires: perl
229
BuildRequires: pkgconfig
230
BuildRequires: procps
231
BuildRequires: python%{python3_pkgversion}
232
BuildRequires: python%{python3_pkgversion}-devel
233
BuildRequires: snappy-devel
234
BuildRequires: sqlite-devel
235
BuildRequires: sudo
236
BuildRequires: pkgconfig(udev)
237
BuildRequires: util-linux
238
BuildRequires: valgrind-devel
239
BuildRequires: which
240
BuildRequires: xfsprogs
241
BuildRequires: xfsprogs-devel
242
BuildRequires: xmlstarlet
243
BuildRequires: nasm
244
BuildRequires: lua-devel
245
%if 0%{with amqp_endpoint}
246
BuildRequires: librabbitmq-devel
247
%endif
248
%if 0%{with kafka_endpoint}
249
BuildRequires: librdkafka-devel
250
%endif
251
%if 0%{with lua_packages}
252
BuildRequires: %{luarocks_package_name}
253
%endif
254
%if 0%{with make_check}
255
BuildRequires: jq
256
BuildRequires: libuuid-devel
257
BuildRequires: python%{python3_pkgversion}-bcrypt
258
BuildRequires: python%{python3_pkgversion}-pecan
259
BuildRequires: python%{python3_pkgversion}-requests
260
BuildRequires: python%{python3_pkgversion}-dateutil
261
BuildRequires: python%{python3_pkgversion}-coverage
262
BuildRequires: python%{python3_pkgversion}-pyOpenSSL
263
BuildRequires: socat
264
%endif
265
%if 0%{with zbd}
266
BuildRequires: libzbd-devel
267
%endif
268
%if 0%{with jaeger}
269
BuildRequires: bison
270
BuildRequires: flex
271
%if 0%{?fedora} || 0%{?rhel}
272
BuildRequires: json-devel
273
%endif
274
%if 0%{?suse_version}
275
BuildRequires: nlohmann_json-devel
276
%endif
277
BuildRequires: libevent-devel
278
BuildRequires: yaml-cpp-devel
279
%endif
280
%if 0%{with system_pmdk}
281
BuildRequires: libpmem-devel
282
BuildRequires: libpmemobj-devel
283
%endif
284
%if 0%{with seastar}
285
BuildRequires: c-ares-devel
286
BuildRequires: gnutls-devel
287
BuildRequires: hwloc-devel
288
BuildRequires: libpciaccess-devel
289
BuildRequires: lksctp-tools-devel
290
BuildRequires: protobuf-devel
291
BuildRequires: ragel
292
BuildRequires: systemtap-sdt-devel
293
BuildRequires: yaml-cpp-devel
294
%if 0%{?fedora}
295
BuildRequires: libubsan
296
BuildRequires: libasan
297
%endif
298
%if 0%{?rhel}
299
BuildRequires: gcc-toolset-9-annobin
300
BuildRequires: gcc-toolset-9-libubsan-devel
301
BuildRequires: gcc-toolset-9-libasan-devel
302
BuildRequires: gcc-toolset-9-libatomic-devel
303
%endif
304
%endif
305
#################################################################################
306
# distro-conditional dependencies
307
#################################################################################
308
%if 0%{?suse_version}
309
BuildRequires: pkgconfig(systemd)
310
BuildRequires: systemd-rpm-macros
311
%{?systemd_requires}
312
PreReq: %fillup_prereq
313
BuildRequires: fdupes
314
BuildRequires: net-tools
315
BuildRequires: libbz2-devel
316
BuildRequires: mozilla-nss-devel
317
BuildRequires: keyutils-devel
318
BuildRequires: libopenssl-devel
319
BuildRequires: openldap2-devel
320
#BuildRequires: krb5
321
#BuildRequires: krb5-devel
322
BuildRequires: cunit-devel
323
BuildRequires: python%{python3_pkgversion}-setuptools
324
BuildRequires: python%{python3_pkgversion}-Cython
325
BuildRequires: python%{python3_pkgversion}-PrettyTable
326
BuildRequires: python%{python3_pkgversion}-Sphinx
327
BuildRequires: rdma-core-devel
328
BuildRequires: liblz4-devel >= 1.7
329
# for prometheus-alerts
330
BuildRequires: golang-github-prometheus-prometheus
331
%endif
332
%if 0%{?fedora} || 0%{?rhel}
333
334
BuildRequires: boost-random
335
BuildRequires: nss-devel
336
BuildRequires: keyutils-libs-devel
337
BuildRequires: libatomic
338
BuildRequires: libibverbs-devel
339
BuildRequires: librdmacm-devel
340
BuildRequires: openldap-devel
341
#BuildRequires: krb5-devel
342
BuildRequires: openssl-devel
343
BuildRequires: CUnit-devel
344
BuildRequires: python%{python3_pkgversion}-devel
345
BuildRequires: python%{python3_pkgversion}-setuptools
346
BuildRequires: python%{python3_pkgversion}-Cython
347
BuildRequires: python%{python3_pkgversion}-prettytable
348
BuildRequires: python%{python3_pkgversion}-sphinx
349
BuildRequires: lz4-devel >= 1.7
350
%endif
351
# distro-conditional make check dependencies
352
%if 0%{with make_check}
353
BuildRequires: golang
354
%if 0%{?fedora} || 0%{?rhel}
355
BuildRequires: golang-github-prometheus
356
BuildRequires: libtool-ltdl-devel
357
BuildRequires: xmlsec1
358
BuildRequires: xmlsec1-devel
359
%ifarch x86_64
360
BuildRequires: xmlsec1-nss
361
%endif
362
BuildRequires: xmlsec1-openssl
363
BuildRequires: xmlsec1-openssl-devel
364
BuildRequires: python%{python3_pkgversion}-cherrypy
365
BuildRequires: python%{python3_pkgversion}-jwt
366
BuildRequires: python%{python3_pkgversion}-routes
367
BuildRequires: python%{python3_pkgversion}-scipy
368
BuildRequires: python%{python3_pkgversion}-werkzeug
369
BuildRequires: python%{python3_pkgversion}-pyOpenSSL
370
%endif
371
%if 0%{?suse_version}
372
BuildRequires: golang-github-prometheus-prometheus
373
BuildRequires: libxmlsec1-1
374
BuildRequires: libxmlsec1-nss1
375
BuildRequires: libxmlsec1-openssl1
376
BuildRequires: python%{python3_pkgversion}-CherryPy
377
BuildRequires: python%{python3_pkgversion}-PyJWT
378
BuildRequires: python%{python3_pkgversion}-Routes
379
BuildRequires: python%{python3_pkgversion}-Werkzeug
380
BuildRequires: python%{python3_pkgversion}-numpy-devel
381
BuildRequires: xmlsec1-devel
382
BuildRequires: xmlsec1-openssl-devel
383
%endif
384
%endif
385
# lttng and babeltrace for rbd-replay-prep
386
%if %{with lttng}
387
%if 0%{?fedora} || 0%{?rhel}
388
BuildRequires: lttng-ust-devel
389
BuildRequires: libbabeltrace-devel
390
%endif
391
%if 0%{?suse_version}
392
BuildRequires: lttng-ust-devel
393
BuildRequires: babeltrace-devel
394
%endif
395
%endif
396
%if 0%{?suse_version}
397
BuildRequires: libexpat-devel
398
%endif
399
%if 0%{?rhel} || 0%{?fedora}
400
BuildRequires: expat-devel
401
%endif
402
#hardened-cc1
403
%if 0%{?fedora} || 0%{?rhel}
404
BuildRequires: redhat-rpm-config
405
%endif
406
%if 0%{with seastar}
407
%if 0%{?fedora} || 0%{?rhel}
408
BuildRequires: cryptopp-devel
409
BuildRequires: numactl-devel
410
BuildRequires: protobuf-compiler
411
%endif
412
%if 0%{?suse_version}
413
BuildRequires: libcryptopp-devel
414
BuildRequires: libnuma-devel
415
%endif
416
%endif
417
%if 0%{?rhel} >= 8
418
BuildRequires: /usr/bin/pathfix.py
419
%endif
420
421
%description
422
This package contains Ceph benchmarks and test tools.
423
424
#################################################################################
425
# subpackages
426
#################################################################################
427
%if 0%{?suse_version}
428
%endif
429
%if 0%{with selinux}
430
%endif
431
%if 0%{?rhel} && 0%{?rhel} < 8
432
%if 0%{with tcmalloc}
433
%endif
434
%endif
435
%if 0%{?weak_deps}
436
%if 0%{?suse_version}
437
%endif
438
%endif
439
%if 0%{?weak_deps}
440
%endif
441
%if 0%{?suse_version}
442
%endif
443
%if 0%{with jaeger}
444
%endif
445
%if 0%{?fedora} || 0%{?rhel}
446
%endif
447
%if 0%{?suse_version}
448
%endif
449
%if 0%{with libradosstriper}
450
%endif
451
%if 0%{?suse_version}
452
%endif
453
%if 0%{?suse_version}
454
%endif
455
%if 0%{?suse_version}
456
%endif
457
%if 0%{with jaeger}
458
%endif
459
%if 0%{?suse_version}
460
%endif
461
%if 0%{?weak_deps}
462
%endif
463
%if 0%{?suse_version}
464
%endif
465
%if 0%{?fedora} || 0%{?rhel}
466
%if 0%{?weak_deps}
467
%endif
468
%endif
469
%if 0%{?suse_version}
470
%endif
471
%if 0%{?suse_version}
472
%endif
473
%if 0%{?fedora} || 0%{?suse_version}
474
%endif
475
%if 0%{?suse_version}
476
%endif
477
%if 0%{?fedora} || 0%{?rhel} >= 8
478
%endif
479
%if 0%{?suse_version}
480
%endif
481
%if 0%{?weak_deps}
482
%endif
483
%if 0%{?suse_version}
484
%endif
485
%if 0%{?suse_version}
486
%endif
487
%if 0%{?suse_version}
488
%endif
489
%if 0%{?suse_version}
490
%endif
491
%if 0%{?rhel} || 0%{?fedora}
492
%endif
493
%if 0%{?suse_version}
494
%endif
495
%if 0%{?suse_version}
496
%endif
497
%if 0%{?suse_version}
498
%endif
499
%if 0%{?suse_version}
500
%endif
501
%if 0%{?suse_version}
502
%endif
503
%if 0%{?suse_version}
504
%endif
505
%if 0%{?suse_version}
506
%endif
507
%if 0%{with selinux}
508
%endif
509
%if 0%{?rhel} || 0%{?fedora}
510
%endif
511
%if 0%{?weak_deps}
512
%endif
513
%if %{with ocf}
514
%if 0%{?suse_version}
515
%endif
516
%endif
517
%if 0%{?suse_version}
518
%endif
519
%if 0%{with seastar}
520
%if 0%{?suse_version}
521
%endif
522
%endif
523
%if 0%{?suse_version}
524
%endif
525
%if 0%{?rhel} || 0%{?fedora}
526
%endif
527
%if 0%{?suse_version}
528
%endif
529
%if 0%{?suse_version}
530
%endif
531
%if 0%{?suse_version}
532
%endif
533
%if 0%{?suse_version}
534
%endif
535
%if 0%{?suse_version}
536
%endif
537
%if 0%{?suse_version}
538
%endif
539
%if 0%{?suse_version}
540
%endif
541
%if 0%{?suse_version}
542
%endif
543
%if 0%{with libradosstriper}
544
%if 0%{?suse_version}
545
%endif
546
%if 0%{?suse_version}
547
%endif
548
%endif
549
%if 0%{?suse_version}
550
%endif
551
%if 0%{?suse_version}
552
%endif
553
%if 0%{?rhel} || 0%{?fedora}
554
%endif
555
%if 0%{?suse_version}
556
%endif
557
%if 0%{?suse_version}
558
%endif
559
%if 0%{?suse_version}
560
%endif
561
%if 0%{?rhel} || 0%{?fedora}
562
%endif
563
%if 0%{?suse_version}
564
%endif
565
%if 0%{with jaeger}
566
%if 0%{?suse_version}
567
%endif
568
%endif
569
%if 0%{?suse_version}
570
%endif
571
%if 0%{?suse_version}
572
%endif
573
%if 0%{?fedora} || 0%{?rhel} >= 8
574
%endif
575
%if 0%{?suse_version}
576
%endif
577
%if 0%{?suse_version}
578
%endif
579
%if 0%{with cephfs_shell}
580
%endif
581
%if 0%{with ceph_test_package}
582
%if 0%{?suse_version}
583
%endif
584
%endif
585
%if 0%{with cephfs_java}
586
%if 0%{?suse_version}
587
%endif
588
%if 0%{?suse_version}
589
%endif
590
%if 0%{?suse_version}
591
%endif
592
%endif
593
%if 0%{?suse_version}
594
%endif
595
%if 0%{with selinux}
596
%if 0%{?suse_version}
597
%endif
598
%endif
599
%if 0%{?suse_version}
600
%endif
601
%prep
602
%autosetup -p1 -n ceph-16.2.13-66-g54799ee0666
603
604
%build
605
# Disable lto on systems that do not support symver attribute
606
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200 for details
607
%if ( 0%{?rhel} && 0%{?rhel} < 9 ) || ( 0%{?suse_version} && 0%{?suse_version} <= 1500 )
608
%define _lto_cflags %{nil}
609
%endif
610
611
%if 0%{with seastar} && 0%{?rhel}
612
. /opt/rh/gcc-toolset-9/enable
613
%endif
614
615
%if 0%{with cephfs_java}
616
# Find jni.h
617
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
618
[ -d $i ] && java_inc="$java_inc -I$i"
619
done
620
%endif
621
622
%if 0%{?suse_version}
623
# the following setting fixed an OOM condition we once encountered in the OBS
624
RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768"
625
%endif
626
%if %{with minimal_debugging_information}
627
RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g')"
628
%endif
629
630
export CPPFLAGS="$java_inc"
631
export CFLAGS="$RPM_OPT_FLAGS"
632
export CXXFLAGS="$RPM_OPT_FLAGS -DFMT_DEPRECATED_OSTREAM"
633
export LDFLAGS="$RPM_LD_FLAGS"
634
test "$RPM_LD_FLAGS" && echo "RPM_LD_FLAGS == $RPM_LD_FLAGS" || echo "RPM_LD_FLAGS is empty"
635
636
%if 0%{with seastar}
637
# seastar uses longjmp() to implement coroutine. and this annoys longjmp_chk()
638
export CXXFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g')
639
%endif
640
641
# Parallel build settings ...
642
CEPH_MFLAGS_JOBS="%{?_smp_mflags}"
643
CEPH_SMP_NCPUS=$(echo "$CEPH_MFLAGS_JOBS" | sed 's/-j//')
644
%if 0%{?__isa_bits} == 32
645
# 32-bit builds can use 3G memory max, which is not enough even for -j2
646
CEPH_SMP_NCPUS="1"
647
%endif
648
# do not eat all memory
649
echo "Available memory:"
650
free -h
651
echo "System limits:"
652
ulimit -a
653
if test -n "$CEPH_SMP_NCPUS" -a "$CEPH_SMP_NCPUS" -gt 1 ; then
654
mem_per_process=2500
655
max_mem=$(LANG=C free -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p")
656
max_jobs="$(($max_mem / $mem_per_process))"
657
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"
658
test "$CEPH_SMP_NCPUS" -le 0 && CEPH_SMP_NCPUS="1" && echo "Warning: Not using parallel build at all because of memory limits"
659
fi
660
export CEPH_SMP_NCPUS
661
export CEPH_MFLAGS_JOBS="-j$CEPH_SMP_NCPUS"
662
663
env | sort
664
665
mkdir build
666
cd build
667
CMAKE=cmake
668
${CMAKE} .. \
669
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
670
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
671
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
672
-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
673
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
674
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
675
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \
676
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
677
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=%{_unitdir} \
678
-DWITH_MANPAGE=ON \
679
-DWITH_PYTHON3=%{python3_version} \
680
-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
681
%if 0%{without ceph_test_package}
682
-DWITH_TESTS=OFF \
683
%endif
684
%if 0%{with cephfs_java}
685
-DWITH_CEPHFS_JAVA=ON \
686
%endif
687
%if 0%{with selinux}
688
-DWITH_SELINUX=ON \
689
%endif
690
%if %{with lttng}
691
-DWITH_LTTNG=ON \
692
-DWITH_BABELTRACE=ON \
693
%else
694
-DWITH_LTTNG=OFF \
695
-DWITH_BABELTRACE=OFF \
696
%endif
697
$CEPH_EXTRA_CMAKE_ARGS \
698
%if 0%{with ocf}
699
-DWITH_OCF=ON \
700
%endif
701
%if 0%{with cephfs_shell}
702
-DWITH_CEPHFS_SHELL=ON \
703
%endif
704
%if 0%{with libradosstriper}
705
-DWITH_LIBRADOSSTRIPER=ON \
706
%else
707
-DWITH_LIBRADOSSTRIPER=OFF \
708
%endif
709
%if 0%{with amqp_endpoint}
710
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
711
%else
712
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
713
%endif
714
%if 0%{with kafka_endpoint}
715
-DWITH_RADOSGW_KAFKA_ENDPOINT=ON \
716
%else
717
-DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \
718
%endif
719
%if 0%{without lua_packages}
720
-DWITH_RADOSGW_LUA_PACKAGES=OFF \
721
%endif
722
%if 0%{with zbd}
723
-DWITH_ZBD=ON \
724
%endif
725
%if 0%{with cmake_verbose_logging}
726
-DCMAKE_VERBOSE_MAKEFILE=ON \
727
%endif
728
%if 0%{with rbd_rwl_cache}
729
-DWITH_RBD_RWL=ON \
730
%endif
731
%if 0%{with rbd_ssd_cache}
732
-DWITH_RBD_SSD_CACHE=ON \
733
%endif
734
%if 0%{with system_pmdk}
735
-DWITH_SYSTEM_PMDK:BOOL=ON \
736
%endif
737
-DBOOST_J=$CEPH_SMP_NCPUS \
738
%if 0%{?rhel}
739
-DWITH_FMT_HEADER_ONLY:BOOL=ON \
740
%endif
741
-DWITH_GRAFANA=ON
742
743
%if %{with cmake_verbose_logging}
744
cat ./CMakeFiles/CMakeOutput.log
745
cat ./CMakeFiles/CMakeError.log
746
%endif
747
748
make "$CEPH_MFLAGS_JOBS"
749
750
751
%if 0%{with make_check}
752
%check
753
# run in-tree unittests
754
cd build
755
ctest "$CEPH_MFLAGS_JOBS"
756
%endif
757
758
759
%install
760
pushd build
761
make DESTDIR=%{buildroot} install
762
# we have dropped sysvinit bits
763
rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
764
popd
765
766
%if 0%{with seastar}
767
# package crimson-osd with the name of ceph-osd
768
install -m 0755 %{buildroot}%{_bindir}/crimson-osd %{buildroot}%{_bindir}/ceph-osd
769
%endif
770
771
install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
772
%if 0%{?fedora} || 0%{?rhel}
773
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
774
%endif
775
%if 0%{?suse_version}
776
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_fillupdir}/sysconfig.%{name}
777
%endif
778
install -m 0644 -D systemd/ceph.tmpfiles.d %{buildroot}%{_tmpfilesdir}/ceph-common.conf
779
install -m 0644 -D systemd/50-ceph.preset %{buildroot}%{_presetdir}/50-ceph.preset
780
mkdir -p %{buildroot}%{_sbindir}
781
install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/ceph
782
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
783
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
784
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
785
install -m 0755 -D src/tools/rbd_nbd/rbd-nbd_quiesce %{buildroot}%{_libexecdir}/rbd-nbd/rbd-nbd_quiesce
786
787
install -m 0755 src/cephadm/cephadm %{buildroot}%{_sbindir}/cephadm
788
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm
789
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm
790
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm/.ssh
791
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm/.ssh
792
touch %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
793
chmod 0600 %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
794
795
# firewall templates and /sbin/mount.ceph symlink
796
%if 0%{?suse_version} && 0%{?suse_version} < 1550
797
mkdir -p %{buildroot}/sbin
798
ln -sf %{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph
799
%endif
800
801
# udev rules
802
install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
803
804
# sudoers.d
805
install -m 0440 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl
806
807
%if 0%{?rhel} >= 8
808
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
809
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
810
%endif
811
812
#set up placeholder directories
813
mkdir -p %{buildroot}%{_sysconfdir}/ceph
814
mkdir -p %{buildroot}%{_localstatedir}/run/ceph
815
mkdir -p %{buildroot}%{_localstatedir}/log/ceph
816
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/tmp
817
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mon
818
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/osd
819
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mds
820
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mgr
821
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/crash
822
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/crash/posted
823
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/radosgw
824
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
825
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
826
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rgw
827
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mgr
828
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rbd
829
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rbd-mirror
830
831
# prometheus alerts
832
install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/prometheus/ceph/ceph_default_alerts.yml
833
834
%if 0%{?suse_version}
835
# create __pycache__ directories and their contents
836
%py3_compile %{buildroot}%{python3_sitelib}
837
# hardlink duplicate files under /usr to save space
838
%fdupes %{buildroot}%{_prefix}
839
%endif
840
841
%if 0%{?rhel} == 8
842
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
843
%endif
844
845
rm -rf %{buildroot}%{_bindir}/ceph-crash
846
rm -rf %{buildroot}%{_bindir}/crushtool
847
rm -rf %{buildroot}%{_bindir}/monmaptool
848
rm -rf %{buildroot}%{_bindir}/osdmaptool
849
rm -rf %{buildroot}%{_bindir}/ceph-kvstore-tool
850
rm -rf %{buildroot}%{_bindir}/ceph-run
851
rm -rf %{buildroot}%{_bindir}/ceph-dencoder
852
rm -rf %{buildroot}%{_bindir}/cephfs-data-scan
853
rm -rf %{buildroot}%{_bindir}/cephfs-journal-tool
854
rm -rf %{buildroot}%{_bindir}/cephfs-table-tool
855
rm -rf %{buildroot}%{_presetdir}/50-ceph.preset
856
rm -rf %{buildroot}%{_sbindir}/ceph-create-keys
857
rm -rf %{buildroot}%{_libexecdir}/ceph/ceph_common.sh
858
rm -rf %{buildroot}%{_libdir}/rados-classes/*
859
rm -rf %{buildroot}%{_libdir}/ceph/erasure-code/libec_*.so*
860
rm -rf %{buildroot}%{_libdir}/ceph/compressor/libceph_*.so*
861
rm -rf %{buildroot}%{_unitdir}/ceph-crash.service
862
rm -rf %{buildroot}%{_libdir}/ceph/crypto/libceph_*.so*
863
rm -rf %{buildroot}%{_libdir}/libos_tp.so*
864
rm -rf %{buildroot}%{_libdir}/libosd_tp.so*
865
rm -rf %{buildroot}%{_sysconfdir}/logrotate.d/ceph
866
rm -rf %{buildroot}%{_sysconfdir}/sysconfig/ceph
867
rm -rf %{buildroot}%{_fillupdir}/sysconfig.*
868
rm -rf %{buildroot}%{_unitdir}/ceph.target
869
rm -rf %{buildroot}%{python3_sitelib}/ceph_volume/*
870
rm -rf %{buildroot}%{python3_sitelib}/ceph_volume-*
871
rm -rf %{buildroot}%{_mandir}/man8/ceph-deploy.8*
872
rm -rf %{buildroot}%{_mandir}/man8/ceph-create-keys.8*
873
rm -rf %{buildroot}%{_mandir}/man8/ceph-run.8*
874
rm -rf %{buildroot}%{_mandir}/man8/crushtool.8*
875
rm -rf %{buildroot}%{_mandir}/man8/osdmaptool.8*
876
rm -rf %{buildroot}%{_mandir}/man8/monmaptool.8*
877
rm -rf %{buildroot}%{_mandir}/man8/ceph-kvstore-tool.8*
878
rm -rf %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl
879
rm -rf %{buildroot}%{_sbindir}/cephadm
880
rm -rf %{buildroot}%{_mandir}/man8/cephadm.8*
881
rm -rf %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
882
rm -rf %{buildroot}%doc
883
rm -rf %{buildroot}%{_docdir}/ceph/sample.ceph.conf
884
rm -rf %{buildroot}%license
885
rm -rf %{buildroot}%{_docdir}/ceph/COPYING
886
rm -rf %{buildroot}%{_bindir}/ceph
887
rm -rf %{buildroot}%{_bindir}/ceph-authtool
888
rm -rf %{buildroot}%{_bindir}/ceph-conf
889
rm -rf %{buildroot}%{_bindir}/ceph-rbdnamer
890
rm -rf %{buildroot}%{_bindir}/ceph-syn
891
rm -rf %{buildroot}%{_bindir}/rados
892
rm -rf %{buildroot}%{_bindir}/radosgw-admin
893
rm -rf %{buildroot}%{_bindir}/rbd
894
rm -rf %{buildroot}%{_bindir}/rbd-replay
895
rm -rf %{buildroot}%{_bindir}/rbd-replay-many
896
rm -rf %{buildroot}%{_bindir}/rbdmap
897
rm -rf %{buildroot}%{_sbindir}/mount.ceph
898
rm -rf %{buildroot}/sbin/mount.ceph
899
rm -rf %{buildroot}%{_bindir}/rbd-replay-prep
900
rm -rf %{buildroot}%{_bindir}/ceph-post-file
901
rm -rf %{buildroot}%{_libdir}/ceph/denc/denc-mod-*.so
902
rm -rf %{buildroot}%{_tmpfilesdir}/ceph-common.conf
903
rm -rf %{buildroot}%{_mandir}/man8/ceph-authtool.8*
904
rm -rf %{buildroot}%{_mandir}/man8/ceph-conf.8*
905
rm -rf %{buildroot}%{_mandir}/man8/ceph-dencoder.8*
906
rm -rf %{buildroot}%{_mandir}/man8/ceph-diff-sorted.8*
907
rm -rf %{buildroot}%{_mandir}/man8/ceph-rbdnamer.8*
908
rm -rf %{buildroot}%{_mandir}/man8/ceph-syn.8*
909
rm -rf %{buildroot}%{_mandir}/man8/ceph-post-file.8*
910
rm -rf %{buildroot}%{_mandir}/man8/ceph.8*
911
rm -rf %{buildroot}%{_mandir}/man8/mount.ceph.8*
912
rm -rf %{buildroot}%{_mandir}/man8/rados.8*
913
rm -rf %{buildroot}%{_mandir}/man8/radosgw-admin.8*
914
rm -rf %{buildroot}%{_mandir}/man8/rbd.8*
915
rm -rf %{buildroot}%{_mandir}/man8/rbdmap.8*
916
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay.8*
917
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay-many.8*
918
rm -rf %{buildroot}%{_mandir}/man8/rbd-replay-prep.8*
919
rm -rf %{buildroot}%{_mandir}/man8/rgw-orphan-list.8*
920
rm -rf %{buildroot}%{_datadir}/ceph/known_hosts_drop.ceph.com
921
rm -rf %{buildroot}%{_datadir}/ceph/id_rsa_drop.ceph.com
922
rm -rf %{buildroot}%{_datadir}/ceph/id_rsa_drop.ceph.com.pub
923
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/ceph
924
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/rados
925
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/rbd
926
rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/radosgw-admin
927
rm -rf %{buildroot}%{_sysconfdir}/ceph/rbdmap
928
rm -rf %{buildroot}%{_unitdir}/rbdmap.service
929
rm -rf %{buildroot}%{_udevrulesdir}/50-rbd.rules
930
rm -rf %{buildroot}%{_bindir}/ceph-mds
931
rm -rf %{buildroot}%{_mandir}/man8/ceph-mds.8*
932
rm -rf %{buildroot}%{_unitdir}/ceph-mds@.service
933
rm -rf %{buildroot}%{_unitdir}/ceph-mds.target
934
rm -rf %{buildroot}%{_bindir}/ceph-mgr
935
rm -rf %{buildroot}%{_datadir}/ceph/mgr/mgr_module.*
936
rm -rf %{buildroot}%{_datadir}/ceph/mgr/mgr_util.*
937
rm -rf %{buildroot}%{_unitdir}/ceph-mgr@.service
938
rm -rf %{buildroot}%{_unitdir}/ceph-mgr.target
939
rm -rf %{buildroot}%{_datadir}/ceph/mgr/dashboard
940
rm -rf %{buildroot}%{_datadir}/ceph/mgr/diskprediction_local
941
rm -rf %{buildroot}%{_datadir}/ceph/mgr/alerts
942
rm -rf %{buildroot}%{_datadir}/ceph/mgr/balancer
943
rm -rf %{buildroot}%{_datadir}/ceph/mgr/crash
944
rm -rf %{buildroot}%{_datadir}/ceph/mgr/devicehealth
945
rm -rf %{buildroot}%{_datadir}/ceph/mgr/influx
946
rm -rf %{buildroot}%{_datadir}/ceph/mgr/insights
947
rm -rf %{buildroot}%{_datadir}/ceph/mgr/iostat
948
rm -rf %{buildroot}%{_datadir}/ceph/mgr/localpool
949
rm -rf %{buildroot}%{_datadir}/ceph/mgr/mds_autoscaler
950
rm -rf %{buildroot}%{_datadir}/ceph/mgr/mirroring
951
rm -rf %{buildroot}%{_datadir}/ceph/mgr/nfs
952
rm -rf %{buildroot}%{_datadir}/ceph/mgr/orchestrator
953
rm -rf %{buildroot}%{_datadir}/ceph/mgr/osd_perf_query
954
rm -rf %{buildroot}%{_datadir}/ceph/mgr/osd_support
955
rm -rf %{buildroot}%{_datadir}/ceph/mgr/pg_autoscaler
956
rm -rf %{buildroot}%{_datadir}/ceph/mgr/progress
957
rm -rf %{buildroot}%{_datadir}/ceph/mgr/prometheus
958
rm -rf %{buildroot}%{_datadir}/ceph/mgr/rbd_support
959
rm -rf %{buildroot}%{_datadir}/ceph/mgr/restful
960
rm -rf %{buildroot}%{_datadir}/ceph/mgr/selftest
961
rm -rf %{buildroot}%{_datadir}/ceph/mgr/snap_schedule
962
rm -rf %{buildroot}%{_datadir}/ceph/mgr/stats
963
rm -rf %{buildroot}%{_datadir}/ceph/mgr/status
964
rm -rf %{buildroot}%{_datadir}/ceph/mgr/telegraf
965
rm -rf %{buildroot}%{_datadir}/ceph/mgr/telemetry
966
rm -rf %{buildroot}%{_datadir}/ceph/mgr/test_orchestrator
967
rm -rf %{buildroot}%{_datadir}/ceph/mgr/volumes
968
rm -rf %{buildroot}%{_datadir}/ceph/mgr/zabbix
969
rm -rf %{buildroot}%{_datadir}/ceph/mgr/rook
970
rm -rf %{buildroot}%{_datadir}/ceph/mgr/k8sevents
971
rm -rf %{buildroot}%{_datadir}/ceph/mgr/cephadm
972
rm -rf %{buildroot}%{_bindir}/ceph-mon
973
rm -rf %{buildroot}%{_bindir}/ceph-monstore-tool
974
rm -rf %{buildroot}%{_mandir}/man8/ceph-mon.8*
975
rm -rf %{buildroot}%{_unitdir}/ceph-mon@.service
976
rm -rf %{buildroot}%{_unitdir}/ceph-mon.target
977
rm -rf %{buildroot}%{_bindir}/ceph-fuse
978
rm -rf %{buildroot}%{_mandir}/man8/ceph-fuse.8*
979
rm -rf %{buildroot}%{_sbindir}/mount.fuse.ceph
980
rm -rf %{buildroot}%{_mandir}/man8/mount.fuse.ceph.8*
981
rm -rf %{buildroot}%{_unitdir}/ceph-fuse@.service
982
rm -rf %{buildroot}%{_unitdir}/ceph-fuse.target
983
rm -rf %{buildroot}%{_bindir}/cephfs-mirror
984
rm -rf %{buildroot}%{_mandir}/man8/cephfs-mirror.8*
985
rm -rf %{buildroot}%{_unitdir}/cephfs-mirror@.service
986
rm -rf %{buildroot}%{_unitdir}/cephfs-mirror.target
987
rm -rf %{buildroot}%{_bindir}/rbd-fuse
988
rm -rf %{buildroot}%{_mandir}/man8/rbd-fuse.8*
989
rm -rf %{buildroot}%{_bindir}/rbd-mirror
990
rm -rf %{buildroot}%{_mandir}/man8/rbd-mirror.8*
991
rm -rf %{buildroot}%{_unitdir}/ceph-rbd-mirror@.service
992
rm -rf %{buildroot}%{_unitdir}/ceph-rbd-mirror.target
993
rm -rf %{buildroot}%{_bindir}/ceph-immutable-object-cache
994
rm -rf %{buildroot}%{_mandir}/man8/ceph-immutable-object-cache.8*
995
rm -rf %{buildroot}%{_unitdir}/ceph-immutable-object-cache@.service
996
rm -rf %{buildroot}%{_unitdir}/ceph-immutable-object-cache.target
997
rm -rf %{buildroot}%{_bindir}/rbd-nbd
998
rm -rf %{buildroot}%{_mandir}/man8/rbd-nbd.8*
999
rm -rf %{buildroot}%{_libexecdir}/rbd-nbd/rbd-nbd_quiesce
1000
rm -rf %{buildroot}%{_bindir}/ceph-diff-sorted
1001
rm -rf %{buildroot}%{_bindir}/radosgw
1002
rm -rf %{buildroot}%{_bindir}/radosgw-token
1003
rm -rf %{buildroot}%{_bindir}/radosgw-es
1004
rm -rf %{buildroot}%{_bindir}/radosgw-object-expirer
1005
rm -rf %{buildroot}%{_bindir}/rgw-gap-list
1006
rm -rf %{buildroot}%{_bindir}/rgw-gap-list-comparator
1007
rm -rf %{buildroot}%{_bindir}/rgw-orphan-list
1008
rm -rf %{buildroot}%{_libdir}/libradosgw.so*
1009
rm -rf %{buildroot}%{_mandir}/man8/radosgw.8*
1010
rm -rf %{buildroot}%{_unitdir}/ceph-radosgw@.service
1011
rm -rf %{buildroot}%{_unitdir}/ceph-radosgw.target
1012
rm -rf %{buildroot}%{_bindir}/ceph-clsinfo
1013
rm -rf %{buildroot}%{_bindir}/ceph-bluestore-tool
1014
rm -rf %{buildroot}%{_bindir}/ceph-erasure-code-tool
1015
rm -rf %{buildroot}%{_bindir}/ceph-objectstore-tool
1016
rm -rf %{buildroot}%{_bindir}/ceph-osdomap-tool
1017
rm -rf %{buildroot}%{_bindir}/ceph-osd
1018
rm -rf %{buildroot}%{_libexecdir}/ceph/ceph-osd-prestart.sh
1019
rm -rf %{buildroot}%{_sbindir}/ceph-volume
1020
rm -rf %{buildroot}%{_sbindir}/ceph-volume-systemd
1021
rm -rf %{buildroot}%{_mandir}/man8/ceph-clsinfo.8*
1022
rm -rf %{buildroot}%{_mandir}/man8/ceph-osd.8*
1023
rm -rf %{buildroot}%{_mandir}/man8/ceph-bluestore-tool.8*
1024
rm -rf %{buildroot}%{_mandir}/man8/ceph-volume.8*
1025
rm -rf %{buildroot}%{_mandir}/man8/ceph-volume-systemd.8*
1026
rm -rf %{buildroot}%{_unitdir}/ceph-osd@.service
1027
rm -rf %{buildroot}%{_unitdir}/ceph-osd.target
1028
rm -rf %{buildroot}%{_unitdir}/ceph-volume@.service
1029
rm -rf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
1030
rm -rf %{buildroot}%{_bindir}/crimson-osd
1031
rm -rf %{buildroot}%{_prefix}/lib/ocf/resource.d/ceph/rbd
1032
rm -rf %{buildroot}%{_libdir}/librados.so.*
1033
rm -rf %{buildroot}%{_libdir}/ceph/libceph-common.so.*
1034
rm -rf %{buildroot}%{_libdir}/librados_tp.so.*
1035
rm -rf %{buildroot}%{_includedir}/rados/librados.h
1036
rm -rf %{buildroot}%{_includedir}/rados/rados_types.h
1037
rm -rf %{buildroot}%{_libdir}/librados.so
1038
rm -rf %{buildroot}%{_libdir}/librados_tp.so
1039
rm -rf %{buildroot}%{_bindir}/librados-config
1040
rm -rf %{buildroot}%{_mandir}/man8/librados-config.8*
1041
rm -rf %{buildroot}%{_includedir}/rados/buffer.h
1042
rm -rf %{buildroot}%{_includedir}/rados/buffer_fwd.h
1043
rm -rf %{buildroot}%{_includedir}/rados/crc32c.h
1044
rm -rf %{buildroot}%{_includedir}/rados/inline_memory.h
1045
rm -rf %{buildroot}%{_includedir}/rados/librados.hpp
1046
rm -rf %{buildroot}%{_includedir}/rados/librados_fwd.hpp
1047
rm -rf %{buildroot}%{_includedir}/rados/page.h
1048
rm -rf %{buildroot}%{_includedir}/rados/rados_types.hpp
1049
rm -rf %{buildroot}%{python3_sitearch}/rados.cpython*.so
1050
rm -rf %{buildroot}%{python3_sitearch}/rados-*.egg-info
1051
rm -rf %{buildroot}%{_libdir}/libcephsqlite.so
1052
rm -rf %{buildroot}%{_includedir}/libcephsqlite.h
1053
rm -rf %{buildroot}%{_libdir}/libradosstriper.so.*
1054
rm -rf %{buildroot}%{_includedir}/radosstriper/libradosstriper.h
1055
rm -rf %{buildroot}%{_includedir}/radosstriper/libradosstriper.hpp
1056
rm -rf %{buildroot}%{_libdir}/libradosstriper.so
1057
rm -rf %{buildroot}%{_libdir}/librbd.so.*
1058
rm -rf %{buildroot}%{_libdir}/librbd_tp.so.*
1059
rm -rf %{buildroot}%{_libdir}/ceph/librbd/libceph_*.so*
1060
rm -rf %{buildroot}%{_includedir}/rbd/librbd.h
1061
rm -rf %{buildroot}%{_includedir}/rbd/librbd.hpp
1062
rm -rf %{buildroot}%{_includedir}/rbd/features.h
1063
rm -rf %{buildroot}%{_libdir}/librbd.so
1064
rm -rf %{buildroot}%{_libdir}/librbd_tp.so
1065
rm -rf %{buildroot}%{_libdir}/librgw.so.*
1066
rm -rf %{buildroot}%{_libdir}/librgw_op_tp.so.*
1067
rm -rf %{buildroot}%{_libdir}/librgw_rados_tp.so.*
1068
rm -rf %{buildroot}%{_includedir}/rados/librgw.h
1069
rm -rf %{buildroot}%{_includedir}/rados/rgw_file.h
1070
rm -rf %{buildroot}%{_libdir}/librgw.so
1071
rm -rf %{buildroot}%{_libdir}/librgw_op_tp.so
1072
rm -rf %{buildroot}%{_libdir}/librgw_rados_tp.so
1073
rm -rf %{buildroot}%{python3_sitearch}/rgw.cpython*.so
1074
rm -rf %{buildroot}%{python3_sitearch}/rgw-*.egg-info
1075
rm -rf %{buildroot}%{python3_sitearch}/rbd.cpython*.so
1076
rm -rf %{buildroot}%{python3_sitearch}/rbd-*.egg-info
1077
rm -rf %{buildroot}%{_libdir}/libcephfs.so.*
1078
rm -rf %{buildroot}%{_includedir}/cephfs/libcephfs.h
1079
rm -rf %{buildroot}%{_includedir}/cephfs/ceph_ll_client.h
1080
rm -rf %{buildroot}%{_includedir}/cephfs/metrics/Types.h
1081
rm -rf %{buildroot}%{_libdir}/libcephfs.so
1082
rm -rf %{buildroot}%{_libdir}/libopentracing.so.*
1083
rm -rf %{buildroot}%{_libdir}/libthrift.so.*
1084
rm -rf %{buildroot}%{_libdir}/libjaegertracing.so.*
1085
rm -rf %{buildroot}%{python3_sitearch}/cephfs.cpython*.so
1086
rm -rf %{buildroot}%{python3_sitearch}/cephfs-*.egg-info
1087
rm -rf %{buildroot}%{python3_sitelib}/ceph_volume_client.py
1088
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*
1089
rm -rf %{buildroot}%{python3_sitelib}/ceph_argparse.py
1090
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
1091
rm -rf %{buildroot}%{python3_sitelib}/ceph_daemon.py
1092
rm -rf %{buildroot}%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*
1093
rm -rf %{buildroot}%{python3_sitelib}/ceph
1094
rm -rf %{buildroot}%{python3_sitelib}/ceph-*.egg-info
1095
rm -rf %{buildroot}%{python3_sitelib}/cephfs_shell-*.egg-info
1096
rm -rf %{buildroot}%{_bindir}/cephfs-shell
1097
rm -rf %{buildroot}%{python3_sitelib}/cephfs_top-*.egg-info
1098
rm -rf %{buildroot}%{_bindir}/cephfs-top
1099
rm -rf %{buildroot}%{_mandir}/man8/cephfs-top.8*
1100
rm -rf %{buildroot}%{_libdir}/libcephfs_jni.so.*
1101
rm -rf %{buildroot}%{_libdir}/libcephfs_jni.so
1102
rm -rf %{buildroot}%{_javadir}/libcephfs.jar
1103
rm -rf %{buildroot}%{_javadir}/libcephfs-test.jar
1104
rm -rf %{buildroot}%{_includedir}/rados/objclass.h
1105
rm -rf %{buildroot}%{_datadir}/selinux/packages/ceph.pp
1106
rm -rf %{buildroot}%{_datadir}/selinux/devel/include/contrib/ceph.if
1107
rm -rf %{buildroot}%{_mandir}/man8/ceph_selinux.8*
1108
rm -rf %{buildroot}%{_sysconfdir}/grafana/dashboards/ceph-dashboard/*
1109
rm -rf %{buildroot}%{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml
1110
1111
dirs=`find %{buildroot} -type d -empty`
1112
while [[ -n $dirs ]]; do
1113
for d in $dirs; do
1114
rm -rf $d
1115
done
1116
dirs=`find %{buildroot} -type d -empty`
1117
done
1118
1119
%clean
1120
rm -rf %{buildroot}
1121
# built binaries are no longer necessary at this point,
1122
# but are consuming ~17GB of disk in the build environment
1123
rm -rf build
1124
1125
#################################################################################
1126
# files and systemd scriptlets
1127
#################################################################################
1128
%files
1129
1130
%if %{with lttng}
1131
%endif
1132
%if 0%{?fedora} || 0%{?rhel}
1133
%endif
1134
%if 0%{?suse_version}
1135
%endif
1136
%if 0%{?suse_version}
1137
%endif
1138
%if 0%{?fedora} || 0%{?rhel}
1139
%endif
1140
%if 0%{?suse_version}
1141
%endif
1142
%if 0%{?fedora} || 0%{?rhel}
1143
%endif
1144
%if ! 0%{?suse_version}
1145
%endif
1146
%if 0%{?suse_version} && 0%{?suse_version} < 1550
1147
%endif
1148
%if %{with lttng}
1149
%endif
1150
%if 0%{?rhel} || 0%{?fedora}
1151
%endif
1152
%if 0%{?suse_version}
1153
%endif
1154
%if 0%{?suse_version}
1155
%endif
1156
%if 0%{?fedora} || 0%{?rhel}
1157
%endif
1158
%if 0%{?suse_version}
1159
%endif
1160
%if 0%{?fedora} || 0%{?rhel}
1161
%endif
1162
%if 0%{?suse_version}
1163
%endif
1164
%if 0%{?fedora} || 0%{?rhel}
1165
%endif
1166
%if 0%{?suse_version}
1167
%endif
1168
%if 0%{?fedora} || 0%{?rhel}
1169
%endif
1170
%if 0%{?suse_version}
1171
%endif
1172
%if 0%{?fedora} || 0%{?rhel}
1173
%endif
1174
%if 0%{?suse_version}
1175
%endif
1176
%if 0%{?fedora} || 0%{?rhel}
1177
%endif
1178
%if 0%{?suse_version}
1179
%endif
1180
%if 0%{?fedora} || 0%{?rhel}
1181
%endif
1182
%if 0%{?suse_version}
1183
%endif
1184
%if 0%{?fedora} || 0%{?rhel}
1185
%endif
1186
%if 0%{?suse_version}
1187
%endif
1188
%if 0%{?fedora} || 0%{?rhel}
1189
%endif
1190
%if 0%{?suse_version}
1191
%endif
1192
%if 0%{?fedora} || 0%{?rhel}
1193
%endif
1194
%if 0%{?suse_version}
1195
%endif
1196
%if 0%{?fedora} || 0%{?rhel}
1197
%endif
1198
%if 0%{?suse_version}
1199
%endif
1200
%if 0%{?fedora} || 0%{?rhel}
1201
%endif
1202
%if 0%{?suse_version}
1203
%endif
1204
%if 0%{?fedora} || 0%{?rhel}
1205
%endif
1206
%if 0%{?suse_version}
1207
%endif
1208
%if 0%{?fedora} || 0%{?rhel}
1209
%endif
1210
%if 0%{?suse_version}
1211
%endif
1212
%if 0%{?fedora} || 0%{?rhel}
1213
%endif
1214
%if 0%{?sysctl_apply}
1215
%endif
1216
%if 0%{?suse_version}
1217
%endif
1218
%if 0%{?fedora} || 0%{?rhel}
1219
%endif
1220
%if 0%{with seastar}
1221
%endif
1222
%if %{with ocf}
1223
%endif
1224
%if %{with lttng}
1225
%endif
1226
%if %{with lttng}
1227
%endif
1228
%if 0%{with libradosstriper}
1229
%endif
1230
%if %{with lttng}
1231
%endif
1232
%if %{with lttng}
1233
%endif
1234
%if %{with lttng}
1235
%endif
1236
%if %{with lttng}
1237
%endif
1238
%if %{with jaeger}
1239
%endif
1240
%if 0%{with cephfs_shell}
1241
%endif
1242
%if 0%{with ceph_test_package}
1243
%files -n ceph-test
1244
%{_bindir}/ceph-client-debug
1245
%{_bindir}/ceph_bench_log
1246
%{_bindir}/ceph_kvstorebench
1247
%{_bindir}/ceph_multi_stress_watch
1248
%{_bindir}/ceph_erasure_code_benchmark
1249
%{_bindir}/ceph_omapbench
1250
%{_bindir}/ceph_objectstore_bench
1251
%{_bindir}/ceph_perf_objectstore
1252
%{_bindir}/ceph_perf_local
1253
%{_bindir}/ceph_perf_msgr_client
1254
%{_bindir}/ceph_perf_msgr_server
1255
%{_bindir}/ceph_psim
1256
%{_bindir}/ceph_radosacl
1257
%{_bindir}/ceph_rgw_jsonparser
1258
%{_bindir}/ceph_rgw_multiparser
1259
%{_bindir}/ceph_scratchtool
1260
%{_bindir}/ceph_scratchtoolpp
1261
%{_bindir}/ceph_test_*
1262
%{_bindir}/ceph-coverage
1263
%{_bindir}/ceph-debugpack
1264
%{_bindir}/ceph-dedup-tool
1265
%if 0%{with seastar}
1266
%{_bindir}/crimson-store-nbd
1267
%endif
1268
%{_mandir}/man8/ceph-debugpack.8*
1269
%dir %{_libdir}/ceph
1270
%{_libdir}/ceph/ceph-monstore-update-crush.sh
1271
%endif
1272
1273
%if 0%{with cephfs_java}
1274
%endif
1275
%if 0%{with selinux}
1276
%endif
1277
%if 0%{?suse_version}
1278
%endif
1279
%if 0%{?suse_version}
1280
%endif
1281
%changelog
1282