- create correct backwards-compatible Obsoletes/Provides

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=60
This commit is contained in:
Jan Matejek 2017-04-05 15:18:15 +00:00 committed by Git OBS Bridge
parent 540cd994f0
commit 6665bed40d
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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