Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f930427caf | ||
|
|
d23a87c9c2 | ||
|
|
3cb5e6bd58 | ||
|
|
50eb0b6e07 |
3 changed files with 36 additions and 19 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -19,3 +19,7 @@ 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# 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
|
||||
|
|
@ -10,22 +10,28 @@
|
|||
# For compatibility with SCL
|
||||
%undefine __brp_mangle_shebangs
|
||||
|
||||
%global gh_commit 34bea19b6e03d8153165d8f30bba4c3be86184c1
|
||||
%if 0%{?fedora}
|
||||
%bcond_without tests
|
||||
%else
|
||||
# disabled as phpunit not availble
|
||||
%bcond_with tests
|
||||
%endif
|
||||
|
||||
%global gh_commit 6bb5176bc4af8bcb7d926f88718db9b96a2d4290
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner nikic
|
||||
%global gh_project PHP-Parser
|
||||
%global pk_project php-parser
|
||||
%global php_home %{_datadir}/php
|
||||
%global ns_project PhpParser
|
||||
%global with_tests 0%{!?_without_tests:1}
|
||||
%global major 4
|
||||
|
||||
Name: php-%{gh_owner}-%{pk_project}%{major}
|
||||
Version: 4.14.0
|
||||
Version: 4.15.4
|
||||
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
|
||||
|
|
@ -34,7 +40,7 @@ Source1: makesrc.sh
|
|||
Patch0: %{name}-rpm.patch
|
||||
|
||||
BuildArch: noarch
|
||||
%if %{with_tests}
|
||||
%if %{with tests}
|
||||
# For tests
|
||||
# as we use phpunit9
|
||||
BuildRequires: php(language) >= 7.3
|
||||
|
|
@ -50,8 +56,8 @@ BuildRequires: php-spl
|
|||
%global phpunit %{_bindir}/phpunit9
|
||||
BuildRequires: phpunit9
|
||||
# Autoloader
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
%endif
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
# From composer.json, "require": {
|
||||
# "php": ">=7.0",
|
||||
|
|
@ -72,7 +78,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.
|
||||
|
|
@ -105,7 +111,7 @@ install -Dpm 0755 bin/php-parse %{buildroot}%{_bindir}/php-parse%{major}
|
|||
|
||||
|
||||
%check
|
||||
%if %{with_tests}
|
||||
%if %{with tests}
|
||||
: Test the command
|
||||
sed -e 's:%{php_home}:%{buildroot}%{php_home}:' \
|
||||
bin/php-parse > bin/php-parse-test
|
||||
|
|
@ -119,16 +125,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}" php80 php81 php82; do
|
||||
if which $cmdarg; then
|
||||
set $cmdarg
|
||||
$1 -d include_path=%{php_home} \
|
||||
|
|
@ -151,6 +151,19 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
- only run test suite on Fedora, not on EL
|
||||
|
||||
* Wed Jun 1 2022 Remi Collet <remi@remirepo.net> - 4.14.0-1
|
||||
- update to 4.14.0
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-nikic-php-parser4-4.14.0-34bea19.tgz) = 1b20f8e9989e1b28e17c9513f092b7fced41ce6668349a48e871645451941ce21459649da1d384fdd27adc45d9287b10a09b7a5930cc2f1ceb749bb1a082ee44
|
||||
SHA512 (php-nikic-php-parser4-4.15.4-6bb5176.tgz) = a7793f9097d761a50aef37fc99673cb988596c460bad29be312b005c99dda5e55f93589d52990d942929d6d9f7062c265064748765b6d9e267dc5841b41b0df1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue