update to 2.0.0
raise dependency on PHP 7.4 raise dependency on nikic/php-parser 5.3
This commit is contained in:
parent
a48ae6c663
commit
78903ad1ed
3 changed files with 21 additions and 15 deletions
|
|
@ -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
|
||||
<?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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue