From 6665bed40dc001038e68585e3d7f704e3b4e5e3357c45343599897b5b075c934 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 5 Apr 2017 15:18:15 +0000 Subject: [PATCH] - create correct backwards-compatible Obsoletes/Provides OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=60 --- python-pytz.changes | 5 +++++ python-pytz.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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