summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Routes.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-horde-Horde-Routes.spec')
-rw-r--r--php-horde-Horde-Routes.spec24
1 files changed, 17 insertions, 7 deletions
diff --git a/php-horde-Horde-Routes.spec b/php-horde-Horde-Routes.spec
index 8d062d9..5c81322 100644
--- a/php-horde-Horde-Routes.spec
+++ b/php-horde-Horde-Routes.spec
@@ -5,14 +5,18 @@
Name: php-horde-Horde-Routes
Version: 2.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Horde Routes URL mapping system
Group: Development/Libraries
-License: BSD-2-Clause
+License: BSD
URL: http://pear.horde.org
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
+# http://bugs.horde.org/ticket/11894
+# Horde_Routes: Array to string conversion
+Patch0: %{pear_name}-php54.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear(PEAR) >= 1.7.0
@@ -23,10 +27,12 @@ BuildRequires: php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires: php-pear(PEAR) >= 1.7.0
-Requires: php(language) >= 5.3.0
+Requires: php-common >= 5.3.0
Requires: php-pcre
Requires: php-spl
# note xml extension provided by php-common and not php-xml
+# but this will change in a near futur
+Requires: php-xml
Requires: php-channel(%{pear_channel})
Requires: php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
Conflicts: php-pear(%{pear_channel}/Horde_Exception) >= 3.0.0
@@ -46,7 +52,9 @@ It is a port of a Python library, Routes, by Ben Bangert
%setup -q -c
cd %{pear_name}-%{version}
-cp ../package.xml %{name}.xml
+%patch0 -p0 -b .php54
+sed -e '/Mapper.php/s/md5sum.*name/name/' \
+ ../package.xml >%{name}.xml
%build
@@ -68,11 +76,10 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
%check
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
-# PHP 5.4 issue (Array to string conversion)
phpunit\
-d include_path=%{buildroot}%{pear_phpdir}:.:%{pear_phpdir} \
-d date.timezone=UTC \
- . || exit 0
+ .
%post
@@ -95,5 +102,8 @@ fi
%changelog
-* Mon Nov 19 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.0.1-1
+* Sat Dec 15 2012 Remi Collet <remi@fedoraproject.org> - 2.0.1-2
+- add patch for http://bugs.horde.org/ticket/11894
+
+* Mon Nov 19 2012 Remi Collet <remi@fedoraproject.org> - 2.0.1-1
- Initial package