From b38621f30258fd7b45e940bcd2b1b6ee25f86be5 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 8 Dec 2017 20:02:06 +0800 Subject: [PATCH] ceph.spec: use dts-7 on rhel devtoolset-7 is available for RHEL, but not for centos. only dts-6 is available for centos. Signed-off-by: Kefu Chai --- ceph.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index fca85980f60..db905bf2068 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -126,7 +126,11 @@ BuildRequires: fuse-devel BuildRequires: devtoolset-7-gcc-c++ %endif %ifarch aarch64 +%if 0%{?centos} BuildRequires: devtoolset-6-gcc-c++ +%else +BuildRequires: devtoolset-7-gcc-c++ +%endif %endif %else BuildRequires: gcc-c++ @@ -798,7 +802,11 @@ python-rbd, python-rgw or python-cephfs instead. . /opt/rh/devtoolset-7/enable %endif %ifarch aarch64 +%if 0%{?centos} . /opt/rh/devtoolset-6/enable +%else +. /opt/rh/devtoolset-7/enable +%endif %endif %endif -- 2.39.5