diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-01-30 09:48:55 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-01-30 09:48:55 +0100 |
commit | 79d1528ae7f1c3c9ee88fcde526b853486eca979 (patch) | |
tree | 2384f169574710a4f6e1086e4373205eb6e7da2c | |
parent | f8967b8301e7116220a4bb986f78b5323aa55582 (diff) |
php-horde-Horde-Argv: enable tests during build
-rw-r--r-- | php-horde-Horde-Argv.spec | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/php-horde-Horde-Argv.spec b/php-horde-Horde-Argv.spec index 52df8db..95055c0 100644 --- a/php-horde-Horde-Argv.spec +++ b/php-horde-Horde-Argv.spec @@ -3,12 +3,9 @@ %global pear_name Horde_Argv %global pear_channel pear.horde.org -# Need locale, so need package to be installed -%global with_tests %{?_with_tests:1}%{!?_with_tests:0} - Name: php-horde-Horde-Argv Version: 2.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Horde command-line argument parsing package Group: Development/Libraries @@ -21,10 +18,8 @@ BuildArch: noarch BuildRequires: php-pear(PEAR) >= 1.7.0 BuildRequires: php-channel(%{pear_channel}) BuildRequires: gettext -%if %{with_tests} # To run unit tests BuildRequires: php-pear(%{pear_channel}/Horde_Test) >= 2.1.0 -%endif Requires(post): %{__pear} Requires(postun): %{__pear} @@ -86,15 +81,12 @@ done | tee ../%{pear_name}.lang %check -%if %{with_tests} +src=$(pwd)/%{pear_name}-%{version} cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g) -phpunit\ - -d include_path=%{buildroot}%{pear_phpdir}:.:%{pear_phpdir} \ +phpunit \ + -d include_path=$src/lib:.:%{pear_phpdir} \ -d date.timezone=UTC \ . -%else -: Test disabled, missing '--with tests' option. -%endif %post @@ -119,6 +111,9 @@ fi %changelog +* Wed Jan 30 2013 Remi Collet <RPMS@FamilleCollet.com> - 2.0.4-2 +- enable tests during build + * Tue Jan 29 2013 Remi Collet <RPMS@FamilleCollet.com> - 2.0.4-1 - Update to 2.0.4 for remi repo |