diff options
author | Remi Collet <remi@remirepo.net> | 2020-11-21 09:55:05 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-11-21 09:55:05 +0100 |
commit | d3443032805a39cd1003f95076f8ddab684c4e74 (patch) | |
tree | d24e3bf8f2ca0cbc0399718f67e7452e8b979b1b | |
parent | 336db1e77ed5de26b6bc938e0895e9115fb2dbf8 (diff) |
use at least DTS6 on EL7 (for PHP 7.0)
-rw-r--r-- | php-pecl-grpc.spec | 6 |
1 files changed, 6 insertions, 0 deletions
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 |