From 5a96c950cd2a52438baf372f8b85e9fcd7977f30 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 7 Nov 2017 11:59:40 +0100 Subject: [PATCH] simplify BuildRequires for python3 Signed-off-by: Igor Gnatenko --- dnf.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dnf.spec b/dnf.spec index 091e474..53924a6 100644 --- a/dnf.spec +++ b/dnf.spec @@ -167,13 +167,11 @@ Requires: python3-hawkey >= %{hawkey_version} Requires: python3-iniparse Requires: python3-libcomps >= %{libcomps_version} Requires: python3-librepo >= %{librepo_version} -%if 0%{?rhel} && 0%{?rhel} <= 7 -BuildRequires: rpm-python3 >= %{rpm_version} -Requires: rpm-python3 >= %{rpm_version} -Requires: rpm-plugin-systemd-inhibit -%else BuildRequires: python3-rpm >= %{rpm_version} Requires: python3-rpm >= %{rpm_version} +%if 0%{?rhel} && 0%{?rhel} <= 7 +Requires: rpm-plugin-systemd-inhibit +%else Recommends: rpm-plugin-systemd-inhibit %endif # dnf-langpacks package is retired in F25