diff --git a/python-recommonmark.changes b/python-recommonmark.changes index 3705e0a..0813cf7 100644 --- a/python-recommonmark.changes +++ b/python-recommonmark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + ------------------------------------------------------------------- Thu Apr 6 17:42:45 UTC 2017 - toddrme2178@gmail.com diff --git a/python-recommonmark.spec b/python-recommonmark.spec index d02c062..f6f4434 100644 --- a/python-recommonmark.spec +++ b/python-recommonmark.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-recommonmark Version: 0.4.0 Release: 0 @@ -34,8 +35,14 @@ BuildRequires: %{python_module docutils} BuildRequires: %{python_module CommonMark} Requires: python-docutils Requires: python-CommonMark -Provides: python-reCommonMark = %{version} -Obsoletes: python-reCommonMark < %{version} +%ifpython2 +Obsoletes: %{oldpython}-reCommonMark < %{version} +Provides: %{oldpython}-reCommonMark = %{version} +%endif +%ifpython3 +Provides: python3-reCommonMark = %{version} +Obsoletes: python3-reCommonMark < %{version} +%endif Requires(post): update-alternatives Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build