https://bugzilla.redhat.com/show_bug.cgi?id=2097925 --- Comment #4 from Rob Crittenden <rcritten@xxxxxxxxxx> --- There are SELinux macros to simply the pre/post scripts. I'm not sure if you're future-proofing by support multiple variants but generally this is just targeted. I'm assuming single value below. This is merely a suggestion. %pre selinux %selinux_relabel_pre -s %{selinuxvariants} %post selinux semodule -d cepces &> /dev/null || true; %selinux_modules_install -s %{selinuxvariants} %{_datadir}/selinux/packages/%{selinuxvariants}/%{modulename}.pp.bz2 %postun selinux if [ $1 -eq 0 ]; then %selinux_modules_uninstall -s %{selinuxvariants} %{modulename} semodule -e cepces &> /dev/null || true; fi %posttrans selinux %selinux_relabel_post -s %{selinuxvariants} -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component https://bugzilla.redhat.com/show_bug.cgi?id=2097925 _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure