[php-bartlett-PHP-CompatInfo] Update to 2.14.1, make cache path user dependent

Remi Collet remi at fedoraproject.org
Tue Apr 2 08:42:49 UTC 2013


commit fc01b667e2471b535e2e68f909f8b70c1adc1454
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue Apr 2 10:42:41 2013 +0200

    Update to 2.14.1, make cache path user dependent

 .gitignore                                     |    1 +
 0025-array_column.patch                        |   24 ++++++
 0026-fix-gd-reference-for-php-5.5.0beta2.patch |   96 ++++++++++++++++++++++++
 PHP_CompatInfo-conf.patch                      |   18 +++++
 php-bartlett-PHP-CompatInfo.spec               |   27 ++++++-
 sources                                        |    2 +-
 6 files changed, 162 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 80e4b02..c7c81aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@ package-*.xml
 /PHP_CompatInfo-2.13.0.tgz
 /PHP_CompatInfo-2.13.2.tgz
 /PHP_CompatInfo-2.14.0.tgz
+/PHP_CompatInfo-2.14.1.tgz
diff --git a/0025-array_column.patch b/0025-array_column.patch
new file mode 100644
index 0000000..f7f5f6c
--- /dev/null
+++ b/0025-array_column.patch
@@ -0,0 +1,24 @@
+From 77931f9c94a4cb639f62cf077ae7faaf701973a9 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Wed, 20 Mar 2013 14:45:23 +0100
+Subject: [PATCH] new 'array_column' function
+
+---
+ PHP/CompatInfo/Reference/standard.php | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/PHP/CompatInfo/Reference/standard.php b/PHP/CompatInfo/Reference/standard.php
+index 68cbc66..5762d01 100644
+--- a/PHP/CompatInfo/Reference/standard.php
++++ b/PHP/CompatInfo/Reference/standard.php
+@@ -756,6 +756,7 @@ public function getFunctions($extension = null, $version = null, $condition = nu
+             'password_hash'                  => array('5.5.0-dev', ''),
+             'password_needs_rehash'          => array('5.5.0-dev', ''),
+             'password_verify'                => array('5.5.0-dev', ''),
++            'array_column'                   => array('5.5.0-dev', ''),
+         );
+         $this->applyFilter($release, $items, $functions);
+ 
+-- 
+1.8.1.5
+
diff --git a/0026-fix-gd-reference-for-php-5.5.0beta2.patch b/0026-fix-gd-reference-for-php-5.5.0beta2.patch
new file mode 100644
index 0000000..9b46cea
--- /dev/null
+++ b/0026-fix-gd-reference-for-php-5.5.0beta2.patch
@@ -0,0 +1,96 @@
+From 7c4f30cbcaae602d81c9cff6adaa9b32f676955c Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Thu, 28 Mar 2013 13:05:00 +0100
+Subject: [PATCH] fix gd reference for php 5.5.0beta2
+
+---
+ PHP/CompatInfo/Reference/gd.php | 32 ++++++++++++++++++++++++++++++++
+ 1 file changed, 32 insertions(+)
+
+diff --git a/PHP/CompatInfo/Reference/gd.php b/PHP/CompatInfo/Reference/gd.php
+index d10be0f..1ddb29f 100644
+--- a/PHP/CompatInfo/Reference/gd.php
++++ b/PHP/CompatInfo/Reference/gd.php
+@@ -78,6 +78,9 @@ public function getFunctions($extension = null, $version = null, $condition = nu
+         $items = array(
+             'gd_info'                        => array('4.3.0', ''),
+             'image2wbmp'                     => array('4.0.5', ''),
++            'imageaffine'                    => array('5.5.0-dev', ''),
++            'imageaffinematrixconcat'        => array('5.5.0-dev', ''),
++            'imageaffinematrixget'           => array('5.5.0-dev', ''),
+             'imagealphablending'             => array('4.0.6', ''),
+             'imageantialias'                 => array('4.3.2', ''),
+             'imagearc'                       => array('4.0.0', ''),
+@@ -149,6 +152,7 @@ public function getFunctions($extension = null, $version = null, $condition = nu
+             'imageline'                      => array('4.0.0', ''),
+             'imageloadfont'                  => array('4.0.0', ''),
+             'imagepalettecopy'               => array('4.0.1', ''),
++            'imagepalettetotruecolor'        => array('5.5.0-dev', ''),
+             'imagepng'                       => array('4.0.0', ''),
+             'imagepolygon'                   => array('4.0.0', ''),
+             'imagepsbbox'                    => array('4.0.0', ''),
+@@ -161,7 +165,9 @@ public function getFunctions($extension = null, $version = null, $condition = nu
+             'imagerectangle'                 => array('4.0.0', ''),
+             'imagerotate'                    => array('4.3.0', ''),
+             'imagesavealpha'                 => array('4.3.2', ''),
++            'imagescale'                     => array('5.5.0-dev', ''),
+             'imagesetbrush'                  => array('4.0.6', ''),
++            'imagesetinterpolation'          => array('5.5.0-dev', ''),
+             'imagesetpixel'                  => array('4.0.0', ''),
+             'imagesetstyle'                  => array('4.0.6', ''),
+             'imagesetthickness'              => array('4.0.6', ''),
+@@ -210,11 +216,25 @@ public function getConstants($extension = null, $version = null, $condition = nu
+             'GD_MINOR_VERSION'               => array('5.2.4', ''),
+             'GD_RELEASE_VERSION'             => array('5.2.4', ''),
+             'GD_VERSION'                     => array('5.2.4', ''),
++            'IMG_AFFINE_ROTATE'              => array('5.5.0-dev', ''),
++            'IMG_AFFINE_SCALE'               => array('5.5.0-dev', ''),
++            'IMG_AFFINE_SHEAR_HORIZONTAL'    => array('5.5.0-dev', ''),
++            'IMG_AFFINE_SHEAR_VERTICAL'      => array('5.5.0-dev', ''),
++            'IMG_AFFINE_TRANSLATE'           => array('5.5.0-dev', ''),
+             'IMG_ARC_CHORD'                  => array('4.0.0', ''),
+             'IMG_ARC_EDGED'                  => array('4.0.0', ''),
+             'IMG_ARC_NOFILL'                 => array('4.0.0', ''),
+             'IMG_ARC_PIE'                    => array('4.0.0', ''),
+             'IMG_ARC_ROUNDED'                => array('4.0.0', ''),
++            'IMG_BELL'                       => array('5.5.0-dev', ''),
++            'IMG_BESSEL'                     => array('5.5.0-dev', ''),
++            'IMG_BICUBIC'                    => array('5.5.0-dev', ''),
++            'IMG_BICUBIC_FIXED'              => array('5.5.0-dev', ''),
++            'IMG_BILINEAR_FIXED'             => array('5.5.0-dev', ''),
++            'IMG_BLACKMAN'                   => array('5.5.0-dev', ''),
++            'IMG_BOX'                        => array('5.5.0-dev', ''),
++            'IMG_BSPLINE'                    => array('5.5.0-dev', ''),
++            'IMG_CATMULLROM'                 => array('5.5.0-dev', ''),
+             'IMG_COLOR_BRUSHED'              => array('4.0.0', ''),
+             'IMG_COLOR_STYLED'               => array('4.0.0', ''),
+             'IMG_COLOR_STYLEDBRUSHED'        => array('4.0.0', ''),
+@@ -245,13 +265,25 @@ public function getConstants($extension = null, $version = null, $condition = nu
+             'IMG_FLIP_HORIZONTAL'            => array('5.5.0-dev', ''),
+             'IMG_FLIP_VERTICAL'              => array('5.5.0-dev', ''),
+             'IMG_FLIP_BOTH'                  => array('5.5.0-dev', ''),
++            'IMG_GAUSSIAN'                   => array('5.5.0-dev', ''),
++            'IMG_GENERALIZED_CUBIC'          => array('5.5.0-dev', ''),
+             'IMG_GD2_COMPRESSED'             => array('4.0.0', ''),
+             'IMG_GD2_RAW'                    => array('4.0.0', ''),
+             'IMG_GIF'                        => array('4.0.0', ''),
++            'IMG_HAMMING'                    => array('5.5.0-dev', ''),
++            'IMG_HANNING'                    => array('5.5.0-dev', ''),
++            'IMG_HERMITE'                    => array('5.5.0-dev', ''),
+             'IMG_JPEG'                       => array('4.0.0', ''),
+             'IMG_JPG'                        => array('4.0.0', ''),
++            'IMG_MITCHELL'                   => array('5.5.0-dev', ''),
++            'IMG_NEAREST_NEIGHBOUR'          => array('5.5.0-dev', ''),
+             'IMG_PNG'                        => array('4.0.0', ''),
++            'IMG_POWER'                      => array('5.5.0-dev', ''),
++            'IMG_QUADRATIC'                  => array('5.5.0-dev', ''),
++            'IMG_SINC'                       => array('5.5.0-dev', ''),
++            'IMG_TRIANGLE'                   => array('5.5.0-dev', ''),
+             'IMG_WBMP'                       => array('4.0.0', ''),
++            'IMG_WEIGHTED4'                  => array('5.5.0-dev', ''),
+             'IMG_XPM'                        => array('4.0.0', ''),
+             'PNG_ALL_FILTERS'                => array('4.0.0', ''),
+             'PNG_FILTER_AVG'                 => array('4.0.0', ''),
+-- 
+1.8.1.5
+
diff --git a/PHP_CompatInfo-conf.patch b/PHP_CompatInfo-conf.patch
new file mode 100644
index 0000000..58bd881
--- /dev/null
+++ b/PHP_CompatInfo-conf.patch
@@ -0,0 +1,18 @@
+--- PHP_CompatInfo-2.14.1/phpcompatinfo.xml.dist	2013-04-01 18:17:03.000000000 +0200
++++ PHP_CompatInfo-2.14.1/phpcompatinfo.xml	2013-04-02 10:15:27.000000000 +0200
+@@ -1,6 +1,6 @@
+ <?xml version="1.0" encoding="utf-8" ?>
+ <phpcompatinfo
+-    reference="PHP5"
++    reference="ALL"
+     report="summary"
+     reportFileAppend="false"
+     cacheDriver="file"
+@@ -12,6 +12,7 @@
+ 
+     <cache id="file">
+         <options>
++            <save_path>/tmp/phpci-%{USER}</save_path>
+             <gc_probability>1</gc_probability>
+             <gc_maxlifetime>86400</gc_maxlifetime>
+         </options>
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index f917c37..111aabb 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -8,8 +8,8 @@
 
 
 Name:           php-bartlett-PHP-CompatInfo
-Version:        2.14.0
-Release:        2%{?dist}
+Version:        2.14.1
+Release:        1%{?dist}
 Summary:        Find out version and the extensions required for a piece of code to run
 
 Group:          Development/Libraries
@@ -18,6 +18,11 @@ License:        BSD and MIT
 URL:            http://php5.laurent-laville.org/compatinfo/
 Source0:        http://bartlett.laurent-laville.org/get/%{pear_name}-%{version}%{?prever}.tgz
 
+# Update configuration for best experience
+# Reference = ALL known extension (instead of installed ones)
+# Make cache / save_path user specific
+Patch0:         %{pear_name}-conf.patch
+
 # Update reference for PHP 5.5
 # https://github.com/llaville/php-compat-info/commits/php-5.5
 Patch1:         0001-cuirl-reference-for-php-5.5.patch
@@ -41,6 +46,8 @@ Patch21:        0021-new-intl-changes-in-php-5.5.patch
 Patch22:        0022-fix-covers-annotation.patch
 Patch23:        0023-fix-mysqli-reference-for-php-5.5-trans.patch
 Patch24:        0024-fix-gd-reference-for-php-5.5.0alpha6.patch
+Patch25:        0025-array_column.patch
+Patch26:        0026-fix-gd-reference-for-php-5.5.0beta2.patch
 
 BuildArch:      noarch
 BuildRequires:  php(language) >= 5.2.1
@@ -88,6 +95,12 @@ This package provides experimental references for PHP 5.5.
 # Package is V2
 cd %{pear_name}-%{version}%{?prever}
 
+# Copy upstream default configuration
+cp phpcompatinfo.xml.dist phpcompatinfo.xml
+# Apply our changes
+%patch0  -p1 -b .rpm
+
+# PHP 5.5 updated references
 %patch1  -p1
 %patch2  -p1
 %patch3  -p1
@@ -109,6 +122,8 @@ cd %{pear_name}-%{version}%{?prever}
 %patch22 -p1
 %patch23 -p1
 %patch24 -p1
+%patch25 -p1
+%patch26 -p1
 
 # remove checksum for patched files
 sed -e 's/md5sum.*name/name/' \
@@ -134,9 +149,7 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 sed -i -e 's/\r//' %{buildroot}%{_bindir}/phpci
 
 # Create default package configuration
-sed -e '/reference=/s/PHP5/ALL/' \
-     %{buildroot}%{pear_cfgdir}/%{pear_name}/phpcompatinfo.xml.dist \
-    >%{buildroot}%{pear_cfgdir}/%{pear_name}/phpcompatinfo.xml
+install -pm 644 phpcompatinfo.xml %{buildroot}%{pear_cfgdir}/%{pear_name}/
 
 
 %check
@@ -190,6 +203,10 @@ fi
 
 
 %changelog
+* Tue Apr 02 2013 Remi Collet <remi at fedoraproject.org> - 2.14.1-1
+- Update to 2.14.1
+- make cache path user dependent
+
 * Mon Mar 18 2013 Remi Collet <remi at fedoraproject.org> - 2.14.0-2
 - update References for PHP 5.5 from
   https://github.com/llaville/php-compat-info/commits/php-5.5
diff --git a/sources b/sources
index 3a19886..a93b105 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4eafda9d5e534a45293de806b0bcc148  PHP_CompatInfo-2.14.0.tgz
+b8202cff7a77058754f3cb09e3dd0ce7  PHP_CompatInfo-2.14.1.tgz


More information about the scm-commits mailing list