summaryrefslogtreecommitdiffstats
path: root/php-phpstan-phpdoc-parser.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpstan-phpdoc-parser.spec')
-rw-r--r--php-phpstan-phpdoc-parser.spec35
1 files changed, 20 insertions, 15 deletions
diff --git a/php-phpstan-phpdoc-parser.spec b/php-phpstan-phpdoc-parser.spec
index 2f4e744..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,42 +19,42 @@
%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
URL: https://github.com/%{gh_owner}/%{gh_project}
# git snapshot to retrieve test suite
-Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
+Source0: %{name}-%{version}-%{gh_short}.tgz
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
<?php
// to avoid v5 from PHPUnit
-require_once '%{php_home}/PhpParser4/autoload.php';
+require_once '%{php_home}/PhpParser5/autoload.php';
require_once '%{buildroot}%{php_home}/%{namespace}/%{library}%{major}/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('%{namespace}\\%{library}\\', dirname(__DIR__) . '/tests/%{namespace}');
EOF
@@ -127,6 +127,11 @@ exit $ret
%changelog
+* Mon Dec 23 2024 Remi Collet <remi@remirepo.net> - 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 <remi@remirepo.net> - 1.33.0-2
- drop abnfgen from archive
- re-license spec file to CECILL-2.1