forked from pool/python-pytz
Accepting request 479121 from home:AndreasStieger:branches:devel:languages:python
- re-add and fix system_zoneinfo.patch which was dropped in error boo#1029120 OBS-URL: https://build.opensuse.org/request/show/479121 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=51
This commit is contained in:
committed by
Git OBS Bridge
parent
e64642b0f0
commit
e43e0a6994
@@ -29,6 +29,8 @@ Source2: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{ver
|
||||
Source90: pytz.keyring
|
||||
# PATCH-FIX-UPSTREAM fix-tests.patch -- Remote tests which are known to be broken
|
||||
Patch0: fix-tests.patch
|
||||
# PATCH-FEATURE-OPENSUSE -- Use system tz database (Olson database)
|
||||
Patch1: system_zoneinfo.patch
|
||||
Requires: timezone
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nose}
|
||||
@@ -62,6 +64,10 @@ Amost all of the Olson timezones are supported.
|
||||
%setup -q -n pytz-%{version}
|
||||
# Disable test which is not working (and documented so)
|
||||
%patch0 -p1
|
||||
%if 0%{?suse_version} >= 1310
|
||||
# Use system tz database
|
||||
%patch1 -p1
|
||||
%endif
|
||||
# For rpmlint warning: remove shebang from python library:
|
||||
sed -i '/^#!/d' ./pytz/tzfile.py
|
||||
|
||||
|
Reference in New Issue
Block a user