From 740010e39e2d29511ed2f88594d7a488ed1f7f0d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 9 Aug 2015 18:25:51 +0200 Subject: php-PHPParser: 1.4.0 --- php-PHPParser-command.patch | 22 +++++++++++++++------- php-PHPParser.spec | 21 +++++++++++++++------ 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/php-PHPParser-command.patch b/php-PHPParser-command.patch index 58850fa..703637f 100644 --- a/php-PHPParser-command.patch +++ b/php-PHPParser-command.patch @@ -1,14 +1,22 @@ diff -up ./bin/php-parse.php.rpm ./bin/php-parse.php ---- ./bin/php-parse.php.rpm 2015-04-04 14:49:15.704865853 +0200 -+++ ./bin/php-parse.php 2015-04-04 14:50:15.625104006 +0200 -@@ -1,7 +1,8 @@ --#!/usr/bin/env php -+#!/usr/bin/php +--- ./bin/php-parse.php.rpm 2015-08-09 18:15:56.693662775 +0200 ++++ ./bin/php-parse.php 2015-08-09 18:19:42.621773752 +0200 +@@ -1,7 +1,7 @@ + #!/usr/bin/env php = %{php_min_ver} BuildRequires: %{_bindir}/phpunit -# For tests: phpcompatinfo (computed from version 1.3.0) +# For tests: phpcompatinfo (computed from version 1.4.0) BuildRequires: php-filter BuildRequires: php-pcre BuildRequires: php-spl @@ -52,10 +52,12 @@ BuildRequires: php-xmlwriter # composer.json Requires: php(language) >= %{php_min_ver} Requires: php-tokenizer -# phpcompatinfo (computed from version 1.3.0) +# phpcompatinfo (computed from version 1.4.0) +Requires: php-cli Requires: php-filter Requires: php-pcre Requires: php-spl +Requires: php-tokenizer Requires: php-xmlreader Requires: php-xmlwriter @@ -72,6 +74,7 @@ A PHP parser written in PHP to simplify static analysis and code manipulation. %setup -q -n %{github_name}-%{github_short} %patch0 -p0 -b .rpm +rm lib/%{lib_name}/*rpm %build @@ -80,7 +83,7 @@ A PHP parser written in PHP to simplify static analysis and code manipulation. %install mkdir -p -m 755 %{buildroot}%{_datadir}/php -cp -rp lib/%{lib_name} %{buildroot}%{_datadir}/php/ +cp -rp lib/%{lib_name} %{buildroot}%{_datadir}/php/%{lib_name} # Compat with old version (< 1.0.0) mkdir -p -m 755 %{buildroot}%{_datadir}/php/%{lib_name_old} @@ -91,7 +94,9 @@ install -Dpm 755 bin/php-parse.php %{buildroot}%{_bindir}/php-parse %check -%{_bindir}/phpunit +%{_bindir}/phpunit \ + --bootstrap %{buildroot}%{_datadir}/php/%{lib_name}/autoload.php \ + --verbose %files @@ -105,6 +110,10 @@ install -Dpm 755 bin/php-parse.php %{buildroot}%{_bindir}/php-parse %changelog +* Sun Aug 9 2015 Remi Collet - 1.4.0-1 +- update to 1.4.0 +- add a simple autoload.php + * Mon May 4 2015 Remi Collet - 1.3.0-1 - update to 1.3.0 -- cgit