summaryrefslogtreecommitdiffstats
path: root/phan.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-09-25 09:54:23 +0200
committerRemi Collet <remi@remirepo.net>2017-09-25 09:54:23 +0200
commit786d5e900d5e7c2d24e7831dc6ed37ad70229889 (patch)
treec54948904c80c6d7bc3ebf6483c92571818fe7a4 /phan.spec
parent9e5aa5907c426a66e30ffbd33534f33e7a485f61 (diff)
Update to 0.10.0
raise dependency on ast 0.1.5 add dependency on nikic/php-parser 3.1.1 move from etsy/phan to phan/phan
Diffstat (limited to 'phan.spec')
-rw-r--r--phan.spec33
1 files changed, 23 insertions, 10 deletions
diff --git a/phan.spec b/phan.spec
index 8f51d8a..62686a0 100644
--- a/phan.spec
+++ b/phan.spec
@@ -6,16 +6,16 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit d2f3fbd719cb9236f1d85fb6018f9c8b7e41ffaa
+%global gh_commit f54b4cd4206f68ed53bbc95910351fba8b6c9ada
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
-%global gh_owner etsy
+%global gh_owner phan
#global gh_date 20150820
%global gh_project phan
%global psr0 Phan
%global with_tests 0%{!?_without_tests:1}
Name: %{gh_project}
-Version: 0.9.4
+Version: 0.10.0
Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist}
Summary: A static analyzer for PHP
@@ -31,6 +31,8 @@ BuildArch: noarch
%if %{with_tests}
BuildRequires: php(language) >= 7.1
BuildRequires: php-ast >= 0.1.4
+BuildRequires: php-composer(nikic/php-parser) < 4
+BuildRequires: php-composer(nikic/php-parser) >= 3.1.1
BuildRequires: php-composer(symfony/console) < 4
BuildRequires: php-composer(symfony/console) >= 2.8
BuildRequires: php-reflection
@@ -44,8 +46,8 @@ BuildRequires: php-spl
BuildRequires: php-sysvmsg
BuildRequires: php-sysvsem
# For tests, from composer.json "require-dev": {
-# "phpunit/phpunit": "^6.2.1"
-BuildRequires: phpunit6 >= 6.2.1
+# "phpunit/phpunit": "^6.3.0"
+BuildRequires: phpunit6 >= 6.3.0
BuildRequires: php-date
BuildRequires: php-intl
BuildRequires: php-soap
@@ -54,11 +56,14 @@ BuildRequires: php-soap
BuildRequires: php-composer(fedora/autoloader)
# From composer.json, "require": {
-# "php": "~7.1.0",
-# "ext-ast": "^0.1.4",
+# "php": "~7.1.0 || ~7.2.0",
+# "ext-ast": "^0.1.5",
+# "nikic/PHP-Parser": "~3.1.1",
# "symfony/console": "~2.3|~3.0"
Requires: php(language) >= 7.1
Requires: php-ast >= 0.1.4
+Requires: php-composer(nikic/php-parser) < 4
+Requires: php-composer(nikic/php-parser) >= 3.1.1
Requires: php-composer(symfony/console) < 4
Requires: php-composer(symfony/console) >= 2.3
# From phpcompatinfo report for 0.8.0
@@ -78,6 +83,7 @@ Requires: php-sysvsem
Requires: php-composer(fedora/autoloader)
# Composer
+Provides: php-composer(etsy/%{gh_project}) = %{version}
Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}
@@ -97,12 +103,13 @@ cat << 'EOF' | tee src/autoload.php
<?php
/* Autoloader for etsy/phan and its dependencies */
-require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('Phan\\', __DIR__ . '/Phan');
\Fedora\Autoloader\Dependencies::required([
+ '%{_datadir}/php/PhpParser3/autoload.php',
[
- '/usr/share/php/Symfony3/Component/Console/autoload.php',
- '/usr/share/php/Symfony/Component/Console/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/Console/autoload.php',
+ '%{_datadir}/php/Symfony/Component/Console/autoload.php',
],
]);
EOF
@@ -158,6 +165,12 @@ rm -rf %{buildroot}
%changelog
+* Mon Sep 25 2017 Remi Collet <remi@remirepo.net> - 0.10.0-1
+- Update to 0.10.0
+- raise dependency on ast 0.1.5
+- add dependency on nikic/php-parser 3.1.1
+- move from etsy/phan to phan/phan
+
* Wed Aug 16 2017 Remi Collet <remi@remirepo.net> - 0.9.4-1
- Update to 0.9.4