From Fedora Project Wiki
Couple items:
- This is redundant:
Requires: selinux-policy-targeted Requires(post): selinux-policy-targeted
Simply keep the second line.
- Would it be possible to generate the selinux module man page without installing the policy? It would be nice to be able to build that along with the package. This would also allow use of the install rule in the example Makefile.
- The %post script can generate:
libsemanage.semanage_direct_install_info: Overriding fail2ban module at lower priority 100 with module at priority 200.
if overriding system policy. Scriptlets shouldn't generate output so probably want a >/dev/null 2>&1 added.