From 730527ceeb2ae44bb708248fb6b4ffa381c55fa7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 10 Nov 2017 07:39:58 +0100 Subject: fix re2c version used (for EL-6) --- php-zephir-parser.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php-zephir-parser.spec b/php-zephir-parser.spec index d1da16d..288e9cd 100644 --- a/php-zephir-parser.spec +++ b/php-zephir-parser.spec @@ -40,7 +40,11 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit Patch0: %{gh_project}-build.patch BuildRequires: %{?scl_prefix}php-devel > 5.5 -BuildRequires: re2c +%if 0%{?rhel} == 6 +BuildRequires: re2c014 +%else +BuildRequires: re2c >= 0.13.6 +%endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -- cgit