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