[php-phpunit-PHPUnit/el6] update to 3.6.7

Remi Collet remi at fedoraproject.org
Tue Jan 17 17:56:25 UTC 2012


commit 7c6754bd4b84b4055b9745ea94345c5abe7aa342
Author: remi <fedora at famillecollet.com>
Date:   Tue Jan 17 18:55:56 2012 +0100

    update to 3.6.7

 .gitignore               |   11 +++++++--
 php-phpunit-PHPUnit.spec |   48 +++++++++++++++++++--------------------------
 sources                  |    2 +-
 3 files changed, 29 insertions(+), 32 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 08d0043..b8aa307 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,9 @@
-*~
+*spec~
 package*.xml
-/PHPUnit-3.5.14.tgz
-/PHPUnit-3.5.15.tgz
+/PHPUnit-3.6.0.tgz
+/PHPUnit-3.6.2.tgz
+/PHPUnit-3.6.3.tgz
+/PHPUnit-3.6.4.tgz
+/PHPUnit-3.6.5.tgz
+/PHPUnit-3.6.6.tgz
+/PHPUnit-3.6.7.tgz
diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec
index 90632cd..bdcf8f2 100644
--- a/php-phpunit-PHPUnit.spec
+++ b/php-phpunit-PHPUnit.spec
@@ -3,9 +3,9 @@
 %global channel pear.phpunit.de
 
 Name:           php-phpunit-PHPUnit
-Version:        3.5.15
+Version:        3.6.7
 Release:        1%{?dist}
-Summary:        Regression testing framework for unit tests
+Summary:        The PHP Unit Testing framework
 
 Group:          Development/Libraries
 License:        BSD
@@ -15,27 +15,25 @@ Source0:        http://pear.phpunit.de/get/%{pear_name}-%{version}.tgz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
-BuildRequires:  php-pear(PEAR) >= 1.9.0
+BuildRequires:  php-pear(PEAR) >= 1.9.4
 BuildRequires:  php-channel(%{channel})
 
 Requires:       php-xml >= 5.2.7
 Requires:       php-channel(%{channel})
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
-Requires:       php-pear(%{channel}/File_Iterator) >= 1.2.3
-Requires:       php-pear(%{channel}/Text_Template) >= 1.0.0
-Requires:       php-pear(%{channel}/PHP_CodeCoverage) >= 1.0.2
-Requires:       php-pear(%{channel}/PHP_Timer) >= 1.0.0
+Requires:       php-pear(%{channel}/File_Iterator) >= 1.3.0
+Requires:       php-pear(%{channel}/Text_Template) >= 1.1.1
+Requires:       php-pear(%{channel}/PHP_CodeCoverage) >= 1.1.0
+Requires:       php-pear(%{channel}/PHP_Timer) >= 1.0.1
 Requires:       php-pear(pear.symfony-project.com/YAML) >= 1.0.2
 # PHPUnit Extensions (yes, with circular dependency on PHPUnit)
-Requires:       php-pear(%{channel}/PHPUnit_MockObject) >= 1.0.3
-Requires:       php-pear(%{channel}/PHPUnit_Selenium) >= 1.0.1
-Requires:       php-pear(%{channel}/DbUnit) >= 1.0.0
+Requires:       php-pear(%{channel}/PHPUnit_MockObject) >= 1.1.0
 
 # Optionnal dependencies
 Requires:       php-json php-pdo php-mbstring
 Requires:       php-pecl(Xdebug) >= 2.0.5
-Requires:       php-pear(XML_RPC2)
+Requires:       php-pear(%{channel}/PHP_Invoker) >= 1.0.0
 
 Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
 Obsoletes:      php-pear-PHPUnit < %{version}
@@ -52,18 +50,9 @@ for the creation, execution and analysis of Unit Tests.
 
 %prep
 %setup -qc
-# Create a "localized" php.ini to avoid build warning
-cp /etc/php.ini .
-echo "date.timezone=UTC" >>php.ini
-
 cd %{pear_name}-%{version}
-# package.xml is V2 - hack to lower PEAR dependency
-%{_bindir}/php <<EOF
-<?php
-\$xml = simplexml_load_file("../package.xml"); 
-\$xml->dependencies->required->pearinstaller->min="1.9.0";
-file_put_contents("%{name}.xml",\$xml->asXML());
-EOF
+# package.xml is V2
+mv ../package.xml %{name}.xml
 
 
 %build
@@ -72,22 +61,22 @@ cd %{pear_name}-%{version}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 cd %{pear_name}-%{version}
 
 # Install Package
-PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
+%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
 
 # Clean up unnecessary files
-rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+rm -rf %{buildroot}%{pear_phpdir}/.??*
 
 # Install XML package description
-install -d $RPM_BUILD_ROOT%{pear_xmldir}
-install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+install -d %{buildroot}%{pear_xmldir}
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %post
@@ -116,6 +105,9 @@ fi
 
 
 %changelog
+* Thu Jan 05 2012 Remi Collet <remi at fedoraproject.org> - 3.6.7-1
+- Version 3.6.7 (stable) - API 3.6.0 (stable)
+
 * Fri Aug 19 2011 Remi Collet <remi at fedoraproject.org> - 3.5.15-1
 - Version 3.5.15 (stable) - API 3.5.7 (stable)
 - doc in /usr/share/doc/pear
diff --git a/sources b/sources
index d5ba7f1..2186c42 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-73dabdddb977d41518badb32075f19fd  PHPUnit-3.5.15.tgz
+9bb692426c279188e2d28ca4542f2f09  PHPUnit-3.6.7.tgz


More information about the scm-commits mailing list