summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-06-11 10:24:39 +0200
committerRemi Collet <remi@remirepo.net>2017-06-11 10:24:39 +0200
commit8d397b8c085ce587b4cb52b1f33b793154937ae6 (patch)
tree6ddc2d0530bf9f81f029b00e2edf180ecc7aefce
parent1eb3f28c1513622102518049d0adf055215ab999 (diff)
ignore min PHP version
-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