summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-21 15:26:30 +0200
committerRemi Collet <fedora@famillecollet.com>2015-10-21 15:26:30 +0200
commite7f660747d2d3750daf0b435ad2efd19be9aaa1a (patch)
tree975c763eaa214fda9767b1cdfe4f20a7ea2e9eb7
parent3da1e734a98222dd0f71a33c1ab74f997033f732 (diff)
php-horde-ingo: rawhide changes
-rw-r--r--php-horde-ingo.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/php-horde-ingo.spec b/php-horde-ingo.spec
index f7e46d7..c352585 100644
--- a/php-horde-ingo.spec
+++ b/php-horde-ingo.spec
@@ -9,6 +9,7 @@
%{!?__pear: %global __pear %{_bindir}/pear}
%global pear_name ingo
%global pear_channel pear.horde.org
+%global with_tests 0%{!?_without_tests:1}
Name: php-horde-ingo
Version: 3.2.7
@@ -27,8 +28,10 @@ BuildRequires: php(language) >= 5.3.0
BuildRequires: php-pear(PEAR) >= 1.7.0
BuildRequires: php-channel(%{pear_channel})
BuildRequires: php-pear(%{pear_channel}/Horde_Role) >= 1.0.0
+%if %{with_tests}
BuildRequires: php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
BuildRequires: php-pear(%{pear_channel}/Horde_Core) >= 2.12.0
+%endif
Requires(post): %{__pear}
Requires(postun): %{__pear}
@@ -150,8 +153,15 @@ done | tee ../%{pear_name}.lang
%check
+%if %{with_tests}
cd %{pear_name}-%{version}/test/Ingo
-phpunit .
+if phpunit --atleast-version 4
+then phpunit .
+else : PHPUnit is too old
+fi
+%else
+: tests disabled
+%endif
%clean