From aa26c3cd332433da2573f5270591c9cf09716267 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 13 Aug 2015 13:27:00 +0200 Subject: php-phpunit-PHP-TokenStream: 1.4.4 --- Autoload.php.in | 24 ------------------------ php-phpunit-PHP-TokenStream.spec | 35 +++++++++++++++-------------------- 2 files changed, 15 insertions(+), 44 deletions(-) delete mode 100644 Autoload.php.in diff --git a/Autoload.php.in b/Autoload.php.in deleted file mode 100644 index 308048c..0000000 --- a/Autoload.php.in +++ /dev/null @@ -1,24 +0,0 @@ -= 5.3.3 @@ -64,34 +61,29 @@ Wrapper around PHP tokenizer extension. %prep %setup -q -n %{gh_project}-%{gh_commit} -# Restore PSR-0 tree to ensure current sources are used by tests -mv src PHP - %build phpab \ - --output PHP/Token/Stream/Autoload.php \ - --template %{SOURCE1} \ - PHP - + --output src/Token/Stream/Autoload.php \ + src %install rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home} -cp -pr PHP %{buildroot}%{php_home}/PHP +cp -pr src %{buildroot}%{php_home}/PHP %if %{with_tests} %check -# Use generated autoloader -sed -e 's:vendor/autoload.php:PHP/Token/Stream/Autoload.php:' \ +: Autoloader already called from PHPUnit main autoloader +sed -e '/autoload.php/d' \ -i tests/bootstrap.php # Run tests -phpunit \ - --bootstrap tests/bootstrap.php \ - --verbose \ - tests +cd build +: Run tests - set include_path to ensure PHPUnit autoloader use it +%{_bindir}/php -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ +%{_bindir}/phpunit --verbose %endif @@ -115,6 +107,9 @@ fi %changelog +* Thu Aug 13 2015 Remi Collet - 1.4.4-1 +- Update to 1.4.4 + * Thu Jul 2 2015 Remi Collet - 1.4.3-2 - fix autoloader -- cgit