diff --git a/python-termstyle.changes b/python-termstyle.changes index 466ff40..b04ce04 100644 --- a/python-termstyle.changes +++ b/python-termstyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Wed Apr 12 16:55:35 UTC 2017 - toddrme2178@gmail.com diff --git a/python-termstyle.spec b/python-termstyle.spec index 5bed5c7..07427a4 100644 --- a/python-termstyle.spec +++ b/python-termstyle.spec @@ -18,6 +18,7 @@ %bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-termstyle Version: 0.1.11 Release: 0 @@ -30,8 +31,14 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -Provides: python-python-termstyle = %{version} -Obsoletes: python-python-termstyle < %{version} +%ifpython2 +Obsoletes: %{oldpython}-python-termstyle < %{version} +Provides: %{oldpython}-python-termstyle = %{version} +%endif +%ifpython3 +Provides: python3-python-termstyle = %{version} +Obsoletes: python3-python-termstyle < %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages