summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-horde-Horde-Mime-Viewer.spec8
1 files changed, 8 insertions, 0 deletions
diff --git a/php-horde-Horde-Mime-Viewer.spec b/php-horde-Horde-Mime-Viewer.spec
index 5c56b20..2eebf20 100644
--- a/php-horde-Horde-Mime-Viewer.spec
+++ b/php-horde-Horde-Mime-Viewer.spec
@@ -107,6 +107,14 @@ mkdir -p %{buildroot}%{pear_hordedir}/js
ln -s %{_datadir}/syntaxhighlighter %{buildroot}%{pear_hordedir}/js/syntaxhighlighter
+%pre
+# directory replace by a link
+if [ -d %{pear_hordedir}/js/syntaxhighlighter ]
+then
+ rm -rf %{pear_hordedir}/js/syntaxhighlighter
+fi
+
+
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{name}.xml >/dev/null || :