From 8d397b8c085ce587b4cb52b1f33b793154937ae6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 11 Jun 2017 10:24:39 +0200 Subject: ignore min PHP version --- php-pecl-handlebars.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/php-pecl-handlebars.spec b/php-pecl-handlebars.spec index 792830c..0374ac2 100644 --- a/php-pecl-handlebars.spec +++ b/php-pecl-handlebars.spec @@ -13,7 +13,11 @@ %global pecl_name handlebars %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else %global ini_name 40-%{pecl_name}.ini +%endif %global with_tests 0%{!?_without_tests:1} %global upstream_version 0.8.2 @@ -28,7 +32,8 @@ Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz -BuildRequires: %{?scl_prefix}php-devel > 5.6 +# package.xml state 5.6, but upstream is ok with ignoring it +BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear BuildRequires: libhandlebars-devel BuildRequires: libtalloc-devel @@ -264,6 +269,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Sun Jun 11 2017 Remi Collet - 0.8.2~RC1-1 +- ignore minimal PHP version, see + https://github.com/jbboehr/php-handlebars/pull/44 + * Thu Jun 8 2017 Remi Collet - 0.8.2~RC1-1 - initial package -- cgit