summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-nikic-php-parser3.spec20
1 files changed, 13 insertions, 7 deletions
diff --git a/php-nikic-php-parser3.spec b/php-nikic-php-parser3.spec
index 4cca965..9add78a 100644
--- a/php-nikic-php-parser3.spec
+++ b/php-nikic-php-parser3.spec
@@ -1,12 +1,15 @@
# remirepo/fedora spec file for php-nikic-php-parser3
#
-# Copyright (c) 2016-2020 Remi Collet
+# Copyright (c) 2016-2021 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
+# Outdated, see php-nikic-php-parser4
+%bcond_with tests
+
# For compatibility with SCL
%undefine __brp_mangle_shebangs
@@ -16,7 +19,6 @@
%global gh_project PHP-Parser
%global pk_project php-parser
%global php_home %{_datadir}/php
-%global with_tests 0%{!?_without_tests:1}
%global major 3
%global eolv1 0
@@ -24,7 +26,7 @@
Name: php-%{gh_owner}-%{pk_project}%{major}
Version: 3.1.5
-Release: 5%{?dist}
+Release: 8%{?dist}
Summary: A PHP parser written in PHP - version %{major}
License: BSD
@@ -35,7 +37,7 @@ Source: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
Patch0: %{name}-rpm.patch
BuildArch: noarch
-%if %{with_tests}
+%if %{with tests}
# For tests
BuildRequires: php(language) >= 5.5
BuildRequires: php-tokenizer
@@ -78,6 +80,7 @@ This is a PHP 5.2 to PHP 7.1 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.
+The php-nikic-php-parser4 package provides the library version 4.
Documentation: https://github.com/nikic/PHP-Parser/tree/master/doc
@@ -105,7 +108,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
@@ -116,7 +119,7 @@ sed -e 's:@BUILDROOT@:%{buildroot}:' -i test/bootstrap.php
: Upstream test suite
ret=0
-for cmd in php php72 php73 php74; do
+for cmd in php php73 php74 php80; do
if which $cmd; then
$cmd %{_bindir}/phpunit \
--filter '^((?!(testResolveLocations|testParse|testError)).)*$' \
@@ -139,7 +142,10 @@ exit $ret
%changelog
-* Tue Feb 4 2020 Remi Collet <remi@fedoraproject.org> - 1.4.1-11
+* Tue Mar 30 2021 Remi Collet <remi@fedoraproject.org> - 3.1.5-8
+- outdated package, disable test suite
+
+* Tue Feb 4 2020 Remi Collet <remi@fedoraproject.org> - 3.1.5-5
- skip failed tests with 7.4
* Thu Mar 1 2018 Remi Collet <remi@remirepo.net> - 3.1.5-1