From 7978dfd89a6be1ce65e8a9a3e56bfb4d4ef8b925 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Sep 2022 14:29:18 +0200 Subject: update to 3.0.4 --- composer.json | 4 ++-- php-sebastian-comparator3.spec | 22 ++++++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index e0658bc..00dfc29 100644 --- a/composer.json +++ b/composer.json @@ -24,12 +24,12 @@ ], "prefer-stable": true, "require": { - "php": "^7.1", + "php": ">=7.1", "sebastian/diff": "^3.0", "sebastian/exporter": "^3.1" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^8.5" }, "config": { "optimize-autoloader": true, diff --git a/php-sebastian-comparator3.spec b/php-sebastian-comparator3.spec index b2ccc37..8603d68 100644 --- a/php-sebastian-comparator3.spec +++ b/php-sebastian-comparator3.spec @@ -7,7 +7,7 @@ # Please, preserve the changelog entries # %global bootstrap 0 -%global gh_commit 5de4fc177adf9bce8df98d8d141a7559d7ccf6da +%global gh_commit c05dd1878ec74058a28a569c59fc5c53a8cc1c7a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project comparator @@ -24,11 +24,10 @@ %endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 3.0.2 +Version: 3.0.4 Release: 1%{?dist} Summary: Compare PHP values for equality -Group: Development/Libraries License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz @@ -47,12 +46,12 @@ BuildRequires: php-sebastian-exporter3 >= 3.1 BuildRequires: php-fedora-autoloader-devel %if %{with_tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^7.1" -BuildRequires: phpunit7 >= 7.1 +# "phpunit/phpunit": "^8.5" +BuildRequires: phpunit8 >= 8.5 %endif # from composer.json -# "php": "^7.1", +# "php": ">=7.1", # "sebastian/diff": "^3.0", # "sebastian/exporter": "^3.1" Requires: php(language) >= 7.1 @@ -111,10 +110,10 @@ mkdir vendor : Run upstream test suite ret=0 -for cmd in php php71 php72 php73; do +for cmd in php php74 php80 php81 php82; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit7 --no-coverage --verbose || ret=1 + %{_bindir}/phpunit8 --no-coverage --verbose || ret=1 fi done exit $ret @@ -132,6 +131,13 @@ exit $ret %changelog +* Wed Sep 14 2022 Remi Collet - 3.0.4-1 +- update to 3.0.4 + +* Mon Nov 30 2020 Remi Collet - 3.0.3-1 +- update to 3.0.3 (no change) +- switch to phpunit8 + * Thu Jul 12 2018 Remi Collet - 3.0.2-1 - update to 3.0.2 -- cgit