From 2160e446f80b1a7bbc90e317c816059d1e4ebd3c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 23 Sep 2015 11:29:23 +0200 Subject: php-guzzlehttp-guzzle: sync with fedora --- php-guzzlehttp-guzzle.spec | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/php-guzzlehttp-guzzle.spec b/php-guzzlehttp-guzzle.spec index 3ff9104..9bff342 100644 --- a/php-guzzlehttp-guzzle.spec +++ b/php-guzzlehttp-guzzle.spec @@ -28,7 +28,7 @@ %global php_min_ver 5.4.0 # "guzzlehttp/ringphp": "^1.1" # Note: Min version not "1.1" because autoloader required -%global ring_min_ver 1.1.0-3 +%global ring_min_ver 1.1.0-6 %global ring_max_ver 2.0 # "psr/log": "^1.0" %global psr_log_min_ver 1.0 @@ -47,7 +47,7 @@ Name: php-%{composer_vendor}-%{composer_project} Version: %{github_version} -Release: 3%{?github_release}%{?dist} +Release: 4%{?github_release}%{?dist} Summary: PHP HTTP client and webservice framework Group: Development/Libraries @@ -122,16 +122,16 @@ the pain out of consuming web services. %setup -qn %{github_name}-%{github_commit} : Create autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee src/autoload.php addPrefix('GuzzleHttp\\', dirname(__DIR__)); +require_once '%{phpdir}/GuzzleHttp/Ring/autoload.php'; + return $fedoraClassLoader; AUTOLOAD -) | tee src/autoload.php %build @@ -161,14 +162,13 @@ cp -pr src/* %{buildroot}%{phpdir}/GuzzleHttp/ %check %if %{with_tests} : Create tests autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee tests/autoload.php addPrefix('GuzzleHttp\\Tests', __DIR__); AUTOLOAD -) | tee tests/autoload.php : Modify tests bootstrap sed -e "s#.*require.*autoload.*#require __DIR__ . '/autoload.php';#" \ @@ -179,7 +179,7 @@ sed -e "s#.*require.*autoload.*#require __DIR__ . '/autoload.php';#" \ mkdir tests/GuzzleHttp ln -s .. tests/GuzzleHttp/Tests -%{_bindir}/phpunit --include-path %{buildroot}%{phpdir} -v +%{_bindir}/phpunit --verbose %else : Tests skipped %endif @@ -199,6 +199,10 @@ rm -rf %{buildroot} %changelog +* Tue Sep 22 2015 Shawn Iwinski - 5.3.0-4 +- Updated autoloader to load dependencies after self registration +- Minor cleanups + * Sun Jun 28 2015 Shawn Iwinski - 5.3.0-3 - Autoloader updates -- cgit