Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Remi Collet
05ca4720b2 v4.18.0
(cherry picked from commit 37063dfa37)
2023-12-11 07:16:08 +01:00
Remi Collet
f17ff26ba1 v4.17.1
(cherry picked from commit 7bc4c0eaf6)
(cherry picked from commit b6595b549a)
2023-08-21 11:53:14 +02:00
Remi Collet
8d427cbea3 v1.16.0
(cherry picked from commit b1dabc4189)
2023-06-26 15:50:45 +02:00
Remi Collet
516df45b53 v4.15.5
(cherry picked from commit dffd60ecf1)
2023-05-24 10:13:42 +02:00
Remi Collet
dc3dd0a9a0 v4.15.4
(cherry picked from commit a42fa489ae)
(cherry picked from commit e0d1587cac)
2023-03-06 10:19:00 +01:00
Remi Collet
a5816602dd v4.15.3
(cherry picked from commit ba5d9443a3)
2023-01-17 09:29:51 +01:00
Remi Collet
7fad1c0bc7 v4.15.2
(cherry picked from commit e1aaa93d1d)
2022-11-14 10:19:30 +01:00
Remi Collet
4a637c1fec v4.15.1
(cherry picked from commit 3ac55d0d06)
2022-09-08 12:28:51 +02:00
3 changed files with 44 additions and 20 deletions

8
.gitignore vendored
View file

@ -19,3 +19,11 @@ clog
/php-nikic-php-parser4-4.13.1-63a79e8.tgz
/php-nikic-php-parser4-4.13.2-210577f.tgz
/php-nikic-php-parser4-4.14.0-34bea19.tgz
/php-nikic-php-parser4-4.15.1-0ef6c55.tgz
/php-nikic-php-parser4-4.15.2-f59bbe4.tgz
/php-nikic-php-parser4-4.15.3-570e980.tgz
/php-nikic-php-parser4-4.15.4-6bb5176.tgz
/php-nikic-php-parser4-4.15.5-11e2663.tgz
/php-nikic-php-parser4-4.16.0-19526a3.tgz
/php-nikic-php-parser4-4.17.1-a6303e5.tgz
/php-nikic-php-parser4-4.18.0-1bcbb21.tgz

View file

@ -1,23 +1,21 @@
# remirepo/fedora spec file for php-nikic-php-parser4
#
# Copyright (c) 2016-2022 Remi Collet
# License: CC-BY-SA
# Copyright (c) 2016-2023 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
# For compatibility with SCL
%undefine __brp_mangle_shebangs
%if 0%{?fedora}
%bcond_without tests
%else
# disables as phpunit not availble
# disabled as phpunit not availble
%bcond_with tests
%endif
%global gh_commit 34bea19b6e03d8153165d8f30bba4c3be86184c1
%global gh_commit 1bcbb2179f97633e98bbbc87044ee2611c7d7999
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner nikic
%global gh_project PHP-Parser
@ -27,11 +25,11 @@
%global major 4
Name: php-%{gh_owner}-%{pk_project}%{major}
Version: 4.14.0
Release: 2%{?dist}
Version: 4.18.0
Release: 1%{?dist}
Summary: A PHP parser written in PHP - version %{major}
License: BSD
License: BSD-3-Clause
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
@ -78,7 +76,7 @@ Provides: php-composer(%{gh_owner}/%{pk_project}) = %{version}
%description
This is a PHP 5.2 to PHP 7.4 parser written in PHP.
This is a PHP parser written in PHP.
Its purpose is to simplify static code analysis and manipulation.
This package provides the library version %{major} and the php-parse%{major} command.
@ -91,7 +89,7 @@ Autoloader: %{php_home}/%{ns_project}%{major}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
%patch0 -p1 -b .rpm
%patch -P0 -p1 -b .rpm
%build
@ -125,16 +123,10 @@ cat << 'AUTOLOAD' | tee vendor/autoload.php
AUTOLOAD
: Upstream test suite
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
FILTER="--filter '^((?!(testLexNewFeatures)).)*$'"
ret=0
for cmdarg in "php %{phpunit}" php74 php80 php81 php82; do
for cmdarg in "php %{phpunit}" php81 php82 php83; do
if which $cmdarg; then
set $cmdarg
$1 -d include_path=%{php_home} \
@ -157,6 +149,30 @@ exit $ret
%changelog
* Mon Dec 11 2023 Remi Collet <remi@remirepo.net> - 4.18.0-1
- update to 4.18.0
* Fri Aug 18 2023 Remi Collet <remi@remirepo.net> - 4.17.1-1
- update to 4.17.1
* Mon Jun 26 2023 Remi Collet <remi@remirepo.net> - 4.16.0-1
- update to 4.16.0
* Wed May 24 2023 Remi Collet <remi@remirepo.net> - 4.15.5-1
- update to 4.15.5
* Mon Mar 6 2023 Remi Collet <remi@remirepo.net> - 4.15.4-1
- update to 4.15.4
* Tue Jan 17 2023 Remi Collet <remi@remirepo.net> - 4.15.3-1
- update to 4.15.3
* Mon Nov 14 2022 Remi Collet <remi@remirepo.net> - 4.15.2-1
- update to 4.15.2
* Thu Sep 8 2022 Remi Collet <remi@remirepo.net> - 4.15.1-1
- update to 4.15.1
* Mon Jun 13 2022 Remi Collet <remi@remirepo.net> - 4.14.0-2
- only run test suite on Fedora, not on EL

View file

@ -1 +1 @@
SHA512 (php-nikic-php-parser4-4.14.0-34bea19.tgz) = 1b20f8e9989e1b28e17c9513f092b7fced41ce6668349a48e871645451941ce21459649da1d384fdd27adc45d9287b10a09b7a5930cc2f1ceb749bb1a082ee44
SHA512 (php-nikic-php-parser4-4.18.0-1bcbb21.tgz) = ec4682a2fc9075895c2fbc9a17ed6de0e9580c11277176014bd5a8c1c414cc271f5e24ef34650e671e851860ac316ede72b4f62ad61955fb7fc6da56fdd86134