[php-phpunit-PHPUnit-Selenium/el6] update to 1.2.0

Remi Collet remi at fedoraproject.org
Tue Jan 17 18:09:45 UTC 2012


commit c31111fce4eacdeacef28ec23ebc470d15c42028
Author: remi <fedora at famillecollet.com>
Date:   Tue Jan 17 19:09:18 2012 +0100

    update to 1.2.0

 .gitignore                        |    8 ++++++-
 php-phpunit-PHPUnit-Selenium.spec |   43 ++++++++++++++----------------------
 sources                           |    2 +-
 3 files changed, 25 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ad451d1..b102479 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,9 @@
+*~
 package*.xml
-/PHPUnit_Selenium-1.0.1.tgz
 /PHPUnit_Selenium-1.0.2.tgz
+/PHPUnit_Selenium-1.0.3.tgz
+/PHPUnit_Selenium-1.1.0.tgz
+/PHPUnit_Selenium-1.1.1.tgz
+/PHPUnit_Selenium-1.1.2.tgz
+/PHPUnit_Selenium-1.1.3.tgz
+/PHPUnit_Selenium-1.2.0.tgz
diff --git a/php-phpunit-PHPUnit-Selenium.spec b/php-phpunit-PHPUnit-Selenium.spec
index ebdb47c..7f04541 100644
--- a/php-phpunit-PHPUnit-Selenium.spec
+++ b/php-phpunit-PHPUnit-Selenium.spec
@@ -3,7 +3,7 @@
 %global channel pear.phpunit.de
 
 Name:           php-phpunit-PHPUnit-Selenium
-Version:        1.0.2
+Version:        1.2.0
 Release:        1%{?dist}
 Summary:        Selenium RC integration for PHPUnit
 
@@ -14,12 +14,12 @@ 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(post): %{__pear}
 Requires(postun): %{__pear}
-Requires:       php-pear(%{channel}/PHPUnit) >= 3.5.0
+Requires:       php-pear(%{channel}/PHPUnit) >= 3.6.0
 Requires:       php-common >= 5.2.7
 
 Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
@@ -31,22 +31,9 @@ Selenium RC integration for PHPUnit
 
 %prep
 %setup -q -c
-# Create a "localized" php.ini to avoid build warning
-cp /etc/php.ini .
-echo "date.timezone=UTC" >>php.ini
-
-# Create links for standard RPM docdir (to standard PEAR docdir)
-ln -s %{pear_docdir}/%{pear_name}/LICENSE            LICENSE
-ln -s %{pear_docdir}/%{pear_name}/ChangeLog.markdown CHANGELOG
-
 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
@@ -55,20 +42,20 @@ cd %{pear_name}-%{version}
 
 
 %install
+rm -rf %{buildroot}
 cd %{pear_name}-%{version}
-rm -rf $RPM_BUILD_ROOT docdir
-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
-mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
-install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+mkdir -p %{buildroot}%{pear_xmldir}
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %post
@@ -84,15 +71,19 @@ fi
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE CHANGELOG
 %doc %{pear_docdir}/%{pear_name}
 %{pear_xmldir}/%{name}.xml
 %{pear_phpdir}/PHPUnit/Extensions/SeleniumTestCase
-%{pear_phpdir}/PHPUnit/Extensions/Story/SeleniumTestCase.php
 %{pear_phpdir}/PHPUnit/Extensions/SeleniumTestCase.php
 
 
 %changelog
+* Mon Jan 16 2012 Remi Collet <remi at fedoraproject.org> - 1.2.0-1
+- Version 1.2.0 (stable) - API 1.2.0 (stable)
+- remove PEAR hack
+- raise PEAR dependency to 1.9.4
+- doc in /usr/share/doc/pear
+
 * Tue Jan 18 2011 Remi Collet <Fedora at famillecollet.com> - 1.0.2-1
 - Version 1.0.2 (stable) - API 1.0.0 (stable)
 - CHANGELOG and LICENSE are now in the tarball
diff --git a/sources b/sources
index 3015b84..1f9dba6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1df5e1af44e5f54ae57c8a177ab5dadf  PHPUnit_Selenium-1.0.2.tgz
+bdbe2bd1902142521bf1e88152ef3c75  PHPUnit_Selenium-1.2.0.tgz


More information about the scm-commits mailing list