From 082108d4c8055b0652b209e330748eb3f1364424 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 29 Apr 2020 10:33:52 +0200 Subject: update to 5.2.2 fix test suite for PHP 7.4 using patch from https://github.com/llaville/php-compat-info/pull/261 --- php-bartlett-PHP-CompatInfo.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'php-bartlett-PHP-CompatInfo.spec') diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 4325ee6..5ccfaa0 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -11,7 +11,7 @@ %undefine __brp_mangle_shebangs %{!?php_version: %global php_version %(php -r 'echo PHP_VERSION;' 2>/dev/null)} -%global gh_commit 287d879f1b85f49faffdca89088a6b7bffb535d9 +%global gh_commit de5add0eae4774e5832259ebef3f6223ca23a5e1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20151005 %global gh_owner llaville @@ -26,7 +26,7 @@ %endif Name: php-bartlett-PHP-CompatInfo -Version: 5.2.1 +Version: 5.2.2 %global specrel 1 Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -42,7 +42,9 @@ Source1: fedora-review-check Source2: %{name}-5.1.0-autoload.php # Autoload and sqlite database path -Patch0: %{name}-5.2.1-rpm.patch +Patch0: %{name}-5.2.2-rpm.patch + +Patch1: https://patch-diff.githubusercontent.com/raw/llaville/php-compat-info/pull/261.patch BuildArch: noarch BuildRequires: php(language) >= 5.5 @@ -150,7 +152,7 @@ Documentation: http://php5.laurent-laville.org/compatinfo/manual/current/en/ %prep %setup -q -n %{gh_project}-%{gh_commit} -#setup -q -n %{gh_project}-%{version} +%patch1 -p1 %patch0 -p1 -b .rpm cp %{SOURCE2} src/Bartlett/CompatInfo/autoload.php @@ -185,7 +187,7 @@ ln -s %{buildroot}%{_datadir}/php/Bartlett/CompatInfo/autoload.php vendor/ ret=0 -for cmdarg in "php %{phpunit}" "php70 %{_bindir}/phpunit" php71 php72 php73 php74; do +for cmdarg in "php %{phpunit}" php72 php73 php74 php80; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit7} \ @@ -216,6 +218,11 @@ fi %changelog +* Wed Apr 29 2020 Remi Collet - 5.2.2-1 +- update to 5.2.2 +- fix test suite for PHP 7.4 using patch from + https://github.com/llaville/php-compat-info/pull/261 + * Tue Oct 22 2019 Remi Collet - 5.2.1-1 - update to 5.2.1 (no change) -- cgit