From ec7193f9fa62799eaa36ff61bcb57a063d51e2e9 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Nov 11 2016 08:19:07 +0000
Subject: Expand python subpackage obsoletion range (related: #1394125)


Since everything from F23 to rawhide is moving to 4.13.0 based
rpm the obsoletion range needs to match anything older than rawhide.

---

diff --git a/rpm.spec b/rpm.spec
index 1bba759..f95dd9f 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -29,7 +29,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}3%{?dist}
+Release: %{?snapver:0.%{snapver}.}4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
@@ -223,7 +223,7 @@ BuildRequires: python2-devel
 %{?python_provide:%python_provide python2-%{name}}
 Requires: %{name}%{?_isa} = %{version}-%{release}
 Provides: %{name}-python = %{version}-%{release}
-Obsoletes: %{name}-python < 4.13.0-0.rc1.44
+Obsoletes: %{name}-python < %{version}-%{release}
 
 %description -n python2-%{name}
 The python2-rpm package contains a module that permits applications
@@ -241,7 +241,7 @@ BuildRequires: python3-devel
 %{?system_python_abi}
 Requires: %{name}%{?_isa} = %{version}-%{release}
 Provides: %{name}-python3 = %{version}-%{release}
-Obsoletes: %{name}-python3 < 4.13.0-0.rc1.44
+Obsoletes: %{name}-python3 < %{version}-%{release}
 
 %description -n python3-%{name}
 The python3-rpm package contains a module that permits applications
@@ -558,6 +558,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Fri Nov 11 2016 Panu Matilainen <pmatilai@redhat.com> - 4.13.0-4
+- Expand python subpackage obsoletion range (related: #1394125)
+
 * Mon Nov 07 2016 Panu Matilainen <pmatilai@redhat.com> - 4.13.0-3
 - Fix invalid memory access on %transfiletriggerpostun (#1284645)