summaryrefslogtreecommitdiffstats
path: root/php-pecl-yar.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-yar.spec')
-rw-r--r--php-pecl-yar.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/php-pecl-yar.spec b/php-pecl-yar.spec
index b202b97..bfc4561 100644
--- a/php-pecl-yar.spec
+++ b/php-pecl-yar.spec
@@ -34,13 +34,15 @@ Version: 2.0.2
Release: 0.11.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
%else
-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;')}}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
%endif
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
+Patch0: 106.patch
+
BuildRequires: curl-devel
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?scl_prefix}php-pear
@@ -116,6 +118,7 @@ sed -e 's/role="test"/role="src"/' \
-i package2.xml
cd NTS
+%patch0 -p1 -b .pr106
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_YAR_VERSION/{s/.* "//;s/".*$//;p}' php_yar.h)
@@ -275,6 +278,10 @@ export YAR_API_PORT=8964
%changelog
+* Mon Jun 26 2017 Remi Collet <remi@remirepo.net> - 2.0.2-2
+- add upstream patch for PHP 7.2 from
+ https://github.com/laruence/yar/pull/106
+
* Wed Mar 15 2017 Remi Collet <remi@remirepo.net> - 2.0.2-1
- Update to 2.0.2