diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-01-15 18:01:08 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-01-15 18:01:08 +0100 |
commit | fa7527d8d270b72b39e950bc74bc9be2f2636162 (patch) | |
tree | 784080e7c4501c3ff45b3eac668cd9d99f9bf5dd | |
parent | fc9e89f98591b9742c48d314b3714158ad9a1a83 (diff) |
php-horde-Horde-Mime-Viewer: manage update from dir to link
-rw-r--r-- | php-horde-Horde-Mime-Viewer.spec | 8 |
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 || : |