[packages/php-google-api] up to 0.6.2

glen glen at pld-linux.org
Wed Jul 3 09:23:54 CEST 2013


commit cacc78519f4e6eebf935704091675c8a2cd0e178
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jul 3 10:23:35 2013 +0300

    up to 0.6.2

 php-google-api.spec |  8 +++++---
 php52.patch         | 13 +++++++++++++
 2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/php-google-api.spec b/php-google-api.spec
index 0355621..2de96d8 100644
--- a/php-google-api.spec
+++ b/php-google-api.spec
@@ -5,12 +5,13 @@
 %include	/usr/lib/rpm/macros.php
 Summary:	Google APIs Client Library for PHP
 Name:		php-google-api
-Version:	0.5.0
-Release:	0.1
+Version:	0.6.2
+Release:	1
 License:	Apache v2.0
 Group:		Development/Languages/PHP
 Source0:	https://google-api-php-client.googlecode.com/files/google-api-php-client-%{version}.tar.gz
-# Source0-md5:	8e26c7e3789ffcc00387b1fe1a38e48c
+# Source0-md5:	86db4e431096c9c32637842e214c6e26
+Patch0:		php52.patch
 URL:		https://code.google.com/p/google-api-php-client/
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.461
@@ -37,6 +38,7 @@ Latitude on your server.
 %prep
 %setup -qc
 mv google-api-php-client/* .
+%patch0 -p1
 
 grep -rl require_once examples | xargs %{__sed} -i -e '
 	# fixup paths to source
diff --git a/php52.patch b/php52.patch
new file mode 100644
index 0000000..ee1ccc2
--- /dev/null
+++ b/php52.patch
@@ -0,0 +1,13 @@
+--- php-google-api-0.6.1/src/auth/Google_P12Signer.php~	2013-02-28 06:07:44.000000000 +0200
++++ php-google-api-0.6.1/src/auth/Google_P12Signer.php	2013-07-03 10:20:01.936330882 +0300
+@@ -58,10 +58,6 @@
+   }
+ 
+   function sign($data) {
+-    if(version_compare(PHP_VERSION, '5.3.0') < 0) {
+-      throw new Google_AuthException(
+-        "PHP 5.3.0 or higher is required to use service accounts.");
+-    }
+     if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
+       throw new Google_AuthException("Unable to sign data");
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-google-api.git/commitdiff/cacc78519f4e6eebf935704091675c8a2cd0e178



More information about the pld-cvs-commit mailing list