summaryrefslogtreecommitdiffstats
path: root/php-phpunit-php-invoker4.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpunit-php-invoker4.spec')
-rw-r--r--php-phpunit-php-invoker4.spec46
1 files changed, 25 insertions, 21 deletions
diff --git a/php-phpunit-php-invoker4.spec b/php-phpunit-php-invoker4.spec
index a87a83f..45fa8b2 100644
--- a/php-phpunit-php-invoker4.spec
+++ b/php-phpunit-php-invoker4.spec
@@ -1,13 +1,16 @@
-# remirepo/fedora spec file for php-phpunit-php-invoker3
+# remirepo/fedora spec file for php-phpunit-php-invoker4
#
-# Copyright (c) 2011-2020 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2011-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%global bootstrap 0
-%global gh_commit 5a10147d0aaf65b58940a0b72f71c9ac0423cc67
+
+# disabled until phpunit10 available
+%bcond_with tests
+
+%global gh_commit f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project php-invoker
@@ -15,19 +18,13 @@
# Packagist
%global pk_vendor phpunit
%global pk_project %{gh_project}
-%global major 3
+%global major 4
# Namespace
%global ns_vendor SebastianBergmann
%global ns_project Invoker
-%if %{bootstrap}
-%bcond_with tests
-%else
-%bcond_without tests
-%endif
-
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 3.1.1
+Version: 4.0.0
Release: 1%{?dist}
Summary: Invoke callables with a timeout, version %{major}
@@ -37,20 +34,21 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
BuildArch: noarch
-BuildRequires: php(language) >= 7.3
+BuildRequires: php(language) >= 8.1
+Requires: php-spl
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# From composer.json, require-dev
# "ext-pcntl": "*"
-# "phpunit/phpunit": "^9.3"
+# "phpunit/phpunit": "^10.0"
BuildRequires: php-pcntl
-BuildRequires: phpunit9 >= 9.3
+BuildRequires: phpunit10
%endif
# From composer.json, require
-# "php": ">=7.3",
-Requires: php(language) >= 7.3
-# From phpcompatinfo report for version 3.0.0
+# "php": ">=8.1",
+Requires: php(language) >= 8.1
+# From phpcompatinfo report for version 4.0.0
Requires: php-pcntl
Requires: php-spl
# Autoloader
@@ -89,10 +87,10 @@ mkdir vendor
: Run upstream test suite
ret=0
-for cmd in php php73 php74 php80; do
+for cmd in php php81 php82; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
- %{_bindir}/phpunit9 --verbose || ret=1
+ %{_bindir}/phpunit10 --verbose || ret=1
fi
done
exit $ret
@@ -110,6 +108,12 @@ exit $ret
%changelog
+* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 4.0.0-1
+- update to 4.0.0
+- raise dependency on PHP 8.1
+- rename to php-phpunit-php-invoker4
+- move to /usr/share/php/SebastianBergmann/Invoker4
+
* Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 3.1.1-1
- update to 3.1.1 (no change)