update to 4.2.5
sources from git snapshot
This commit is contained in:
parent
6cbba4df10
commit
fa7b637b9e
4 changed files with 43 additions and 18 deletions
|
|
@ -10,7 +10,7 @@
|
|||
# For compatibility with SCL
|
||||
%undefine __brp_mangle_shebangs
|
||||
|
||||
%global gh_commit 97e59c7a16464196a8b9c77c47df68e4a39a45c4
|
||||
%global gh_commit b76bbc3c51f22c570648de48e8c2d941ed5e2cf2
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner nikic
|
||||
%global gh_project PHP-Parser
|
||||
|
|
@ -21,13 +21,14 @@
|
|||
%global major 4
|
||||
|
||||
Name: php-%{gh_owner}-%{pk_project}%{major}
|
||||
Version: 4.2.4
|
||||
Version: 4.2.5
|
||||
Release: 1%{?dist}
|
||||
Summary: A PHP parser written in PHP - version %{major}
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
Source: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
|
||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||
Source1: makesrc.sh
|
||||
|
||||
# Autoloader
|
||||
Patch0: %{name}-rpm.patch
|
||||
|
|
@ -43,7 +44,8 @@ BuildRequires: php-json
|
|||
BuildRequires: php-pcre
|
||||
BuildRequires: php-spl
|
||||
# From composer.json, "require-dev": {
|
||||
# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0"
|
||||
# "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0",
|
||||
# "ircmaxell/php-yacc": "0.0.4"
|
||||
%global phpunit %{_bindir}/phpunit8
|
||||
BuildRequires: phpunit8
|
||||
# Autoloader
|
||||
|
|
@ -69,7 +71,7 @@ Provides: php-composer(%{gh_owner}/%{pk_project}) = %{version}
|
|||
|
||||
|
||||
%description
|
||||
This is a PHP 5.2 to PHP 7.2 parser written in PHP.
|
||||
This is a PHP 5.2 to PHP 7.4 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.
|
||||
|
|
@ -121,6 +123,7 @@ require_once '%{buildroot}/%{php_home}/%{ns_project}%{major}/autoload.php';
|
|||
AUTOLOAD
|
||||
|
||||
: Upstream test suite
|
||||
# ignore test failing on 32-bit (in koji)
|
||||
ret=0
|
||||
for cmdarg in "php %{phpunit}" "php71 %{_bindir}/phpunit7" php72 php73 php74; do
|
||||
if which $cmdarg; then
|
||||
|
|
@ -145,6 +148,10 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Oct 28 2019 Remi Collet <remi@remirepo.net> - 4.2.5-1
|
||||
- update to 4.2.5
|
||||
- sources from git snapshot
|
||||
|
||||
* Mon Sep 2 2019 Remi Collet <remi@remirepo.net> - 4.2.4-1
|
||||
- update to 4.2.4
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue