[php-phpunit-PHP-Invoker/el6: 2/2] hack to lower PEAR version required on EL-6
Remi Collet
remi at fedoraproject.org
Tue Nov 1 13:23:47 UTC 2011
commit 893c98c08b8a89741c2e7c3fc1f0a41a068d7154
Author: remi <fedora at famillecollet.com>
Date: Tue Nov 1 14:23:35 2011 +0100
hack to lower PEAR version required on EL-6
php-phpunit-PHP-Invoker.spec | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/php-phpunit-PHP-Invoker.spec b/php-phpunit-PHP-Invoker.spec
index 5679da3..c742ead 100644
--- a/php-phpunit-PHP-Invoker.spec
+++ b/php-phpunit-PHP-Invoker.spec
@@ -15,12 +15,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.4
+BuildRequires: php-pear(PEAR) >= 1.9.0
BuildRequires: php-channel(%{channel})
Requires(post): %{__pear}
Requires(postun): %{__pear}
-Requires: php-pear(PEAR) >= 1.9.4
+Requires: php-pear(PEAR) >= 1.9.0
Requires: php-channel(%{channel})
# merge php-cntl + php >= 5.2.7, php-cli provides php-pcntl
Requires: php-cli >= 5.2.7
@@ -35,7 +35,12 @@ Utility class for invoking callables with a timeout.
%setup -q -c
cd %{pear_name}-%{version}
# package.xml is V2
-mv ../package.xml %{name}.xml
+%{_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
@@ -79,6 +84,9 @@ fi
%changelog
+* Tue Nov 01 2011 Remi Collet <remi at fedoraproject.org> - 1.0.0-3.el6
+- lower PEAR version required on EL-6
+
* Tue Nov 01 2011 Remi Collet <remi at fedoraproject.org> - 1.0.0-3
- fix provides
More information about the scm-commits
mailing list