From 661e521144f258e6b59d7093e396e748171c918c4def56d71e78aa07c3be12a6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:29:52 +0000 Subject: [PATCH] Accepting request 493144 from home:TheBlackCat:branches:devel:languages:python Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493144 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=52 --- python-pyasn1.changes | 5 +++++ python-pyasn1.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-pyasn1.changes b/python-pyasn1.changes index 8c3881a..9e972db 100644 --- a/python-pyasn1.changes +++ b/python-pyasn1.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Thu Mar 16 13:42:52 UTC 2017 - tbechtold@suse.com diff --git a/python-pyasn1.spec b/python-pyasn1.spec index 157610e..633a2cc 100644 --- a/python-pyasn1.spec +++ b/python-pyasn1.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-pyasn1 Version: 0.2.3 Release: 0 @@ -28,8 +29,10 @@ Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.g BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros -Provides: python-asn1 = %{version} -Obsoletes: python-asn1 < 0.1.2 +%ifpython2 +Obsoletes: %{oldpython}-asn1 < 0.1.2 +Provides: %{oldpython}-asn1 = %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch