[php-phpunit-PHPUnit] fix autoload

Remi Collet remi at fedoraproject.org
Tue May 6 14:33:14 UTC 2014


commit 1698cdd69ef1c3c59dd9aa8643f6437cea5dab1f
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue May 6 15:43:33 2014 +0200

    fix autoload
    
    (cherry picked from commit 7d1c0c3be35335981870918d14bbc0a46805d865)

 php-phpunit-PHPUnit.spec |    8 ++++++--
 phpunit-rpm.patch        |   10 +++++-----
 2 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec
index 8d2fa3c..fa68eeb 100644
--- a/php-phpunit-PHPUnit.spec
+++ b/php-phpunit-PHPUnit.spec
@@ -18,7 +18,7 @@
 
 Name:           php-phpunit-PHPUnit
 Version:        4.1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The PHP Unit Testing framework
 
 Group:          Development/Libraries
@@ -79,12 +79,13 @@ Requires:       php-phar
 Requires:       php-tidy
 Requires:       php-xml
 
-
 # For compatibility with PEAR mode
 Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
 # Package have been rename
 Obsoletes:      php-pear-PHPUnit < %{version}
 Provides:       php-pear-PHPUnit = %{version}-%{release}
+# Project
+Provides:       phpunit = %{version}-%{release}
 
 
 %description
@@ -145,6 +146,9 @@ fi
 
 
 %changelog
+* Tue May  6 2014 Remi Collet <remi at fedoraproject.org> - 4.1.0-2
+- fix some autoload issues
+
 * Sat May  3 2014 Remi Collet <remi at fedoraproject.org> - 4.1.0-1
 - Update to 4.1.0
 - sources from github
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
index 0a1253b..34f65ba 100644
--- a/phpunit-rpm.patch
+++ b/phpunit-rpm.patch
@@ -1,13 +1,13 @@
 diff -up ./phpunit.rpm ./phpunit
---- ./phpunit.rpm	2014-04-29 16:21:26.000000000 +0200
-+++ ./phpunit	2014-04-29 16:22:50.000000000 +0200
+--- ./phpunit.rpm	2014-05-02 09:13:40.000000000 +0200
++++ ./phpunit	2014-05-06 15:37:05.557950817 +0200
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env php
 +#!/usr/bin/php
  <?php
  /* PHPUnit
   *
-@@ -35,21 +35,6 @@
+@@ -35,21 +35,7 @@
   * POSSIBILITY OF SUCH DAMAGE.
   */
  
@@ -26,7 +26,7 @@ diff -up ./phpunit.rpm ./phpunit
 -    );
 -}
 -
--require PHPUNIT_COMPOSER_INSTALL;
-+require 'PHPUnit/Autoload.php';
++define ('PHPUNIT_COMPOSER_INSTALL', stream_resolve_include_path('PHPUnit/Autoload.php'));
+ require PHPUNIT_COMPOSER_INSTALL;
  
  PHPUnit_TextUI_Command::main();


More information about the scm-commits mailing list