https://bugzilla.redhat.com/show_bug.cgi?id=1948197
--- Comment #16 from fujiwara tfujiwar@redhat.com --- All I do at the moment is to move both the postinstall and postuninstall to %posttrans but I don't know if it can resolve your issue since I cannot reproduce it.
You can see the postscript with `rpm -q --scripts ibus-anthy`.