From 09db3ea14eb0aa570a62c9f18b128fdfc866ab15 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 1 Jun 2018 07:02:55 +0200 Subject: add patch to fix reflection from https://github.com/viest/php-ext-excel-export/pull/71 --- REFLECTION | 5 ++--- php-pecl-xlswriter.spec | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/REFLECTION b/REFLECTION index abbd322..2369480 100644 --- a/REFLECTION +++ b/REFLECTION @@ -86,7 +86,7 @@ Extension [ extension #169 xlswriter version 1.2.0 ] { - Parameters [2] { Parameter #0 [ $file_name ] - Parameter #1 [ $sheet_name ] + Parameter #1 [ $sheet_name ] } } @@ -99,9 +99,8 @@ Extension [ extension #169 xlswriter version 1.2.0 ] { Method [ public method constMemory ] { - - Parameters [2] { + - Parameters [1] { Parameter #0 [ $file_name ] - Parameter #1 [ $sheet_name ] } } diff --git a/php-pecl-xlswriter.spec b/php-pecl-xlswriter.spec index a6031c0..9fb584f 100644 --- a/php-pecl-xlswriter.spec +++ b/php-pecl-xlswriter.spec @@ -35,6 +35,8 @@ License: BSD URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: 71.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: %{?scl_prefix}php-pear @@ -98,6 +100,7 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 # Sanity check, really often broken extver=$(sed -n '/#define PHP_XLSWRITER_VERSION/{s/.* "//;s/".*$//;p}' php_xls_writer.h) @@ -240,6 +243,8 @@ cd .. %changelog * Fri Jun 1 2018 Remi Collet - 1.2.0-1 - update to 1.2.0 +- add patch to fix reflection from + https://github.com/viest/php-ext-excel-export/pull/71 * Thu May 31 2018 Remi Collet - 1.1.0-1 - update to 1.1.0 -- cgit