summaryrefslogtreecommitdiffstats
path: root/phan.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-05-14 10:43:16 +0200
committerRemi Collet <remi@remirepo.net>2019-05-14 10:43:16 +0200
commitf76d770fbfe8829cb97ad491acd80f994be0f480 (patch)
tree1fe1fbdf20d1dbb81cb60fae089c257fad6c0996 /phan.spec
parent72d82b387bd7e64f20f5ec5c4a107a6255dc4f01 (diff)
- update to 2.0.0RC2
- raise dependency on PHP 7.1.0 - raise dependency on ast 1.0.1 - switch to phpunit7
Diffstat (limited to 'phan.spec')
-rw-r--r--phan.spec34
1 files changed, 21 insertions, 13 deletions
diff --git a/phan.spec b/phan.spec
index 3377fc3..49d8ed5 100644
--- a/phan.spec
+++ b/phan.spec
@@ -10,22 +10,24 @@
# For compatibility with SCL
%undefine __brp_mangle_shebangs
-%global gh_commit 73795afa51d3e4302c2306168f3d182ca35d8c89
+%global gh_commit c1484bcdd41672cbe63a35a31f5ead67d53768a5
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phan
#global gh_date 20150820
%global gh_project phan
%global psr0 Phan
%global with_tests 0%{!?_without_tests:1}
+%global upstream_version 2.0.0
+%global upstream_prever RC2
Name: %{gh_project}
-Version: 1.3.4
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
Summary: A static analyzer for PHP
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
-Source0: %{name}-%{version}-%{?gh_short}.tgz
+Source0: %{name}-%{upstream_version}%{?upstream_prever}-%{?gh_short}.tgz
Source1: makesrc.sh
# Use fedora autoloader
@@ -33,8 +35,8 @@ Patch0: %{name}-autoload.patch
BuildArch: noarch
%if %{with_tests}
-BuildRequires: php(language) >= 7.0.0
-BuildRequires: php-ast >= 0.1.5
+BuildRequires: php(language) >= 7.1.0
+BuildRequires: php-ast >= 1.0.1
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires: (php-composer(composer/semver) >= 1.4 with php-composer(composer/semver) < 2)
@@ -70,9 +72,9 @@ BuildRequires: php-spl
BuildRequires: php-sysvmsg
BuildRequires: php-sysvsem
# For tests, from composer.json "require-dev": {
-# "brianium/paratest": "^1.1",
-# "phpunit/phpunit": "^6.3.0"
-BuildRequires: phpunit6 >= 6.3.0
+# "brianium/paratest": "^2.2.0",
+# "phpunit/phpunit": "^7.5.0"
+BuildRequires: phpunit7 >= 7.5
BuildRequires: php-date
BuildRequires: php-intl
BuildRequires: php-soap
@@ -81,7 +83,7 @@ BuildRequires: php-soap
BuildRequires: php-composer(fedora/autoloader)
# From composer.json, "require": {
-# "php": "^7.0.0",
+# "php": "^7.1.0",
# "ext-filter": "*",
# "ext-json": "*",
# "composer/semver": "^1.4",
@@ -91,16 +93,16 @@ BuildRequires: php-composer(fedora/autoloader)
# "sabre/event": "^5.0",
# "symfony/console": "^2.3|^3.0|~4.0",
# "symfony/polyfill-mbstring": "^1.11.0"
-Requires: php(language) >= 7.0.0
+Requires: php(language) >= 7.1.0
Requires: php-filter
Requires: php-json
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
# From composer.json, "suggest": {
-# "ext-ast": "Needed for parsing ASTs (unless --use-fallback-parser is used). php-ast ^0.1.5|^1.0.0 is needed.",
+# "ext-ast": "Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed.",
# "ext-igbinary": "Improves performance of polyfill when ext-ast is unavailable",
# "ext-tokenizer": "Needed for non-AST support and file/line-based suppressions."
-Recommends: php-ast >= 0.1.5
+Recommends: php-ast >= 1.0.1
Suggests: php-igbinary
Recommends: php-tokenizer
Requires: (php-composer(composer/semver) >= 1.4 with php-composer(composer/semver) < 2)
@@ -209,7 +211,7 @@ require '%{buildroot}%{_datadir}/php/%{psr0}/Phan/Bootstrap.php';
EOF
# NOTICE mosquitto, request and grpc must be disabled
-%{_bindir}/phpunit6 -d memory_limit=1G --bootstrap tests/autoload.php --verbose
+%{_bindir}/phpunit7 -d memory_limit=1G --bootstrap tests/autoload.php --verbose
%else
@@ -227,6 +229,12 @@ EOF
%changelog
+* Tue May 14 2019 Remi Collet <remi@remirepo.net> - 2.0.0~RC2-1
+- update to 2.0.0RC2
+- raise dependency on PHP 7.1.0
+- raise dependency on ast 1.0.1
+- switch to phpunit7
+
* Fri May 10 2019 Remi Collet <remi@remirepo.net> - 1.3.4-1
- update to 1.3.4