From dfea32bcb1c75895355dc7da81a322cf1b421178 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Mon, 4 Sep 2023 18:20:58 +0200 Subject: [PATCH 1/5] RHEL uses another name. --- dnfdaemon.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnfdaemon.spec b/dnfdaemon.spec index d317306..a503523 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -48,6 +48,9 @@ Requires: %{name} = %{version}-%{release} %if 0%{?fedora} >= 23 || 0%{?mageia} >= 6 Requires(post): policycoreutils-python-utils Requires(postun): policycoreutils-python-utils +%elseif 0%{?rhel} >= 8 +Requires(post): policycoreutils-python3 +Requires(postun): policycoreutils-python3 %else Requires(post): policycoreutils-python Requires(postun): policycoreutils-python From 5aff5f77f08883121c9d9c4154f5ea3a15c78e94 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Wed, 20 Dec 2023 16:39:10 +0100 Subject: [PATCH 2/5] RHEL uses another name. --- dnfdaemon.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnfdaemon.spec b/dnfdaemon.spec index a503523..9861221 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -45,10 +45,10 @@ 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 -%elseif 0%{?rhel} >= 8 +%elseif 0%{?rhel} == 8 Requires(post): policycoreutils-python3 Requires(postun): policycoreutils-python3 %else From b6c80f1bdd8727ab470cce353676ac8169a4821d Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Wed, 20 Dec 2023 16:42:17 +0100 Subject: [PATCH 3/5] RHEL uses another name. --- dnfdaemon.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnfdaemon.spec b/dnfdaemon.spec index 9861221..f2c1aa0 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -48,7 +48,7 @@ Requires: %{name} = %{version}-%{release} %if 0%{?fedora} >= 23 || 0%{?mageia} >= 6 || 0%{?rhel} >= 9 Requires(post): policycoreutils-python-utils Requires(postun): policycoreutils-python-utils -%elseif 0%{?rhel} == 8 +%elseif 0%{?rhel} = 8 Requires(post): policycoreutils-python3 Requires(postun): policycoreutils-python3 %else From 46d7884678b9b753d1e6842d5a3a178d342ce031 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Wed, 20 Dec 2023 17:08:15 +0100 Subject: [PATCH 4/5] RHEL uses another name. --- dnfdaemon.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnfdaemon.spec b/dnfdaemon.spec index f2c1aa0..6027d59 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -48,7 +48,7 @@ Requires: %{name} = %{version}-%{release} %if 0%{?fedora} >= 23 || 0%{?mageia} >= 6 || 0%{?rhel} >= 9 Requires(post): policycoreutils-python-utils Requires(postun): policycoreutils-python-utils -%elseif 0%{?rhel} = 8 +%else %if 0%{?rhel} == 8 Requires(post): policycoreutils-python3 Requires(postun): policycoreutils-python3 %else From 75a58a9cdfda78a08d55693c9be98424285c6604 Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Wed, 20 Dec 2023 17:11:47 +0100 Subject: [PATCH 5/5] RHEL uses another name. --- .gitignore | 1 + dnfdaemon.spec | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 6027d59..1990010 100644 --- a/dnfdaemon.spec +++ b/dnfdaemon.spec @@ -48,14 +48,15 @@ Requires: %{name} = %{version}-%{release} %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 +%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