diff options
Diffstat (limited to 'php-league-container4.spec')
-rw-r--r-- | php-league-container4.spec | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/php-league-container4.spec b/php-league-container4.spec index cf81ec1..96d6b3d 100644 --- a/php-league-container4.spec +++ b/php-league-container4.spec @@ -11,8 +11,8 @@ %global github_owner thephpleague %global github_name container -%global github_version 4.1.2 -%global github_commit 82a57588c630663d2600f046753b23ab6dcda9b5 +%global github_version 4.2.0 +%global github_commit 375d13cb828649599ef5d48a339c4af7a26cd0ab %global major 4 @@ -21,8 +21,8 @@ # "php": "^7.2 || ^8.0" %global php_min_ver 7.2 -# "psr/container": "^2.0.0" -%global psr_container_min_ver 2.0.0 +# "psr/container": "^1.1 || ^2.0" +%global psr_container_min_ver 1.1 %global psr_container_max_ver 3 # Build using "--without tests" to disable tests @@ -108,7 +108,10 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('League\\Container\\', __DIR__); \Fedora\Autoloader\Dependencies::required([ - '%{phpdir}/Psr/Container2/autoload.php', + [ + '%{phpdir}/Psr/Container2/autoload.php', + '%{phpdir}/Psr/Container/autoload.php', + ] ]); AUTOLOAD @@ -135,7 +138,7 @@ sed -e '/log/d' -i phpunit.xml RETURN_CODE=0 # TODO PHP 8.1, Call to undefined method ReflectionUnionType::getName() PHPUNIT=$(which phpunit8) -for PHP_EXEC in php php73 php74 php80 php81; do +for PHP_EXEC in php php74 php80 php81; do if which $PHP_EXEC; then FILTER="" VER=$($PHP_EXEC -r 'echo PHP_VERSION_ID;') @@ -166,6 +169,10 @@ exit $RETURN_CODE %changelog +* Tue Nov 16 2021 Remi Collet <remi@remirepo.net> - 4.2.0-1 +- update to 4.2.0 +- allow psr/container 1.1 + * Fri Jul 9 2021 Remi Collet <remi@remirepo.net> - 3.4.1-1 - update to 4.1.2 - rename to php-league-container4 |