summaryrefslogtreecommitdiffstats
path: root/php-pecl-xlswriter.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-xlswriter.spec')
-rw-r--r--php-pecl-xlswriter.spec14
1 files changed, 7 insertions, 7 deletions
diff --git a/php-pecl-xlswriter.spec b/php-pecl-xlswriter.spec
index 07c3b55..cb7bf5a 100644
--- a/php-pecl-xlswriter.spec
+++ b/php-pecl-xlswriter.spec
@@ -28,13 +28,15 @@ Name: %{?scl_prefix}php-pecl-%{pecl_name}
Summary: An efficient and fast xlsx file extension
License: BSD-2-Clause
Version: 2.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
%forgemeta
URL: %{forgeurl}
# use makesrc.sh to create a recursive snapshot
Source0: %{gh_proj}-%{version}.tgz
Source1: makesrc.sh
+Patch0: upstream.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: make
BuildRequires: %{?scl_prefix}php-devel >= 7.0
@@ -89,6 +91,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%forgesetup
+%patch -P0 -p1
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_XLSWRITER_VERSION/{s/.* "//;s/".*$//;p}' php_xlswriter.h)
@@ -156,12 +159,6 @@ OPT="-q -P --show-diff"
%if "%{php_version}" > "7.4"
OPT="$OPT %{?_smp_mflags}"
%endif
-%if "%{php_version}" < "7.1"
-# See https://github.com/viest/php-ext-xlswriter/issues/565
-rm tests/conditional_format.phpt
-rm tests/examples_smoke.phpt
-rm tests/open_xlsx_next_row_with_formula.phpt
-%endif
: Minimal load test for NTS extension
%{__php} --no-php-ini \
@@ -206,6 +203,9 @@ cd ..
%changelog
+* Mon May 18 2026 Remi Collet <remi@remirepo.net> - 2.0.0-2
+- test build with upstream patch
+
* Mon May 18 2026 Remi Collet <remi@remirepo.net> - 2.0.0-1
- update to 2.0.0
- open https://github.com/viest/php-ext-xlswriter/issues/565 test failures with PHP 7.0