diff options
-rw-r--r-- | composer.json | 8 | ||||
-rw-r--r-- | php-phpunit-php-invoker4.spec | 46 |
2 files changed, 29 insertions, 25 deletions
diff --git a/composer.json b/composer.json index 6c007cd..c3dc5ac 100644 --- a/composer.json +++ b/composer.json @@ -20,17 +20,17 @@ "prefer-stable": true, "config": { "platform": { - "php": "7.3.0" + "php": "8.1.0" }, "optimize-autoloader": true, "sort-packages": true }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "autoload": { "classmap": [ @@ -47,7 +47,7 @@ }, "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "4.0-dev" } } } 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) |