summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Util.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-03-03 12:09:52 +0100
committerRemi Collet <fedora@famillecollet.com>2015-03-03 12:09:52 +0100
commit4d892e63132fe6a1ddf8104503e6dcde53201933 (patch)
treedf153e7e93355b24955a8e52d4fc848c5efa8cb9 /php-horde-Horde-Util.spec
parent1cdc2ca52fb3127cd357408b02cd9d1332741bab (diff)
php-horde-Horde-Util: 2.5.4
Diffstat (limited to 'php-horde-Horde-Util.spec')
-rw-r--r--php-horde-Horde-Util.spec18
1 files changed, 15 insertions, 3 deletions
diff --git a/php-horde-Horde-Util.spec b/php-horde-Horde-Util.spec
index 5bfa0e6..3e872a3 100644
--- a/php-horde-Horde-Util.spec
+++ b/php-horde-Horde-Util.spec
@@ -8,14 +8,17 @@
# Please, preserve the changelog entries
#
%{!?__pear: %global __pear %{_bindir}/pear}
+%global bootstrap 0
%global pear_name Horde_Util
%global pear_channel pear.horde.org
-
-# Can run test because of circular dependency with Horde_Test
+%if %{bootstrap}
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%else
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+%endif
Name: php-horde-Horde-Util
-Version: 2.5.3
+Version: 2.5.4
Release: 1%{?dist}
Summary: Horde Utility Libraries
@@ -89,8 +92,13 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
%check
%if %{with_tests}
+export LANG=fr_FR.utf8
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
+%if 0%{?rhel} == 5
+phpunit . || : Test suite result ignored
+%else
phpunit .
+%endif
%else
: Test disabled, missing '--with tests' option.
%endif
@@ -122,6 +130,10 @@ fi
%changelog
+* Tue Mar 03 2015 Remi Collet <remi@fedoraproject.org> - 2.5.4-1
+- Update to 2.5.4
+- enable the test suite during build
+
* Wed Feb 11 2015 Remi Collet <remi@fedoraproject.org> - 2.5.3-1
- Update to 2.5.3
- add provides php-composer(horde/horde-util)