[php-guzzlehttp-streams] Fix test suite when previous version installed

Shawn Iwinski siwinski at fedoraproject.org
Tue Aug 26 23:45:05 UTC 2014


commit 35bfbdb61770c184de90377c996bde8e81bb80eb
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Tue Aug 26 19:44:38 2014 -0400

    Fix test suite when previous version installed
    
    - Updated URL and description per upstream

 php-guzzlehttp-streams.spec |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/php-guzzlehttp-streams.spec b/php-guzzlehttp-streams.spec
index c435393..4a40de3 100644
--- a/php-guzzlehttp-streams.spec
+++ b/php-guzzlehttp-streams.spec
@@ -25,12 +25,12 @@
 
 Name:          php-%{composer_vendor}-%{composer_project}
 Version:       %{github_version}
-Release:       1%{?github_release}%{?dist}
+Release:       2%{?github_release}%{?dist}
 Summary:       Provides a simple abstraction over streams of data
 
 Group:         Development/Libraries
 License:       MIT
-URL:           http://docs.guzzlephp.org/en/latest/streams.html
+URL:           http://docs.guzzlephp.org/en/guzzle4/streams.html
 Source0:       https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
 
 BuildArch:     noarch
@@ -52,12 +52,7 @@ Requires:      php-spl
 Provides:      php-composer(%{composer_vendor}/%{composer_project}) = %{version}
 
 %description
-Provides a simple abstraction over streams of data.
-
-This library is used in Guzzle and is an implementation of the proposed
-PSR-7 stream interface [1].
-
-[1] https://github.com/php-fig/fig-standards/blob/master/proposed/http-message.md#34-psrhttpstreaminterface
+%{summary}.
 
 
 %prep
@@ -84,18 +79,14 @@ require_once __DIR__ . '/../src/functions.php';
 
 spl_autoload_register(function ($class) {
     $src = str_replace(array('\\', '_'), '/', $class).'.php';
-    if (!@include_once $src) {
-        $psr4_class = preg_replace('#^GuzzleHttp\\\Stream\\\?#', '', $class);
-        $psr4_src = str_replace(array('\\', '_'), '/', $psr4_class).'.php';
-        @include_once $psr4_src;
-    }
+    @include_once $src;
 });
 AUTOLOAD
 
 # Create PHPUnit config w/ colors turned off
 sed 's/colors\s*=\s*"true"/colors="false"/' phpunit.xml.dist > phpunit.xml
 
-%{_bindir}/phpunit --include-path="./src:./tests" -d date.timezone="UTC"
+%{_bindir}/phpunit --include-path="%{buildroot}%{_datadir}/php" -d date.timezone="UTC"
 %else
 : Tests skipped
 %endif
@@ -110,6 +101,10 @@ sed 's/colors\s*=\s*"true"/colors="false"/' phpunit.xml.dist > phpunit.xml
 
 
 %changelog
+* Tue Aug 26 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.5.1-2
+- Updated URL and description per upstream
+- Fix test suite when previous version installed
+
 * Sun Aug 17 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.5.1-1
 - Updated to 1.5.1 (BZ #1128102)
 


More information about the scm-commits mailing list