diff --git a/selinux-policy.spec b/selinux-policy.spec index fd27e30..cc7fb92 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -77,6 +77,7 @@ Group: System Environment/Base Requires(pre): selinux-policy = %{version}-%{release} Requires: m4 checkpolicy >= %{CHECKPOLICYVER} Requires: /usr/bin/make +Requires(post): policycoreutils-devel >= %{POLICYCOREUTILSVER} %description devel SELinux policy development and man page package @@ -94,6 +95,9 @@ SELinux policy development and man page package %{_usr}/share/selinux/devel/example.* %{_usr}/share/selinux/devel/policy.* +%post devel +selinuxenabled && /usr/bin/sepolgen-ifgen 2>/dev/null + %package doc Summary: SELinux policy documentation Group: System Environment/Base