From 57baf9aea18157ff1873d7344045b951ec5668c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 27 Sep 2019 00:54:35 +0200 Subject: [PATCH] Make obsoleted package removed without asking Messages provided by dnf are somehow confusing. If user wants more recent version, let it upgrade without additional flags to dnf. --- unbound.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unbound.spec b/unbound.spec index 1e68024..5e20860 100644 --- a/unbound.spec +++ b/unbound.spec @@ -110,6 +110,10 @@ The devel package contains the unbound library and the include files %package libs Summary: Libraries used by the unbound server and client applications Requires(pre): shadow-utils +%if ! 0%{with_python2} +# Make explicit conflict with no longer provided python package +Obsoletes: python2-unbound < 1.9.3 +%endif %description libs Contains libraries used by the unbound server and client applications @@ -132,7 +136,7 @@ Summary: Python 3 modules and extensions for unbound Requires: %{name}-libs%{?_isa} = %{version}-%{release} %if ! 0%{with_python2} # Make explicit conflict with no longer provided python package -Obsoletes: python2-unbound <= 1.8.3 +Conflicts: python2-unbound < 1.9.3 %endif %description -n python3-unbound