From 83c79712492441dab371a35c86f751d42c91f59e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 6 Jul 2018 13:27:16 +0200 Subject: add patch for PHP 7.3 from https://github.com/google/protobuf/pull/4873 --- php-pecl-protobuf.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'php-pecl-protobuf.spec') diff --git a/php-pecl-protobuf.spec b/php-pecl-protobuf.spec index 27d0767..40da3a8 100644 --- a/php-pecl-protobuf.spec +++ b/php-pecl-protobuf.spec @@ -26,12 +26,14 @@ Summary: Mechanism for serializing structured data Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 3.6.0 -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 Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: https://patch-diff.githubusercontent.com/raw/google/protobuf/pull/4873.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 5.5.9 BuildRequires: %{?scl_prefix}php-pear @@ -97,6 +99,8 @@ sed -e 's/role="test"/role="src"/' \ cd NTS +%patch0 -p5 -b .pr4873 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_PROTOBUF_VERSION/{s/.* "//;s/".*$//;p}' protobuf.h) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -213,6 +217,10 @@ fi %changelog +* Fri Jul 6 2018 Remi Collet - 3.6.0-2 +- add patch for PHP 7.3 from + https://github.com/google/protobuf/pull/4873 + * Thu Jun 7 2018 Remi Collet - 3.6.0-1 - update to 3.6.0 -- cgit