|
|
|
@@ -28,7 +28,7 @@
|
|
|
|
|
|
|
|
|
|
%bcond_without ocf
|
|
|
|
|
%bcond_with make_check
|
|
|
|
|
%bcond_without ceph_test_package
|
|
|
|
|
%bcond_with ceph_test_package
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
%bcond_with tcmalloc
|
|
|
|
|
%else
|
|
|
|
@@ -36,18 +36,19 @@
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
%bcond_without selinux
|
|
|
|
|
%bcond_without ceph_test_package
|
|
|
|
|
%bcond_without cephfs_java
|
|
|
|
|
%bcond_without amqp_endpoint
|
|
|
|
|
%bcond_without lttng
|
|
|
|
|
%bcond_without libradosstriper
|
|
|
|
|
%bcond_without ocf
|
|
|
|
|
%bcond_without amqp_endpoint
|
|
|
|
|
%bcond_without kafka_endpoint
|
|
|
|
|
%global _remote_tarball_prefix https://download.ceph.com/tarballs/
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
%bcond_with selinux
|
|
|
|
|
%bcond_with cephfs_java
|
|
|
|
|
%bcond_with amqp_endpoint
|
|
|
|
|
%bcond_with kafka_endpoint
|
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
|
%global _fillupdir /var/adm/fillup-templates
|
|
|
|
@@ -83,7 +84,9 @@
|
|
|
|
|
%if 0%{without python2}
|
|
|
|
|
%global _defined_if_python2_absent 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
|
|
%global weak_deps 1
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with selinux}
|
|
|
|
|
# get selinux policy version
|
|
|
|
|
%{!?_selinux_policy_version: %global _selinux_policy_version 0.0.0}
|
|
|
|
@@ -108,8 +111,8 @@
|
|
|
|
|
# main package definition
|
|
|
|
|
#################################################################################
|
|
|
|
|
Name: ceph
|
|
|
|
|
Version: 14.2.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 14.2.13
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
Epoch: 2
|
|
|
|
|
%endif
|
|
|
|
@@ -127,8 +130,6 @@ URL: http://ceph.com/
|
|
|
|
|
Source0: %{?_remote_tarball_prefix}ceph-%{version}.tar.gz
|
|
|
|
|
Patch002: 0002-src-common-CMakeLists.txt.patch
|
|
|
|
|
Patch003: 0003-src-common-bitstr.h.patch
|
|
|
|
|
Patch004: 0004-src-librbd-api-PoolMetadata.h.patch
|
|
|
|
|
Patch005: 0005-cmake-modules-CheckCxxAtomic.cmake.patch
|
|
|
|
|
# ceph ≥ 14.0.1 does not support 32-bit architectures, bugs #1727788, #1727787
|
|
|
|
|
ExcludeArch: i686 armv7hl
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
@@ -143,6 +144,7 @@ Requires: ceph-mds = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: ceph-mon = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires(post): binutils
|
|
|
|
|
|
|
|
|
|
%if 0%{with cephfs_java}
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
BuildRequires: sharutils
|
|
|
|
@@ -166,6 +168,10 @@ BuildRequires: devtoolset-8-gcc-c++ >= 8.2.1
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
# unlike with gcc-10, installing gcc-9 does not include gcc/libatomic
|
|
|
|
|
BuildRequires: libatomic
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: gdbm
|
|
|
|
|
%if 0%{with tcmalloc}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
@@ -207,6 +213,9 @@ BuildRequires: yasm
|
|
|
|
|
%if 0%{with amqp_endpoint}
|
|
|
|
|
BuildRequires: librabbitmq-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with kafka_endpoint}
|
|
|
|
|
BuildRequires: librdkafka-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with make_check}
|
|
|
|
|
BuildRequires: jq
|
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
@@ -216,13 +225,7 @@ BuildRequires: python%{_python_buildid}-nose
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pecan
|
|
|
|
|
BuildRequires: python%{_python_buildid}-requests
|
|
|
|
|
BuildRequires: python%{_python_buildid}-six
|
|
|
|
|
BuildRequires: python%{_python_buildid}-tox
|
|
|
|
|
BuildRequires: python%{_python_buildid}-virtualenv
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
BuildRequires: pyOpenSSL%{_python_buildid}
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: socat
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with seastar}
|
|
|
|
@@ -281,7 +284,7 @@ BuildRequires: python2-Cython
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
BuildRequires: python%{python3_version_nodots}-Cython
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-Cython
|
|
|
|
@@ -293,9 +296,19 @@ BuildRequires: lz4-devel >= 1.7
|
|
|
|
|
# distro-conditional make check dependencies
|
|
|
|
|
%if 0%{with make_check}
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
BuildRequires: python%{_python_buildid}-coverage
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pecan
|
|
|
|
|
BuildRequires: python%{_python_buildid}-tox
|
|
|
|
|
BuildRequires: xmlsec1
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
BuildRequires: pyOpenSSL%{_python_buildid}
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python%{_python_buildid}-cherrypy
|
|
|
|
|
BuildRequires: python%{_python_buildid}-jwt
|
|
|
|
|
BuildRequires: python%{_python_buildid}-routes
|
|
|
|
|
BuildRequires: python%{_python_buildid}-scipy
|
|
|
|
|
BuildRequires: python%{_python_buildid}-werkzeug
|
|
|
|
|
BuildRequires: xmlsec1
|
|
|
|
|
%endif
|
|
|
|
@@ -304,7 +317,11 @@ BuildRequires: python%{_python_buildid}-CherryPy
|
|
|
|
|
BuildRequires: python%{_python_buildid}-PyJWT
|
|
|
|
|
BuildRequires: python%{_python_buildid}-Routes
|
|
|
|
|
BuildRequires: python%{_python_buildid}-Werkzeug
|
|
|
|
|
BuildRequires: python%{_python_buildid}-coverage
|
|
|
|
|
BuildRequires: python%{_python_buildid}-numpy-devel
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pecan
|
|
|
|
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
|
|
|
|
BuildRequires: python%{_python_buildid}-tox
|
|
|
|
|
BuildRequires: rpm-build
|
|
|
|
|
BuildRequires: xmlsec1-devel
|
|
|
|
|
%endif
|
|
|
|
@@ -341,6 +358,9 @@ BuildRequires: libcryptopp-devel
|
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
BuildRequires: /usr/bin/pathfix.py
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Ceph is a massively scalable, open-source, distributed storage system that runs
|
|
|
|
@@ -371,7 +391,6 @@ Requires: grep
|
|
|
|
|
Requires: logrotate
|
|
|
|
|
Requires: parted
|
|
|
|
|
Requires: psmisc
|
|
|
|
|
Requires: python%{_python_buildid}-requests
|
|
|
|
|
Requires: python%{_python_buildid}-setuptools
|
|
|
|
|
Requires: util-linux
|
|
|
|
|
Requires: xfsprogs
|
|
|
|
@@ -383,7 +402,7 @@ Requires: which
|
|
|
|
|
Requires: gperftools-libs >= 2.6.1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
%if 0%{?weak_deps}
|
|
|
|
|
Recommends: chrony
|
|
|
|
|
%endif
|
|
|
|
|
%description base
|
|
|
|
@@ -402,7 +421,6 @@ Requires: python%{_python_buildid}-rbd = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: python%{_python_buildid}-cephfs = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: python%{_python_buildid}-rgw = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: python%{_python_buildid}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: python%{_python_buildid}-requests
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
Requires: python%{_python_buildid}-prettytable
|
|
|
|
|
%endif
|
|
|
|
@@ -452,6 +470,7 @@ Group: System/Filesystems
|
|
|
|
|
Requires: ceph-base = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: python%{_python_buildid}-bcrypt
|
|
|
|
|
Requires: python%{_python_buildid}-pecan
|
|
|
|
|
Requires: python%{_python_buildid}-requests
|
|
|
|
|
Requires: python%{_python_buildid}-six
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
Requires: python%{_python_buildid}-cherrypy
|
|
|
|
@@ -460,18 +479,21 @@ Requires: python%{_python_buildid}-werkzeug
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Requires: python%{_python_buildid}-CherryPy
|
|
|
|
|
Requires: python%{_python_buildid}-Werkzeug
|
|
|
|
|
Recommends: python%{_python_buildid}-influxdb
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?weak_deps}
|
|
|
|
|
Recommends: ceph-mgr-dashboard = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: ceph-mgr-diskprediction-local = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: ceph-mgr-diskprediction-cloud = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: ceph-mgr-k8sevents = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: ceph-mgr-ssh = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Recommends: python%{_python_buildid}-influxdb
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
|
Requires: pyOpenSSL
|
|
|
|
|
Requires: pyOpenSSL
|
|
|
|
|
BuildRequires: python-enum34
|
|
|
|
|
%else
|
|
|
|
|
Requires: python%{_python_buildid}-pyOpenSSL
|
|
|
|
|
Requires: python%{_python_buildid}-pyOpenSSL
|
|
|
|
|
%endif
|
|
|
|
|
%description mgr
|
|
|
|
|
ceph-mgr enables python modules that provide services (such as the REST
|
|
|
|
@@ -492,6 +514,9 @@ Requires: python%{_python_buildid}-cherrypy
|
|
|
|
|
Requires: python%{_python_buildid}-jwt
|
|
|
|
|
Requires: python%{_python_buildid}-routes
|
|
|
|
|
Requires: python%{_python_buildid}-werkzeug
|
|
|
|
|
%if 0%{?weak_deps}
|
|
|
|
|
Recommends: python%{_python_buildid}-saml
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
Requires: python%{_python_buildid}-CherryPy
|
|
|
|
@@ -666,6 +691,10 @@ Requires: ceph-base = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: lvm2
|
|
|
|
|
Requires: sudo
|
|
|
|
|
Requires: libstoragemgmt
|
|
|
|
|
%if 0%{?weak_deps}
|
|
|
|
|
Recommends: nvme-cli
|
|
|
|
|
Recommends: smartmontools
|
|
|
|
|
%endif
|
|
|
|
|
%description osd
|
|
|
|
|
ceph-osd is the object storage daemon for the Ceph distributed file
|
|
|
|
|
system. It is responsible for storing objects on a local file system
|
|
|
|
@@ -996,6 +1025,8 @@ Requires: ceph-common = %{_epoch_prefix}%{version}-%{release}
|
|
|
|
|
Requires: xmlstarlet
|
|
|
|
|
Requires: jq
|
|
|
|
|
Requires: socat
|
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
BuildRequires: gmock-devel
|
|
|
|
|
%description -n ceph-test
|
|
|
|
|
This package contains Ceph benchmarks and test tools.
|
|
|
|
|
%endif
|
|
|
|
@@ -1229,8 +1260,16 @@ cd build
|
|
|
|
|
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
|
|
|
|
|
%else
|
|
|
|
|
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{with kafka_endpoint}
|
|
|
|
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=ON \
|
|
|
|
|
%else
|
|
|
|
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \
|
|
|
|
|
%endif
|
|
|
|
|
-DBOOST_J=$CEPH_SMP_NCPUS \
|
|
|
|
|
%if 0%{with ceph_test_package}
|
|
|
|
|
-DWITH_SYSTEM_GTEST=ON \
|
|
|
|
|
%endif
|
|
|
|
|
-DWITH_GRAFANA=ON
|
|
|
|
|
|
|
|
|
|
export VERBOSE=1
|
|
|
|
@@ -1241,8 +1280,8 @@ make "$CEPH_MFLAGS_JOBS"
|
|
|
|
|
%if 0%{with make_check}
|
|
|
|
|
%check
|
|
|
|
|
# run in-tree unittests
|
|
|
|
|
# cd build
|
|
|
|
|
# ctest "$CEPH_MFLAGS_JOBS"
|
|
|
|
|
cd build
|
|
|
|
|
ctest "$CEPH_MFLAGS_JOBS"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1279,6 +1318,11 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
|
|
|
|
# sudoers.d
|
|
|
|
|
install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
|
|
|
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_sbindir}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
#set up placeholder directories
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ceph
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/ceph
|
|
|
|
@@ -1448,6 +1492,7 @@ fi
|
|
|
|
|
%{_mandir}/man8/ceph-authtool.8*
|
|
|
|
|
%{_mandir}/man8/ceph-conf.8*
|
|
|
|
|
%{_mandir}/man8/ceph-dencoder.8*
|
|
|
|
|
%{_mandir}/man8/ceph-diff-sorted.8*
|
|
|
|
|
%{_mandir}/man8/ceph-rbdnamer.8*
|
|
|
|
|
%{_mandir}/man8/ceph-syn.8*
|
|
|
|
|
%{_mandir}/man8/ceph-post-file.8*
|
|
|
|
@@ -1460,6 +1505,7 @@ fi
|
|
|
|
|
%{_mandir}/man8/rbd-replay.8*
|
|
|
|
|
%{_mandir}/man8/rbd-replay-many.8*
|
|
|
|
|
%{_mandir}/man8/rbd-replay-prep.8*
|
|
|
|
|
%{_mandir}/man8/rgw-orphan-list.8*
|
|
|
|
|
%dir %{_datadir}/ceph/
|
|
|
|
|
%{_datadir}/ceph/known_hosts_drop.ceph.com
|
|
|
|
|
%{_datadir}/ceph/id_rsa_drop.ceph.com
|
|
|
|
@@ -1825,10 +1871,12 @@ fi
|
|
|
|
|
%{_mandir}/man8/rbd-nbd.8*
|
|
|
|
|
|
|
|
|
|
%files radosgw
|
|
|
|
|
%{_bindir}/ceph-diff-sorted
|
|
|
|
|
%{_bindir}/radosgw
|
|
|
|
|
%{_bindir}/radosgw-token
|
|
|
|
|
%{_bindir}/radosgw-es
|
|
|
|
|
%{_bindir}/radosgw-object-expirer
|
|
|
|
|
%{_bindir}/rgw-orphan-list
|
|
|
|
|
%{_mandir}/man8/radosgw.8*
|
|
|
|
|
%dir %{_localstatedir}/lib/ceph/radosgw
|
|
|
|
|
%{_unitdir}/ceph-radosgw@.service
|
|
|
|
@@ -2087,7 +2135,7 @@ fi
|
|
|
|
|
%files -n libcephfs-devel
|
|
|
|
|
%dir %{_includedir}/cephfs
|
|
|
|
|
%{_includedir}/cephfs/libcephfs.h
|
|
|
|
|
%{_includedir}/cephfs/ceph_statx.h
|
|
|
|
|
%{_includedir}/cephfs/ceph_ll_client.h
|
|
|
|
|
%{_libdir}/libcephfs.so
|
|
|
|
|
|
|
|
|
|
%if 0%{with python2}
|
|
|
|
@@ -2283,6 +2331,26 @@ exit 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 6 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.13-2
|
|
|
|
|
- ceph 14.2.13 python-enum34
|
|
|
|
|
|
|
|
|
|
* Mon Nov 2 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.13-1
|
|
|
|
|
- ceph 14.2.13 GA
|
|
|
|
|
|
|
|
|
|
* Tue Oct 20 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.12-1
|
|
|
|
|
- ceph 14.2.12 GA
|
|
|
|
|
|
|
|
|
|
* Tue Aug 11 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.11-1
|
|
|
|
|
- ceph 14.2.11 GA
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.10-1
|
|
|
|
|
- ceph 14.2.10 GA
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.9-2
|
|
|
|
|
- ceph 14.2.9, /w system gtest, gmock, or would be if it was new enough
|
|
|
|
|
thus disabling as the bundled gtest, etc. result in a build that doesn't
|
|
|
|
|
install.
|
|
|
|
|
|
|
|
|
|
* Tue Apr 21 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.9-1
|
|
|
|
|
- ceph 14.2.9 GA, resync w/ upstream ceph.spec(.in)
|
|
|
|
|
|
|
|
|
@@ -2295,12 +2363,9 @@ exit 0
|
|
|
|
|
* Sat Feb 1 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.7-1
|
|
|
|
|
- ceph 14.2.7 GA
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.6-4
|
|
|
|
|
* Thu Jan 30 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.6-3
|
|
|
|
|
- ceph 14.2.6, https://tracker.ceph.com/issues/43649
|
|
|
|
|
|
|
|
|
|
* Mon Jan 27 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 2:14.2.6-3
|
|
|
|
|
- ceph 14.2.6, (temporarily) disable unit tests
|
|
|
|
|
|
|
|
|
|
* Fri Jan 24 2020 Kaleb S. KEITHLEY <kkeithle[at]redhat.com>
|
|
|
|
|
- ceph 14.2.6, gcc-10, missing includes
|
|
|
|
|
|
|
|
|
|