summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-zephir-parser.spec6
1 files changed, 5 insertions, 1 deletions
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}