From d3443032805a39cd1003f95076f8ddab684c4e74 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 21 Nov 2020 09:55:05 +0100 Subject: use at least DTS6 on EL7 (for PHP 7.0) --- php-pecl-grpc.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec index ac2619d..913751b 100644 --- a/php-pecl-grpc.spec +++ b/php-pecl-grpc.spec @@ -38,6 +38,12 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upst Patch0: %{pecl_name}-build.patch Patch1: %{pecl_name}-noatfork.patch +%if 0%{?rhel} == 7 && 0%{?dtsversion} == 0 +BuildRequires: devtoolset-6-toolchain +%global dtsversion 6 +%global dtsenable source /opt/rh/devtoolset-6/enable +%global dtsprefix devtoolset-6- +%endif BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?dtsprefix}gcc-c++ BuildRequires: %{?scl_prefix}php-devel >= 7.0 -- cgit