summaryrefslogtreecommitdiffstats
path: root/php-pecl-handlebars.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-26 09:42:43 +0200
committerRemi Collet <remi@remirepo.net>2018-06-26 09:42:43 +0200
commit1cd9f15a9c815b790208f803f9c3004012f915aa (patch)
treefe758f78af24e62ae46c7cea5635c327a686417b /php-pecl-handlebars.spec
parent891ab871d45830ba62f3b0988790f6786a0a1c1f (diff)
add patch for PHP 7.3 from https://github.com/jbboehr/php-handlebars/pull/53
Diffstat (limited to 'php-pecl-handlebars.spec')
-rw-r--r--php-pecl-handlebars.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-pecl-handlebars.spec b/php-pecl-handlebars.spec
index 721d84c..db2673a 100644
--- a/php-pecl-handlebars.spec
+++ b/php-pecl-handlebars.spec
@@ -27,11 +27,14 @@
Summary: Handlebars templating language
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Patch0: https://patch-diff.githubusercontent.com/raw/jbboehr/php-handlebars/pull/53.patch
+
+BuildRequires: %{?dtsprefix}gcc
# package.xml state 5.6, but upstream is ok with ignoring it
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
@@ -109,6 +112,7 @@ mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
cd NTS
+%patch0 -p1 -b .pr53
# Sanity check, really often broken
extver=$(sed -n '/PHP_HANDLEBARS_VERSION/{s/.* "//;s/".*$//;p}' php_handlebars.h)
@@ -272,6 +276,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Jun 26 2018 Remi Collet <remi@remirepo.net> - 0.8.2-2
+- add patch for PHP 7.3 from
+ https://github.com/jbboehr/php-handlebars/pull/53
+
* Tue Mar 6 2018 Remi Collet <remi@remirepo.net> - 0.8.2-1
- update to 0.8.2 (stable)
- add optional dependency on psr extension