diff --git a/.gitignore b/.gitignore index 9fae12e..0ee4aeb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /php-phpstan-phpdoc-parser-1.33.0-82a311f.tgz +/php-phpstan-phpdoc-parser-2.0.0-c00d78f.tgz diff --git a/php-phpstan-phpdoc-parser.spec b/php-phpstan-phpdoc-parser.spec index c1db171..d0ca698 100644 --- a/php-phpstan-phpdoc-parser.spec +++ b/php-phpstan-phpdoc-parser.spec @@ -9,7 +9,7 @@ %bcond_without tests -%global gh_commit 82a311fd3690fb2bf7b64d5c98f912b3dd746140 +%global gh_commit c00d78fb6b29658347f9d37ebe104bffadf36299 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpstan %global gh_project phpdoc-parser @@ -19,8 +19,8 @@ %global major %nil Name: php-%{gh_owner}-%{gh_project}%{major} -Version: 1.33.0 -Release: 2%{?dist} +Version: 2.0.0 +Release: 1%{?dist} Summary: PHPDoc parser with support for nullable, intersection and generic types License: MIT @@ -32,29 +32,29 @@ Source1: makesrc.sh BuildArch: noarch # Tests %if %{with tests} -BuildRequires: php(language) >= 7.2 +BuildRequires: php(language) >= 7.4 BuildRequires: php-json BuildRequires: php-pcre # From composer, "require-dev": { # "doctrine/annotations": "^2.0", -# "nikic/php-parser": "^4.15", +# "nikic/php-parser": "^5.3.0", # "php-parallel-lint/php-parallel-lint": "^1.2", # "phpstan/extension-installer": "^1.0", -# "phpstan/phpstan": "^1.5", -# "phpstan/phpstan-phpunit": "^1.1", -# "phpstan/phpstan-strict-rules": "^1.0", -# "phpunit/phpunit": "^9.5", +# "phpstan/phpstan": "^2.0", +# "phpstan/phpstan-phpunit": "^2.0", +# "phpstan/phpstan-strict-rules": "^2.0", +# "phpunit/phpunit": "^9.6", # "symfony/process": "^5.2" %global phpunit %{_bindir}/phpunit9 -BuildRequires: phpunit9 >= 9.5 +BuildRequires: phpunit9 >= 9.6 %endif -BuildRequires: (php-composer(nikic/php-parser) >= 4.15 with php-composer(nikic/php-parser) < 5) +BuildRequires: (php-composer(nikic/php-parser) >= 5.3 with php-composer(nikic/php-parser) < 6) # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer, "require": { -# "php": "^7.2 || ^8.0" -Requires: php(language) >= 7.2 +# "php": "^7.4 || ^8.0" +Requires: php(language) >= 7.4 # Autoloader Requires: php-composer(fedora/autoloader) # From phpcompatinfo report for version 2.4.2 @@ -88,7 +88,7 @@ mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.0.0-1 +- update to 2.0.0 +- raise dependency on PHP 7.4 +- raise dependency on nikic/php-parser 5.3 + * Tue Dec 17 2024 Remi Collet - 1.33.0-2 - drop abnfgen from archive - re-license spec file to CECILL-2.1 diff --git a/sources b/sources index 396f381..f9a3e3c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-phpstan-phpdoc-parser-1.33.0-82a311f.tgz) = 7a3d145c308ef6ad1ff3665e2711d044490402ecbc3b74418275ed1f613b7cf9f4cba5212fae6f42ae887130e5c820e65fc3a5ce6deffbf0054cf6857312d799 +SHA512 (php-phpstan-phpdoc-parser-2.0.0-c00d78f.tgz) = 6ef71a35ac2c61d140c8544557df4b96a495fc67045bf923db9e331ca24d03fcb0b2d03ce99fc618cf99e4695ccf1923029037340b6fe1d28529940e6bc30d0d