14
0
forked from pool/python-pytz

Accepting request 506778 from home:tbechtold:branches:devel:languages:python

- add 0001-Fix-tests-for-older-timezone-versions.patch . This fixes
  the tests on SLE12SP2 and SLE12SP3

OBS-URL: https://build.opensuse.org/request/show/506778
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=63
This commit is contained in:
2017-06-29 07:02:05 +00:00
committed by Git OBS Bridge
parent c930eb69f5
commit ba2a6845a2
3 changed files with 103 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ Source90: pytz.keyring
Patch0: fix-tests.patch
# PATCH-FEATURE-OPENSUSE -- Use system tz database (Olson database)
Patch1: system_zoneinfo.patch
# PATCH-FIX-UPSTREAM 0001-Fix-tests-for-older-timezone-versions.patch -- https://code.launchpad.net/~toabctl/pytz/+git/pytz/+merge/326419
Patch2: 0001-Fix-tests-for-older-timezone-versions.patch
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -65,6 +67,7 @@ Amost all of the Olson timezones are supported.
%patch0 -p1
# Use system tz database
%patch1 -p1
%patch2 -p2
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./pytz/tzfile.py