summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Argv.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-horde-Horde-Argv.spec')
-rw-r--r--php-horde-Horde-Argv.spec19
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