From: Kefu Chai Date: Fri, 8 Dec 2017 12:02:06 +0000 (+0800) Subject: ceph.spec: use dts-7 on rhel X-Git-Tag: v13.0.2~828^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b38621f30258fd7b45e940bcd2b1b6ee25f86be5;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index fca85980f604..db905bf20689 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