diff --git a/.gitignore b/.gitignore index d761186..d7d7e15 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ test/pkgs/repo /test/pkgs/dnf-daemon-test.repo *~ build/ +/.idea/ diff --git a/dnfdaemon.spec b/dnfdaemon.spec index d317306..1990010 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -45,14 +45,18 @@ Summary: SELinux integration for dnfdaemon Requires: %{name} = %{version}-%{release} -%if 0%{?fedora} >= 23 || 0%{?mageia} >= 6 +%if 0%{?fedora} >= 23 || 0%{?mageia} >= 6 || 0%{?rhel} >= 9 Requires(post): policycoreutils-python-utils Requires(postun): policycoreutils-python-utils %else +%if 0%{?rhel} == 8 +Requires(post): policycoreutils-python3 +Requires(postun): policycoreutils-python3 +%else Requires(post): policycoreutils-python Requires(postun): policycoreutils-python %endif - +%endif # Use boolean weak reverse dependencies # http://rpm.org/user_doc/dependencies.html#weak-dependencies # http://rpm.org/user_doc/boolean_dependencies.html