diff options
author | Remi Collet <remi@remirepo.net> | 2021-11-24 13:29:17 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-11-24 13:29:17 +0100 |
commit | fb0aa8a825277048ee3a475d01d0b485b7931b97 (patch) | |
tree | a809bd50b422f9e03adc130e9974bac01ed26fb8 | |
parent | 9cfe192bf887d3a16016601078ee780b0f4e1773 (diff) |
add upstream patch to fix test suite with PHP 8.1
-rw-r--r-- | php-brick-varexporter.spec | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/php-brick-varexporter.spec b/php-brick-varexporter.spec index e181117..8a45343 100644 --- a/php-brick-varexporter.spec +++ b/php-brick-varexporter.spec @@ -20,7 +20,7 @@ Name: php-%{pk_vendor}-%{pk_name} Version: 0.3.5 -Release: 1%{?dist} +Release: 3%{?dist} Summary: A powerful alternative to var_export License: MIT @@ -29,6 +29,9 @@ Source0: %{name}-%{version}-%{gh_short}.tgz # Create git snapshot as tests are excluded from official tarball Source1: makesrc.sh +# Upstream patch for PHP 8.1 (test suite) +Patch0: %{name}-tests.patch + BuildArch: noarch BuildRequires: php(language) >= 7.2 @@ -88,6 +91,7 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 -b .up %build @@ -123,7 +127,7 @@ EOF : Run upstream test suite ret=0 -for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do +for cmdarg in "php %{phpunit}" php74 php80 php81; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} \ @@ -144,6 +148,9 @@ exit $ret %changelog +* Wed Nov 24 2021 Remi Collet <remi@remirepo.net> - 0.3.5-3 +- add upstream patch to fix test suite with PHP 8.1 + * Wed Feb 10 2021 Remi Collet <remi@remirepo.net> - 0.3.5-1 - update to 0.3.5 |