diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-05-08 11:08:38 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-05-08 11:08:38 +0200 |
commit | 30e8b38be7ffb641246813389538910074af1d5a (patch) | |
tree | eb1769c021e364218927a0d748a373be0949210e | |
parent | cbdc38be9610b7c4e1a44077dcb3a37dc56f0f5b (diff) |
horde more cleanups
-rw-r--r-- | php-horde-Horde-Timezone.spec | 9 |
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 \ . |