revert the filesystem %post scriptlet to use bash (#2041930)

It broken rpm-ostree composes: https://github.com/coreos/rpm-ostree/issues/3418
This commit is contained in:
Jens Petersen 2022-02-10 16:12:15 +08:00
parent 07fa42d0d1
commit 54c1c04c68

View File

@ -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 <lua>
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