[php-phpunit-PHPUnit-Selenium] lower PEAR dependency to allow el6 build

Remi Collet remi at fedoraproject.org
Fri Nov 5 19:03:15 UTC 2010


commit 1f9ceea11635ecd157d2d4f9ee38cfcbc039fa4a
Author: remi <fedora at famillecollet.com>
Date:   Fri Nov 5 20:03:02 2010 +0100

    lower PEAR dependency to allow el6 build

 php-phpunit-PHPUnit-Selenium.spec |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/php-phpunit-PHPUnit-Selenium.spec b/php-phpunit-PHPUnit-Selenium.spec
index 1478509..451c4d2 100644
--- a/php-phpunit-PHPUnit-Selenium.spec
+++ b/php-phpunit-PHPUnit-Selenium.spec
@@ -4,17 +4,17 @@
 
 Name:           php-phpunit-PHPUnit-Selenium
 Version:        1.0.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Selenium RC integration for PHPUnit
 
 Group:          Development/Libraries
 License:        BSD
-URL:            http://pear.phpunit.de/
+URL:            https://github.com/sebastianbergmann/phpunit-selenium
 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.1
+BuildRequires:  php-pear(PEAR) >= 1.9.0
 BuildRequires:  php-channel(%{channel})
 
 Requires(post): %{__pear}
@@ -36,8 +36,13 @@ cp /etc/php.ini .
 echo "date.timezone=UTC" >>php.ini
 
 cd %{pear_name}-%{version}
-# package.xml is V2
-mv ../package.xml %{name}.xml
+# 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
 
 
 %build
@@ -82,6 +87,10 @@ fi
 
 
 %changelog
+* Fri Nov 05 2010 Remi Collet <Fedora at famillecollet.com> - 1.0.0-2
+- lower PEAR dependency to allow el6 build
+- fix URL
+
 * Sun Sep 26 2010 Remi Collet <Fedora at famillecollet.com> - 1.0.0-1
 - initial generated spec + clean
 


More information about the scm-commits mailing list