From 1d2513a621aa24ebb993657b84cd7775715eb4f4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Feb 2025 07:38:56 +0100 Subject: update to 6.0.0 raise dependency on PHP 8.3 rename to php-phpunit-php-invoker6 move to /usr/share/php/SebastianBergmann/Invoker6 --- composer.json | 8 ++++---- php-phpunit-php-invoker6.spec | 38 +++++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/composer.json b/composer.json index cbe9e8e..b5bd9b8 100644 --- a/composer.json +++ b/composer.json @@ -21,17 +21,17 @@ "prefer-stable": true, "config": { "platform": { - "php": "8.2.0" + "php": "8.3.0" }, "optimize-autoloader": true, "sort-packages": true }, "require": { - "php": ">=8.2" + "php": ">=8.3" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^12.0" }, "autoload": { "classmap": [ @@ -48,7 +48,7 @@ }, "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } } } diff --git a/php-phpunit-php-invoker6.spec b/php-phpunit-php-invoker6.spec index 35251c6..397fd16 100644 --- a/php-phpunit-php-invoker6.spec +++ b/php-phpunit-php-invoker6.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-phpunit-php-invoker5 +# remirepo/fedora spec file for php-phpunit-php-invoker6 # # SPDX-FileCopyrightText: Copyright 2011-2025 Remi Collet # SPDX-License-Identifier: CECILL-2.1 @@ -7,26 +7,26 @@ # Please, preserve the changelog entries # -# disabled until phpunit11 available -%bcond_without tests +# disabled until phpunit12 available +%bcond_with tests -%global gh_commit c1ca3814734c07492b3d4c5f794f4b0995333da2 +%global gh_commit 12b54e689b07a25a9b41e57736dfab6ec9ae5406 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project php-invoker -%global gh_date 2024-07-03 +%global gh_date 2025-02-07 %global php_home %{_datadir}/php # Packagist %global pk_vendor phpunit %global pk_project %{gh_project} -%global major 5 +%global major 6 # Namespace %global ns_vendor SebastianBergmann %global ns_project Invoker Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 5.0.1 -Release: 2%{?dist} +Version: 6.0.0 +Release: 1%{?dist} Summary: Invoke callables with a timeout, version %{major} License: BSD-3-Clause @@ -36,23 +36,21 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -BuildRequires: php(language) >= 8.2 -BuildRequires: php-spl +BuildRequires: php(language) >= 8.3 BuildRequires: php-fedora-autoloader-devel %if %{with tests} # From composer.json, require-dev # "ext-pcntl": "*" -# "phpunit/phpunit": "^11.0" +# "phpunit/phpunit": "^12.0" BuildRequires: php-pcntl -BuildRequires: phpunit11 +BuildRequires: phpunit12 %endif # From composer.json, require -# "php": ">=8.2", -Requires: php(language) >= 8.2 +# "php": ">=8.3", +Requires: php(language) >= 8.3 # From phpcompatinfo report for version 4.0.0 Requires: php-pcntl -Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) @@ -91,10 +89,10 @@ mkdir vendor : Run upstream test suite ret=0 -for cmd in php php82 php83 php84; do +for cmd in php php83 php84; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit11 || ret=1 + %{_bindir}/phpunit12 || ret=1 fi done exit $ret @@ -110,6 +108,12 @@ exit $ret %changelog +* Fri Feb 7 2025 Remi Collet - 6.0.0-1 +- update to 6.0.0 +- raise dependency on PHP 8.3 +- rename to php-phpunit-php-invoker6 +- move to /usr/share/php/SebastianBergmann/Invoker6 + * Tue Feb 4 2025 Remi Collet - 5.0.1-2 - enable test suite -- cgit