diff options
-rw-r--r-- | composer.json | 9 | ||||
-rw-r--r-- | php-react-async.spec | 22 |
2 files changed, 20 insertions, 11 deletions
diff --git a/composer.json b/composer.json index 0be4bf5..8bdcd35 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "react/async", - "description": "Async utilities for ReactPHP", + "description": "Async utilities and fibers for ReactPHP", "keywords": ["async", "ReactPHP"], "license": "MIT", "authors": [ @@ -26,14 +26,17 @@ } ], "require": { - "php": ">=7.1", + "php": ">=8.1", "react/event-loop": "^1.2", "react/promise": "^3.0 || ^2.8 || ^1.2.1" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^7.5" + "phpunit/phpunit": "^9.3" }, "autoload": { + "psr-4": { + "React\\Async\\": "src/" + }, "files": [ "src/functions_include.php" ] diff --git a/php-react-async.spec b/php-react-async.spec index fe99883..0072ca7 100644 --- a/php-react-async.spec +++ b/php-react-async.spec @@ -10,8 +10,8 @@ %global github_owner reactphp %global github_name async -%global github_version 3.0.0 -%global github_commit 3c3b812be77aec14bf8300b052ba589c9a5bc95b +%global github_version 4.0.0 +%global github_commit 2aa8d89057e1059f59666e4204100636249b7be0 %global composer_vendor react %global composer_project async @@ -19,8 +19,8 @@ %global ns_vendor React %global ns_project Async -# "php": ">=7.1" -%global php_min_ver 7.1 +# "php": ">=8.1" +%global php_min_ver 8.1 # "react/event-loop": "^1.2", %global react_event_loop_min_ver 1.2 %global react_event_loop_max_ver 2 @@ -114,9 +114,11 @@ Autoloader: %{phpdir}/%{ns_vendor}/%{ns_project}/autoload.php %build : Create autoloader -cat <<'AUTOLOAD' | tee src/autoload.php -<?php -require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; +phpab --template fedora \ + --output src/autoload.php \ + src + +cat <<'AUTOLOAD' | tee -a src/autoload.php \Fedora\Autoloader\Dependencies::required(array( __DIR__ . '/functions_include.php', @@ -142,7 +144,7 @@ BOOTSTRAP : Upstream tests RETURN_CODE=0 -for PHP_EXEC in php php80 php81 php82; do +for PHP_EXEC in php php81 php82; do if which $PHP_EXEC; then $PHP_EXEC %{_bindir}/phpunit9 --verbose --bootstrap bootstrap.php \ || RETURN_CODE=1 @@ -163,5 +165,9 @@ exit $RETURN_CODE %changelog +* Fri Sep 23 2022 Remi Collet <remi@remirepo.net> - 4.0.0-1 +- update to 4.0.0 +- raise dependency on PHP 8.1 + * Fri Sep 23 2022 Remi Collet <remi@remirepo.net> - 3.0.0-1 - Initial package |