diff options
Diffstat (limited to 'php-mock2.spec')
-rw-r--r-- | php-mock2.spec | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/php-mock2.spec b/php-mock2.spec index ab474e3..fd79de9 100644 --- a/php-mock2.spec +++ b/php-mock2.spec @@ -1,12 +1,12 @@ # remirepo/fedora spec file for php-mock2 # -# Copyright (c) 2016-2020 Remi Collet +# Copyright (c) 2016-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit a3142f257153b71c09bf9146ecf73430b3818b7c +%global gh_commit 9a55bd8ba40e6da2e97a866121d2c69dedd4952b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner php-mock %global gh_project php-mock @@ -14,7 +14,7 @@ %global major 2 Name: php-mock%{major} -Version: 2.3.0 +Version: 2.3.1 Release: 1%{?dist} Summary: PHP-Mock can mock built-in PHP functions @@ -31,13 +31,8 @@ BuildRequires: php(language) >= 5.6 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(phpunit/php-text-template) >= 1 with php-composer(phpunit/php-text-template) < 3) -%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 BuildRequires: phpunit9 %global phpunit %{_bindir}/phpunit9 -%else -BuildRequires: phpunit8 -%global phpunit %{_bindir}/phpunit8 -%endif # remirepo:5 %else BuildRequires: php-phpunit-Text-Template @@ -134,7 +129,7 @@ cp -pr rpm/tests %{buildroot}%{_datadir}/tests ret=0 # testDefiningAfterCallingUnqualified and testEnable may fail locally (ok in mock) -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} \ @@ -159,6 +154,9 @@ exit $ret %changelog +* Tue Feb 8 2022 Remi Collet <remi@remirepo.net> - 2.3.1-1 +- update to 2.3.1 + * Mon Dec 14 2020 Remi Collet <remi@remirepo.net> - 2.3.0-1 - update to 2.3.0 - switch to phpunit9 |