From 30e8b38be7ffb641246813389538910074af1d5a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 8 May 2013 11:08:38 +0200 Subject: horde more cleanups --- php-horde-Horde-Timezone.spec | 9 ++++++--- 1 file 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 \ . -- cgit