diff --git a/hunspell.spec b/hunspell.spec index 3b0b5ba..9a05aa2 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -37,6 +37,7 @@ Includes and definitions for developing with hunspell %package filesystem Summary: Hunspell filesystem layout +Requires(post): coreutils %description filesystem Provides a directory in which to store dictionaries provided by other @@ -113,10 +114,10 @@ if old_st and old_st.type == "directory" and not new_st then os.rename(old_path, new_path) end -%post filesystem -p -if not posix.stat("%{_datadir}/myspell") then - posix.symlink("%{_datadir}/hunspell", "%{_datadir}/myspell") -end +%post filesystem +if [ ! -e "%{_datadir}/myspell" ]; then + %__ln_s %{_datadir}/hunspell %{_datadir}/myspell +fi %endif %files -f %{name}.lang