Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a88e3858f | ||
|
|
4021c8e614 | ||
|
|
fad6402ad7 | ||
|
|
bf24b186fa | ||
|
|
5bf37f7273 | ||
|
|
319dd3dd6c | ||
|
|
1759d7ab0a | ||
|
|
152ed850a3 |
3 changed files with 49 additions and 12 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -4,3 +4,11 @@ clog
|
||||||
/php-nikic-php-parser4-4.4.0-bd43ec7.tgz
|
/php-nikic-php-parser4-4.4.0-bd43ec7.tgz
|
||||||
/php-nikic-php-parser4-4.5.0-53c2753.tgz
|
/php-nikic-php-parser4-4.5.0-53c2753.tgz
|
||||||
/php-nikic-php-parser4-4.6.0-c346bbf.tgz
|
/php-nikic-php-parser4-4.6.0-c346bbf.tgz
|
||||||
|
/php-nikic-php-parser4-4.8.0-8c58eb4.tgz
|
||||||
|
/php-nikic-php-parser4-4.9.0-aaee038.tgz
|
||||||
|
/php-nikic-php-parser4-4.9.1-88e5197.tgz
|
||||||
|
/php-nikic-php-parser4-4.10.0-1c13d05.tgz
|
||||||
|
/php-nikic-php-parser4-4.10.1-1b479e7.tgz
|
||||||
|
/php-nikic-php-parser4-4.10.2-658f1be.tgz
|
||||||
|
/php-nikic-php-parser4-4.10.3-dbe56d2.tgz
|
||||||
|
/php-nikic-php-parser4-4.10.4-c6d052f.tgz
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
# For compatibility with SCL
|
# For compatibility with SCL
|
||||||
%undefine __brp_mangle_shebangs
|
%undefine __brp_mangle_shebangs
|
||||||
|
|
||||||
%global gh_commit c346bbfafe2ff60680258b631afb730d186ed864
|
%global gh_commit c6d052fc58cb876152f89f532b95a8d7907e7f0e
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||||
%global gh_owner nikic
|
%global gh_owner nikic
|
||||||
%global gh_project PHP-Parser
|
%global gh_project PHP-Parser
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
%global major 4
|
%global major 4
|
||||||
|
|
||||||
Name: php-%{gh_owner}-%{pk_project}%{major}
|
Name: php-%{gh_owner}-%{pk_project}%{major}
|
||||||
Version: 4.6.0
|
Version: 4.10.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A PHP parser written in PHP - version %{major}
|
Summary: A PHP parser written in PHP - version %{major}
|
||||||
|
|
||||||
|
|
@ -45,8 +45,8 @@ BuildRequires: php-json
|
||||||
BuildRequires: php-pcre
|
BuildRequires: php-pcre
|
||||||
BuildRequires: php-spl
|
BuildRequires: php-spl
|
||||||
# From composer.json, "require-dev": {
|
# From composer.json, "require-dev": {
|
||||||
# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0",
|
# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0",
|
||||||
# "ircmaxell/php-yacc": "0.0.5"
|
# "ircmaxell/php-yacc": "0.0.7"
|
||||||
%global phpunit %{_bindir}/phpunit8
|
%global phpunit %{_bindir}/phpunit8
|
||||||
BuildRequires: phpunit8
|
BuildRequires: phpunit8
|
||||||
# Autoloader
|
# Autoloader
|
||||||
|
|
@ -89,7 +89,7 @@ Autoloader: %{php_home}/%{ns_project}%{major}/autoload.php
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
: Generate an simple PSR-4 autoloader
|
: Generate an simple classmap autoloader
|
||||||
phpab --template fedora \
|
phpab --template fedora \
|
||||||
--output lib/%{ns_project}/autoload.php \
|
--output lib/%{ns_project}/autoload.php \
|
||||||
lib/%{ns_project}
|
lib/%{ns_project}
|
||||||
|
|
@ -115,19 +115,24 @@ php bin/php-parse-test --help
|
||||||
mkdir vendor
|
mkdir vendor
|
||||||
cat << 'AUTOLOAD' | tee vendor/autoload.php
|
cat << 'AUTOLOAD' | tee vendor/autoload.php
|
||||||
<?php
|
<?php
|
||||||
require_once '%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php';
|
|
||||||
\Fedora\Autoloader\Autoload::addPsr4('%{ns_project}\\', dirname(__DIR__).'/test/PhpParser/');
|
\Fedora\Autoloader\Autoload::addPsr4('%{ns_project}\\', dirname(__DIR__).'/test/PhpParser/');
|
||||||
AUTOLOAD
|
AUTOLOAD
|
||||||
|
|
||||||
: Upstream test suite
|
: Upstream test suite
|
||||||
# ignore test failing on 32-bit (in koji)
|
BITS=$(php -r 'echo PHP_INT_SIZE;')
|
||||||
|
if [ $BITS -lt 8 ]; then
|
||||||
|
# ignore test failing on 32-bit (in koji)
|
||||||
|
FILTER="--filter '^((?!(testParse|testLexNewFeatures)).)*$'"
|
||||||
|
else
|
||||||
|
FILTER=""
|
||||||
|
fi
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for cmdarg in "php %{phpunit}" "php71 %{_bindir}/phpunit7" php72 php73 php74 php80; do
|
for cmdarg in "php %{phpunit}" "php72%{_bindir}/phpunit8" php73 php74 php80; do
|
||||||
if which $cmdarg; then
|
if which $cmdarg; then
|
||||||
set $cmdarg
|
set $cmdarg
|
||||||
$1 ${2:-%{_bindir}/phpunit8} \
|
$1 -d auto_prepend_file=%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php \
|
||||||
--filter '^((?!(testParse|testLexNewFeatures)).)*$' \
|
${2:-%{_bindir}/phpunit9} $FILTER --verbose || ret=1
|
||||||
--verbose || ret=1
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
@ -145,6 +150,30 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 21 2020 Remi Collet <remi@remirepo.net> - 4.10.4-1
|
||||||
|
- update to 4.10.4
|
||||||
|
|
||||||
|
* Fri Dec 4 2020 Remi Collet <remi@remirepo.net> - 4.10.3-1
|
||||||
|
- update to 4.10.3
|
||||||
|
|
||||||
|
* Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 4.10.2-1
|
||||||
|
- update to 4.10.2
|
||||||
|
|
||||||
|
* Thu Sep 24 2020 Remi Collet <remi@remirepo.net> - 4.10.1-1
|
||||||
|
- update to 4.10.1
|
||||||
|
|
||||||
|
* Sun Sep 20 2020 Remi Collet <remi@remirepo.net> - 4.10.0-1
|
||||||
|
- update to 4.10.0
|
||||||
|
|
||||||
|
* Mon Aug 31 2020 Remi Collet <remi@remirepo.net> - 4.9.1-1
|
||||||
|
- update to 4.9.1
|
||||||
|
|
||||||
|
* Wed Aug 19 2020 Remi Collet <remi@remirepo.net> - 4.9.0-1
|
||||||
|
- update to 4.9.0
|
||||||
|
|
||||||
|
* Mon Aug 10 2020 Remi Collet <remi@remirepo.net> - 4.8.0-1
|
||||||
|
- update to 4.8.0
|
||||||
|
|
||||||
* Fri Jul 3 2020 Remi Collet <remi@remirepo.net> - 4.6.0-1
|
* Fri Jul 3 2020 Remi Collet <remi@remirepo.net> - 4.6.0-1
|
||||||
- update to 4.6.0
|
- update to 4.6.0
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-nikic-php-parser4-4.6.0-c346bbf.tgz) = 0d1f38f254907e6cf26fe9cf1ef58497d768d9782395ee663c5f1f295856b47428d7442fb734553e6e1fe814f97eac61bc6c9159d66427df7c2124486ac80ba7
|
SHA512 (php-nikic-php-parser4-4.10.4-c6d052f.tgz) = dcf22d719c5ff3e7e162a751aeaf18fce97d320e79e1c659a7efe30b2de55ebb4efd06a8bb944985400ef00db5c7cb7a611dfd7a4c95fde4c861af51936b426d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue