[php-bartlett-PHP-CompatInfo/el6] update to 2.12.1

Remi Collet remi at fedoraproject.org
Fri Jan 18 13:28:03 UTC 2013


commit 5196199574f759d8143e45c3ef2dc459025c46fb
Author: Remi Collet <remi at fedoraproject.org>
Date:   Fri Jan 18 14:27:55 2013 +0100

    update to 2.12.1

 .gitignore                       |    6 +++
 PHP_CompatInfo-addhtml.patch     |   14 ------
 PHP_CompatInfo-del.patch         |   16 -------
 php-bartlett-PHP-CompatInfo.spec |   84 +++++++++++++-------------------------
 sources                          |    2 +-
 5 files changed, 35 insertions(+), 87 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6b47ca6..84d6f31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,9 @@ package-*.xml
 /PHP_CompatInfo-2.3.0.tgz
 /PHP_CompatInfo-2.4.0.tgz
 /PHP_CompatInfo-2.5.0.tgz
+/PHP_CompatInfo-2.6.0.tgz
+/PHP_CompatInfo-2.7.0.tgz
+/PHP_CompatInfo-2.8.0.tgz
+/PHP_CompatInfo-2.8.1.tgz
+/PHP_CompatInfo-2.11.0.tgz
+/PHP_CompatInfo-2.12.1.tgz
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index 661e790..64db05d 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -1,20 +1,15 @@
 %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
 %global pear_name   PHP_CompatInfo
 %global channel     bartlett.laurent-laville.org
 
-%if 0%{?fedora} >= 12
-%global withhtmldoc 1
-%else
-%global withhtmldoc 0
-%endif
-
-# TODO : link /usr/share/pear/data/PHP_CompatInfo/misc/jquery-1.5.min.js
+# TODO : link /usr/share/pear/data/PHP_CompatInfo/misc/jquery-min.js
 #        to system jquery when available, then fix License (BSD only)
 
 
 Name:           php-bartlett-PHP-CompatInfo
-Version:        2.5.0
-Release:        1%{?dist}.1
+Version:        2.12.1
+Release:        1%{?dist}
 Summary:        Find out version and the extensions required for a piece of code to run
 
 Group:          Development/Libraries
@@ -23,36 +18,30 @@ License:        BSD and MIT
 URL:            http://php5.laurent-laville.org/compatinfo/
 Source0:        http://bartlett.laurent-laville.org/get/%{pear_name}-%{version}%{?prever}.tgz
 
-# Remove unused asciidoc*.js scripts
-Patch1:         %{pear_name}-del.patch
-# Install generated doc using pear command
-Patch2:         %{pear_name}-addhtml.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.5.0
-BuildRequires:  php-pear(%{channel}/PHP_Reflect) >= 1.3.0
-%if %{withhtmldoc}
-# to build HTML documentation
-BuildRequires:  php-pear(pear.phing.info/phing)
-BuildRequires:  asciidoc >= 8.4.0
-%endif
+BuildRequires:  php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
+BuildRequires:  php-pear(%{channel}/PHP_Reflect) >= 1.5.0
 
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
-Requires:       php-xml >= 5.2.0
+Requires:       php-common >= 5.2.1
+Requires:       php-date
+Requires:       php-dom
+Requires:       php-libxml
+Requires:       php-pcre
+Requires:       php-reflection
+Requires:       php-spl
 Requires:       php-pear(PEAR) >= 1.9.0
-Requires:       php-pear(%{channel}/PHP_Reflect) >= 1.3.0
-Requires:       php-pear(Console_CommandLine) >= 1.1.3
-Requires:       php-pear(components.ez.no/ConsoleTools) >= 1.6.1
-Requires:       php-pear(pear.phpunit.de/PHPUnit) >= 3.5.0
+Requires:       php-pear(%{channel}/PHP_Reflect) >= 1.5.0
+Requires:       php-pear(Console_CommandLine) >= 1.2.0
+# Optional
+Requires:       php-pear(pear.phpunit.de/PHPUnit) >= 3.6.0
+Requires:       php-pear(pear.phpunit.de/PHP_Timer) >= 1.0.0
 # Optional and not yet availalble php-pear(Net_Growl) >= 2.2.2
-# php-pear(components.ez.no/Base) required by ConsoleTools
-# php-pear(pear.phpunit.de/PHP_Timer) required by PHPUnit
 
 Provides:       php-pear(%{channel}/%{pear_name}) = %{version}%{?prever}
 
@@ -63,9 +52,7 @@ version and extensions required for it to run. CLI version has many reports
 (extension, interface, class, function, constant) to display and ability to
 show content of dictionary references.
 
-%if %{withhtmldoc}
-HTML Documentation:  %{pear_docdir}/%{pear_name}/docs/index.html
-%endif
+HTML Documentation:  %{pear_docdir}/%{pear_name}/html/index.html
 
 
 %prep
@@ -75,30 +62,10 @@ HTML Documentation:  %{pear_docdir}/%{pear_name}/docs/index.html
 cd %{pear_name}-%{version}%{?prever}
 mv -f ../package.xml %{name}.xml
 
-%patch1 -p1 -b .del
-%if %{withhtmldoc}
-%patch2 -p1 -b .addhtml
-%endif
-
 
 %build
 cd %{pear_name}-%{version}%{?prever}
 
-%if %{withhtmldoc}
-# Generate the HTML documentation
-phing -f docs/build-phing.xml \
-      -Dhomedir=$PWD \
-      -Dasciidoc.home=%{_datadir}/asciidoc \
-      -Doutput.dir=$PWD/docs \
-      -Dbuild.tarball=false \
-      make-html-docs
-
-# asciidoc fails silently
-cpt=$(find docs -name \*.html | wc -l)
-echo "File generated:$cpt, expected:5"
-[ $cpt -eq 5 ] || exit 1
-%endif
-
 
 %install
 rm -rf %{buildroot}
@@ -106,7 +73,7 @@ cd %{pear_name}-%{version}%{?prever}
 %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
 
 # Clean up unnecessary files
-rm -rf %{buildroot}%{pear_phpdir}/.??*
+rm -rf %{buildroot}%{pear_metadir}/.??*
 
 # Install XML package description
 mkdir -p %{buildroot}%{pear_xmldir}
@@ -114,7 +81,6 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 
 # Fix wrong-script-end-of-line-encoding
 sed -i -e 's/\r//' %{buildroot}%{_bindir}/phpci
-sed -i -e 's/\r//' %{buildroot}%{pear_docdir}/%{pear_name}/README.markdown
 
 # Create default package configuration
 sed -e '/reference=/s/PHP5/ALL/' \
@@ -132,9 +98,9 @@ cd %{pear_name}-%{version}%{?prever}
 rm -f tests/Reference/XslTest.php
 %endif
 
-# Test:  621, Assertions: 8965, Skipped: 7, when most extensions installed
+# Tests: 654, Assertions: 9682, Skipped: 28, when most extensions installed
 # OK, but incomplete or skipped tests!
-# Tests: 441, Assertions: 5720, Skipped: 222, in mock
+# Tests: 462, Assertions: 5936, Skipped: 254, in mock
 # Reference tests need some fixes for EL-4, so ignore result for now
 %{_bindir}/phpunit \
     -d date.timezone=UTC \
@@ -174,6 +140,12 @@ fi
 
 
 %changelog
+* Fri Jan 18 2013 Remi Collet <remi at fedoraproject.org> - 2.12.1-1
+- update to Version 2.12.1
+- fix path to documentation in description
+- drop dependency on eZ components
+- raise PHPUnit dependency to 3.6.0
+
 * Sun Jul  8 2012 Remi Collet <remi at fedoraproject.org> - 2.5.0-1.1
 - drop XslTest in EL-6
 
diff --git a/sources b/sources
index b21dcec..d6eb7c1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40d71a55642d6cd2854cb8f34a8b7856  PHP_CompatInfo-2.5.0.tgz
+adce86e1c39481788eead11e51528d2f  PHP_CompatInfo-2.12.1.tgz


More information about the scm-commits mailing list