summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-02-08 08:16:55 +0100
committerRemi Collet <remi@php.net>2022-02-08 08:16:55 +0100
commitc2062d14cba62f2ac223cd6b0fc494166454d968 (patch)
tree368a8dc25a36a8338b3c365537c0670dcd3ed643
parent73888edb4c13f046fac81ca0c34d6fbf35dc9bff (diff)
update to 2.3.1
-rw-r--r--php-mock2.spec16
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