diff --git a/mysql-selinux.spec b/mysql-selinux.spec index 1b0f71d..afbf8a0 100644 --- a/mysql-selinux.spec +++ b/mysql-selinux.spec @@ -5,13 +5,14 @@ Name: mysql-selinux Version: 1.0.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3 URL: https://github.com/kubco2/mysql-selinux Summary: SELinux policies for product Source0: mysql-selinux.tar.gz BuildArch: noarch BuildRequires: selinux-policy-devel +Requires(post): policycoreutils %{?selinux_requires} %description @@ -34,11 +35,11 @@ install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages %check %post -%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || : %postun if [ $1 -eq 0 ]; then - %selinux_modules_uninstall -s %{selinuxtype} %{modulename} + %selinux_modules_uninstall -s %{selinuxtype} %{modulename} || : fi %posttrans @@ -51,6 +52,9 @@ fi %license COPYING %changelog +* Thu Jan 10 2019 Kevin Fenzi - 1.0.0-6 +- Add Requires(post) on policycoreutils for semodule and make sure post/postun cannot fail + * Thu Dec 06 2018 Jakub Janco - 1.0.0-5 - Sync with upstream