Skip to content

Commit

Permalink
ceph.spec: use dts-7 on rhel
Browse files Browse the repository at this point in the history
devtoolset-7 is available for RHEL, but not for centos. only dts-6 is
available for centos.

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Dec 9, 2017
1 parent 4cedada commit 54030a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ceph.spec.in
Expand Up @@ -126,7 +126,10 @@ 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
%else
BuildRequires: gcc-c++
Expand Down Expand Up @@ -798,7 +801,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

Expand Down

0 comments on commit 54030a3

Please sign in to comment.