From 2e7aed09c7fc64c8daec1c90826b97f55cceadf3ad30c8bb13729c20bbd3d78c Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 6 Sep 2017 17:48:58 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gnupg?expand=0&rev=2 --- python-python-gnupg.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python-python-gnupg.spec b/python-python-gnupg.spec index 1c52123..c70d7ac 100644 --- a/python-python-gnupg.spec +++ b/python-python-gnupg.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python %bcond_with test Name: python-python-gnupg Version: 0.4.1 @@ -34,6 +35,14 @@ BuildRequires: python-rpm-macros BuildRequires: gpg2 %endif Requires: gpg2 +%ifpython2 +Obsoletes: %{oldpython}-gnupg < %{version} +Provides: %{oldpython}-gnupg = %{version} +%endif +%ifpython3 +Obsoletes: python3-gnupg < %{version} +Provides: python3-gnupg = %{version} +%endif BuildArch: noarch %python_subpackages