From 653309177700e27fdfc1cb80820bbda4215fc17f13663cb9bdb9e84047761ab3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:27:34 +0000 Subject: [PATCH] Accepting request 493119 from home:TheBlackCat:branches:devel:languages:python Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493119 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=21 --- python-PasteDeploy.changes | 5 +++++ python-PasteDeploy.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index 53ca978..83a37d7 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:37:17 UTC 2017 - toddrme2178@gmail.com + +- Fix provides/obsoletes + ------------------------------------------------------------------- Wed Apr 19 08:16:47 UTC 2017 - hpj@urpla.net diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index e98a6bd..7ed4d4b 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-PasteDeploy Version: 1.5.2 Release: 0 @@ -32,8 +33,14 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Paste Requires: python-setuptools -Provides: python-pastedeploy = %{version} -Obsoletes: python-pastedeploy < %{version} +%ifpython2 +Obsoletes: %{oldpython}-pastedeploy < %{version} +Provides: %{oldpython}-pastedeploy = %{version} +%endif +%ifpython3 +Provides: python3-pastedeploy = %{version} +Obsoletes: python3-pastedeploy < %{version} +%endif BuildArch: noarch %python_subpackages