[php-bartlett-PHP-CompatInfo] update to 2.13.0

Remi Collet remi at fedoraproject.org
Fri Feb 22 14:13:59 UTC 2013


commit 92c33a2ac6884ac20dd1757601543878d1ad1caa
Author: Remi Collet <rcollet at redhat.com>
Date:   Fri Feb 22 15:13:53 2013 +0100

    update to 2.13.0

 .gitignore                       |    1 +
 PHP_CompatInfo-php5412.patch     |   50 ++++++++++++++++++++++++++++++++++++++
 php-bartlett-PHP-CompatInfo.spec |   19 +++++++++++---
 sources                          |    2 +-
 4 files changed, 67 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 84d6f31..8b16d65 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ package-*.xml
 /PHP_CompatInfo-2.8.1.tgz
 /PHP_CompatInfo-2.11.0.tgz
 /PHP_CompatInfo-2.12.1.tgz
+/PHP_CompatInfo-2.13.0.tgz
diff --git a/PHP_CompatInfo-php5412.patch b/PHP_CompatInfo-php5412.patch
new file mode 100644
index 0000000..ffd5c67
--- /dev/null
+++ b/PHP_CompatInfo-php5412.patch
@@ -0,0 +1,50 @@
+From 8b20247ad4ff47c7946e37f359dde867fa9e1350 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Mon, 14 Jan 2013 18:08:52 +0100
+Subject: [PATCH] mysqli new constant
+
+---
+ PHP/CompatInfo/Reference/mysqli.php |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/PHP/CompatInfo/Reference/mysqli.php b/PHP/CompatInfo/Reference/mysqli.php
+index 82e7e8f..e635150 100644
+--- a/PHP/CompatInfo/Reference/mysqli.php
++++ b/PHP/CompatInfo/Reference/mysqli.php
+@@ -288,6 +288,8 @@ public function getConstants($extension = null, $version = null, $condition = nu
+             'MYSQLI_NUM'                     => array('5.0.0', ''),
+             'MYSQLI_NUM_FLAG'                => array('5.0.0', ''),
+             'MYSQLI_ON_UPDATE_NOW_FLAG'      => array('5.3.0', ''),
++            'MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS'
++                                             => array('5.5.0-dev', ''),
+             'MYSQLI_OPT_CONNECT_TIMEOUT'     => array('5.0.0', ''),
+             'MYSQLI_OPT_INT_AND_FLOAT_NATIVE'
+                                              => array('5.3.0', ''),
+-- 
+1.7.10
+
+From c4f2ad1e47180ccb6b6dc75bc94d866188387ce1 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Wed, 16 Jan 2013 10:26:08 +0100
+Subject: [PATCH] MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS is 5.4.12
+
+---
+ PHP/CompatInfo/Reference/mysqli.php |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/PHP/CompatInfo/Reference/mysqli.php b/PHP/CompatInfo/Reference/mysqli.php
+index e635150..ff9ee91 100644
+--- a/PHP/CompatInfo/Reference/mysqli.php
++++ b/PHP/CompatInfo/Reference/mysqli.php
+@@ -289,7 +289,7 @@ public function getConstants($extension = null, $version = null, $condition = nu
+             'MYSQLI_NUM_FLAG'                => array('5.0.0', ''),
+             'MYSQLI_ON_UPDATE_NOW_FLAG'      => array('5.3.0', ''),
+             'MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS'
+-                                             => array('5.5.0-dev', ''),
++                                             => array('5.4.12', ''),
+             'MYSQLI_OPT_CONNECT_TIMEOUT'     => array('5.0.0', ''),
+             'MYSQLI_OPT_INT_AND_FLOAT_NATIVE'
+                                              => array('5.3.0', ''),
+-- 
+1.7.10
+
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index 6d810c1..b17945c 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -8,8 +8,8 @@
 
 
 Name:           php-bartlett-PHP-CompatInfo
-Version:        2.12.1
-Release:        2%{?dist}
+Version:        2.13.0
+Release:        1%{?dist}
 Summary:        Find out version and the extensions required for a piece of code to run
 
 Group:          Development/Libraries
@@ -18,13 +18,16 @@ License:        BSD and MIT
 URL:            http://php5.laurent-laville.org/compatinfo/
 Source0:        http://bartlett.laurent-laville.org/get/%{pear_name}-%{version}%{?prever}.tgz
 
+# https://github.com/llaville/php-compat-info/issues/68
+Patch0:         %{pear_name}-php5412.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  php-pear(PEAR) >= 1.9.0
 BuildRequires:  php-channel(%{channel})
 # to run test suite
 BuildRequires:  php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
-BuildRequires:  php-pear(%{channel}/PHP_Reflect) >= 1.5.0
+BuildRequires:  php-pear(%{channel}/PHP_Reflect) >= 1.6.0
 
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
@@ -36,7 +39,7 @@ Requires:       php-pcre
 Requires:       php-reflection
 Requires:       php-spl
 Requires:       php-pear(PEAR) >= 1.9.0
-Requires:       php-pear(%{channel}/PHP_Reflect) >= 1.5.0
+Requires:       php-pear(%{channel}/PHP_Reflect) >= 1.6.0
 Requires:       php-pear(Console_CommandLine) >= 1.2.0
 # Optional
 Requires:       php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
@@ -62,6 +65,10 @@ HTML Documentation:  %{pear_docdir}/%{pear_name}/html/index.html
 cd %{pear_name}-%{version}%{?prever}
 mv -f ../package.xml %{name}.xml
 
+%patch0 -p1 -b .php5412
+sed -e '/mysqli.php/s/md5sum.*name/name/' \
+    -i %{name}.xml
+
 
 %build
 cd %{pear_name}-%{version}%{?prever}
@@ -142,6 +149,10 @@ fi
 
 
 %changelog
+* Fri Feb 22 2013 Remi Collet <remi at fedoraproject.org> - 2.13.0-1
+- Update to 2.13.0
+- raise dependencies, PHP_Reflect 1.6.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.12.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index d6eb7c1..1430bcb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-adce86e1c39481788eead11e51528d2f  PHP_CompatInfo-2.12.1.tgz
+16bd6a83ad35ed94be310babfbd97b97  PHP_CompatInfo-2.13.0.tgz


More information about the scm-commits mailing list