summaryrefslogtreecommitdiffstats
path: root/php-pecl-handlebars.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-handlebars.spec')
-rw-r--r--php-pecl-handlebars.spec11
1 files changed, 10 insertions, 1 deletions
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 <remi@remirepo.net> - 0.8.2~RC1-1
+- ignore minimal PHP version, see
+ https://github.com/jbboehr/php-handlebars/pull/44
+
* Thu Jun 8 2017 Remi Collet <remi@remirepo.net> - 0.8.2~RC1-1
- initial package