summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-05 11:04:27 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-05 11:04:27 +0200
commit117ea75278e11c55bd23aea5c771abbae3edb0f5 (patch)
treee7acf2830700c511df197fd70cae6b0895db4858
parentb95a1cf690a94e0beae5dba22157f5e71d8329ff (diff)
php-horde-Horde-Kolab-Storage: cleanup
-rw-r--r--php-horde-Horde-Kolab-Storage.spec7
1 files changed, 2 insertions, 5 deletions
diff --git a/php-horde-Horde-Kolab-Storage.spec b/php-horde-Horde-Kolab-Storage.spec
index 694cf28..47f0426 100644
--- a/php-horde-Horde-Kolab-Storage.spec
+++ b/php-horde-Horde-Kolab-Storage.spec
@@ -118,15 +118,12 @@ done | tee ../%{pear_name}.lang
%check
src=$(pwd)/%{pear_name}-%{version}
-
-# Retrieve version of Horde_Kolab_Format
-#format=$(sed -n "/VERSION = /{s/.* '//;s/'.*$//;p}" %{pear_phpdir}//Horde/Kolab/Format.php)
-
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
-# Fix test executed from sources
+# Retrieve version of Horde_Kolab_Format
VER=$(sed -n "/const VERSION/{s/.* '//;s/'.*\$//;p}" %{pear_phpdir}/Horde/Kolab/Format.php)
+# Fix test executed from sources
sed -e "s/Horde_Kolab_Format_Xml-@version@/Horde_Kolab_Format_Xml-${VER}/" \
-e "s/Horde_Kolab_Storage @version@/Horde_Kolab_Storage %{version}/" \
-i ComponentTest/Data/Object/Message/ModifiedTest.php \