From bf7bb92fa2b5859ce7d920650d287a16d7a5ce7283937fbe5f9873f45a122a95 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 5 May 2017 22:00:47 +0000 Subject: [PATCH] Accepting request 493095 from home:TheBlackCat:branches:devel:languages:python - Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493095 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=40 --- python-WebOb.changes | 5 +++++ python-WebOb.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-WebOb.changes b/python-WebOb.changes index a0bd07f..0524143 100644 --- a/python-WebOb.changes +++ b/python-WebOb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 5 21:53:49 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Tue Apr 4 12:47:31 UTC 2017 - tbechtold@suse.com diff --git a/python-WebOb.spec b/python-WebOb.spec index b0a08a9..26cd31f 100644 --- a/python-WebOb.spec +++ b/python-WebOb.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-WebOb Version: 1.7.2 Release: 0 @@ -33,8 +34,10 @@ BuildRequires: python-rpm-macros # Documentation requirements: BuildRequires: python3-Sphinx BuildRoot: %{_tmppath}/%{name}-%{version}-build -Provides: python-webob = %{version} -Obsoletes: python-webob < %{version} +%ifpython2 +Obsoletes: %{oldpython}-webob < %{version} +Provides: %{oldpython}-webob = %{version} +%endif BuildArch: noarch %python_subpackages