From 54c1c04c683c48762dd0436f88ae6d6c5bf91ae1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 10 Feb 2022 16:12:15 +0800 Subject: [PATCH] revert the filesystem %post scriptlet to use bash (#2041930) It broken rpm-ostree composes: https://github.com/coreos/rpm-ostree/issues/3418 --- hunspell.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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