diff --git a/python-pytz.changes b/python-pytz.changes index 3c97358..e66a27d 100644 --- a/python-pytz.changes +++ b/python-pytz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 5 15:17:50 UTC 2017 - jmatejek@suse.com + +- create correct backwards-compatible Obsoletes/Provides + ------------------------------------------------------------------- Mon Apr 3 08:59:23 UTC 2017 - astieger@suse.com diff --git a/python-pytz.spec b/python-pytz.spec index 5b797fe..631430f 100644 --- a/python-pytz.spec +++ b/python-pytz.spec @@ -16,6 +16,7 @@ # +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytz Version: 2017.2 @@ -39,8 +40,10 @@ BuildRequires: unzip BuildRequires: %{python_module nose} BuildRequires: timezone Requires: timezone -Provides: python-tz = 2014b -Obsoletes: python-tz < 2014b +%ifpython2 +Provides: %{oldpython}-tz = %{version} +Obsoletes: %{oldpython}-tz < %{version} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch