From d0bbefb3c309b8821f9e414590d019f5ff13a5d7 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: May 10 2018 11:17:26 +0000 Subject: abrt do not require python2 if "with python3" Signed-off-by: Matej Habrnal --- diff --git a/abrt.spec b/abrt.spec index e2ce70e..5d27865 100644 --- a/abrt.spec +++ b/abrt.spec @@ -61,7 +61,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 2.10.9 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -113,13 +113,14 @@ Requires: systemd Requires: %{name}-libs = %{version}-%{release} Requires: python3-%{name} = %{version}-%{release} Requires(pre): %{shadow_utils} +%if %{with python3} +Requires: python3-augeas +Requires: python3-dbus +%else %if %{with python2} Requires: python2-augeas Requires: python2-dbus %endif # with python2 -%if %{with python3} -Requires: python3-augeas -Requires: python3-dbus %endif # with python3 %ifarch aarch64 i686 x86_64 Requires: dmidecode @@ -1255,7 +1256,10 @@ killall abrt-dbus >/dev/null 2>&1 || : %config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh %changelog -* Wed May 09 2018 Matej Habrnal 2.10.9-4Thu May 03 +* Thu May 10 2018 Matej Habrnal 2.10.9-5 +- abrt do not require python2 if "with python3" + +* Wed May 09 2018 Matej Habrnal 2.10.9-4 - abrt-addon-ccpp do not require python2 if "with python3" * Thu May 03 2018 Matej Habrnal 2.10.9-3