diff options
| -rw-r--r-- | composer.json | 8 | ||||
| -rw-r--r-- | php-phpunit-php-file-iterator6.spec | 38 | 
2 files changed, 24 insertions, 22 deletions
diff --git a/composer.json b/composer.json index 525526d..528f298 100644 --- a/composer.json +++ b/composer.json @@ -21,17 +21,17 @@      },      "config": {          "platform": { -            "php": "8.2.0" +            "php": "8.3.0"          },          "optimize-autoloader": true,          "sort-packages": true      },      "prefer-stable": true,      "require": { -        "php": ">=8.2" +        "php": ">=8.3"      },      "require-dev": { -        "phpunit/phpunit": "^11.0" +        "phpunit/phpunit": "^12.0"      },      "autoload": {          "classmap": [ @@ -40,7 +40,7 @@      },      "extra": {          "branch-alias": { -            "dev-main": "5.0-dev" +            "dev-main": "6.0-dev"          }      }  } diff --git a/php-phpunit-php-file-iterator6.spec b/php-phpunit-php-file-iterator6.spec index 4209073..3f17c4c 100644 --- a/php-phpunit-php-file-iterator6.spec +++ b/php-phpunit-php-file-iterator6.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for php-phpunit-php-file-iterator5 +# remirepo/fedora spec file for php-phpunit-php-file-iterator6  #  # Copyright (c) 2009-2025 Christof Damian, Remi Collet  # @@ -8,26 +8,26 @@  # Please, preserve the changelog entries  # -# disabled until phpunit11 available -%bcond_without       tests +# disabled until phpunit12 available +%bcond_with          tests -%global gh_commit    118cfaaa8bc5aef3287bf315b6060b1174754af6 +%global gh_commit    961bc913d42fe24a257bfff826a5068079ac7782  %global gh_short     %(c=%{gh_commit}; echo ${c:0:7})  %global gh_owner     sebastianbergmann  %global gh_project   php-file-iterator -%global gh_date      2024-08-27 +%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   FileIterator  Name:           php-%{pk_vendor}-%{pk_project}%{major} -Version:        5.1.0 +Version:        6.0.0  Release:        1%{?dist}  Summary:        FilterIterator implementation based on a list of suffixes, version %{major} @@ -38,22 +38,18 @@ Source0:        %{name}-%{version}-%{gh_short}.tgz  Source1:        makesrc.sh  BuildArch:      noarch -BuildRequires:  php(language) >= 8.2 -BuildRequires:  php-pcre -BuildRequires:  php-spl +BuildRequires:  php(language) >= 8.3  %if %{with tests}  # From composer.json, "require-dev" -#        "phpunit/phpunit": "^11.0" -BuildRequires:  phpunit11 +#        "phpunit/phpunit": "^12.0" +BuildRequires:  phpunit12  %endif  BuildRequires:  php-fedora-autoloader-devel  # From composer.json, "require" -#        "php": ">=8.2" -Requires:       php(language) >= 8.2 +#        "php": ">=8.3" +Requires:       php(language) >= 8.3  # From phpcompatinfo report for 4.0.0 -Requires:       php-pcre -Requires:       php-spl  # Autoloader  Requires:       php-composer(fedora/autoloader) @@ -91,10 +87,10 @@ touch vendor/autoload.php  : 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 @@ -111,6 +107,12 @@ exit $ret  %changelog +* Fri Feb  7 2025 Remi Collet <remi@remirepo.net> - 6.0.0-1 +- update to 6.0.0 +- raise dependency on PHP 8.3 +- rename to php-phpunit-php-file-iterator6 +- move to /usr/share/php/SebastianBergmann/FileIterator6 +  * Tue Feb  4 2025 Remi Collet <remi@remirepo.net> - 5.1.0-2  - enable test suite  | 
