summaryrefslogtreecommitdiffstats
path: root/php-pecl-yaf.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-28 14:16:55 +0200
committerRemi Collet <remi@remirepo.net>2018-06-28 14:16:55 +0200
commit383eac50adf92c77c6ff29d18429c7e188f77e60 (patch)
tree40cb00699ca3e2c80ccb03719bbffdc361f9baf0 /php-pecl-yaf.spec
parent155752b024527ff9332cba999e0f132ac3ce5b1d (diff)
add upstream patch for PHP 7.3
Diffstat (limited to 'php-pecl-yaf.spec')
-rw-r--r--php-pecl-yaf.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/php-pecl-yaf.spec b/php-pecl-yaf.spec
index f1045f8..2701814 100644
--- a/php-pecl-yaf.spec
+++ b/php-pecl-yaf.spec
@@ -31,13 +31,15 @@ Version: 3.0.7
Release: 0.10.%{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;')}}
Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
%endif
License: PHP
URL: http://pecl.php.net/package/yaf
Source1: %{pecl_name}.ini
+Patch0: https://github.com/laruence/yaf/commit/931dc56c7a53c388c21d679ae10dfe0b245aed32.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7
BuildRequires: %{?scl_prefix}php-pear
@@ -107,6 +109,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .up
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_YAF_VERSION/{s/.*\t"//;s/".*$//;p}' php_yaf.h )
@@ -228,6 +231,9 @@ fi
%changelog
+* Thu Jun 28 2018 Remi Collet <remi@remirepo.net> - 3.0.7-2
+- add upstream patch for PHP 7.3
+
* Thu Mar 22 2018 Remi Collet <remi@remirepo.net> - 3.0.7-1
- update to 3.0.7