summaryrefslogtreecommitdiffstats
path: root/php-horde-Horde-Timezone.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-horde-Horde-Timezone.spec')
-rw-r--r--php-horde-Horde-Timezone.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/php-horde-Horde-Timezone.spec b/php-horde-Horde-Timezone.spec
index de4e8f1..1cf0cce 100644
--- a/php-horde-Horde-Timezone.spec
+++ b/php-horde-Horde-Timezone.spec
@@ -1,3 +1,4 @@
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name Horde_Timezone
%global pear_channel pear.horde.org
@@ -8,7 +9,7 @@ Release: 1%{?dist}
Summary: Timezone library
Group: Development/Libraries
-# missing COPYING file
+# missing COPYING file
License: LGPLv2
URL: http://%{pear_channel}
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
@@ -66,10 +67,12 @@ rm -rf %{buildroot}%{pear_metadir}/.??*
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
+
%check
+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 \
.