diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-21 15:26:30 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-21 15:26:30 +0200 |
commit | e7f660747d2d3750daf0b435ad2efd19be9aaa1a (patch) | |
tree | 975c763eaa214fda9767b1cdfe4f20a7ea2e9eb7 /php-horde-ingo.spec | |
parent | 3da1e734a98222dd0f71a33c1ab74f997033f732 (diff) |
php-horde-ingo: rawhide changes
Diffstat (limited to 'php-horde-ingo.spec')
-rw-r--r-- | php-horde-ingo.spec | 12 |
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 |