From 2393aea2475a872cc15b9d5719057d55462f329b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 23 Sep 2015 11:16:06 +0200 Subject: php-guzzlehttp-ringphp: sync with Fedora --- php-guzzlehttp-ringphp.spec | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/php-guzzlehttp-ringphp.spec b/php-guzzlehttp-ringphp.spec index 2bcb0a6..edf3aed 100644 --- a/php-guzzlehttp-ringphp.spec +++ b/php-guzzlehttp-ringphp.spec @@ -22,11 +22,11 @@ %global php_min_ver 5.4.0 # "guzzlehttp/streams": "~3.0" # Note: Min version not "3.0" because autoloader required -%global streams_min_ver 3.0.0-3 +%global streams_min_ver 3.0.0-5 %global streams_max_ver 4.0 # "react/promise": "~2.0" # Note: Min version not "2.0" because autoloader required -%global promise_min_ver 2.2.0-4 +%global promise_min_ver 2.2.0-6 %global promise_max_ver 3.0 %if 0%{?rhel} == 5 @@ -42,7 +42,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 5%{?github_release}%{?dist} +Release: 6%{?github_release}%{?dist} Summary: Simple handler system used to power clients and servers in PHP Group: Development/Libraries @@ -132,17 +132,16 @@ Requires: php-zlib %setup -qn %{github_name}-%{github_commit} : Create library autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee src/autoload.php addPrefix('GuzzleHttp\\Ring\\', dirname(dirname(__DIR__))); +require_once '%{phpdir}/GuzzleHttp/Stream/autoload.php'; +require_once '%{phpdir}/React/Promise/autoload.php'; + return $fedoraClassLoader; AUTOLOAD -) | tee src/autoload.php : Create tests autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee tests/autoload.php setUseIncludePath(true); return $fedoraClassLoader; AUTOLOAD -) | tee tests/autoload.php : Create custom tests PHPUnit config rm -f phpunit.xml.dist -(cat <<'PHPUNIT' +cat <<'PHPUNIT' | tee phpunit.xml.dist @@ -188,7 +190,6 @@ rm -f phpunit.xml.dist PHPUNIT -) | tee phpunit.xml.dist : Modify tests bootstrap sed -e "s#.*require.*autoload.*#require __DIR__ . '/autoload.php';#" \ @@ -217,7 +218,7 @@ cp -p phpunit.xml.dist %{buildroot}%{testsdir}/%{name}/ %check %if %{with_tests} -%{_bindir}/phpunit -v \ +%{_bindir}/phpunit --verbose \ --configuration %{buildroot}%{testsdir}/%{name} \ --include-path %{buildroot}%{phpdir} %else @@ -243,6 +244,10 @@ rm -rf %{buildroot} %changelog +* Tue Sep 22 2015 Shawn Iwinski - 1.1.0-6 +- Updated autoloader to load dependencies after self registration +- Minor cleanups + * Sun Jun 28 2015 Shawn Iwinski - 1.1.0-5 - Autoloader updates -- cgit