From 531341b0ac92f22fcae1e7b8fff67e7f0be9c91f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 14 Sep 2015 11:10:49 +0200 Subject: php-phpunit-PHP-CodeCoverage: 2.2.3 --- Autoload.php.in | 5 +---- php-phpunit-PHP-CodeCoverage.spec | 17 +++++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Autoload.php.in b/Autoload.php.in index 2f422fb..303cc0f 100644 --- a/Autoload.php.in +++ b/Autoload.php.in @@ -11,20 +11,17 @@ spl_autoload_register( function ($class) { static $classes = NULL; - static $path = NULL; if ($classes === NULL) { $classes = array( ___CLASSLIST___ ); - - $path = __DIR__; } $cn = strtolower($class); if (isset($classes[$cn])) { - require $path . $classes[$cn]; + require __DIR__ . $classes[$cn]; } } ); diff --git a/php-phpunit-PHP-CodeCoverage.spec b/php-phpunit-PHP-CodeCoverage.spec index 821f047..d38ea6b 100644 --- a/php-phpunit-PHP-CodeCoverage.spec +++ b/php-phpunit-PHP-CodeCoverage.spec @@ -8,7 +8,7 @@ # %global bootstrap 0 -%global gh_commit 2d7c03c0e4e080901b8f33b2897b0577be18a13c +%global gh_commit ef1ca6835468857944d5c3b48fa503d5554cff2f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project php-code-coverage @@ -22,7 +22,7 @@ %endif Name: php-phpunit-PHP-CodeCoverage -Version: 2.2.2 +Version: 2.2.3 Release: 1%{?dist} Summary: PHP code coverage information @@ -91,21 +91,19 @@ for PHP code coverage information. %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/CodeCoverage/Autoload.php \ + --output src/CodeCoverage/Autoload.php \ --template %{SOURCE1} \ - PHP + src %install rm -rf %{buildroot} +# Restore PSR-0 tree mkdir -p %{buildroot}%{php_home} -cp -pr PHP %{buildroot}%{php_home}/PHP +cp -pr src %{buildroot}%{php_home}/PHP %if %{with_tests} @@ -141,6 +139,9 @@ fi %changelog +* Mon Sep 14 2015 Remi Collet - 2.2.3-1 +- update to 2.2.3 + * Tue Aug 4 2015 Remi Collet - 2.2.2-1 - update to 2.2.2 - raise dependency on sebastian/environment ^1.3.2 -- cgit