14
0
forked from pool/python-pytz

Accepting request 484808 from home:AndreasStieger:branches:devel:languages:python

2017.2

OBS-URL: https://build.opensuse.org/request/show/484808
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=59
This commit is contained in:
2017-04-03 09:01:31 +00:00
committed by Git OBS Bridge
parent e101ac671c
commit 540cd994f0
7 changed files with 21 additions and 93 deletions

View File

@@ -18,23 +18,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytz
Version: 2016.10
Version: 2017.2
Release: 0
Summary: World timezone definitions, modern and historical
License: MIT
Group: Development/Languages/Python
Url: http://pytz.sourceforge.net
Source: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.bz2
Source2: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.tar.bz2.asc
Source: https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-%{version}.zip
Source2: https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-%{version}.zip.asc
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
Patch2: pytz-2016.10-fix-tests-with-2017a.patch
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
# Test requirements
BuildRequires: %{python_module nose}
BuildRequires: timezone
@@ -62,10 +62,6 @@ Amost all of the Olson timezones are supported.
%patch0 -p1
# Use system tz database
%patch1 -p1
# timezone 2017 a is currently only available in Leap 42.1 and Tumbleweed
%if 0%{?sle_version} == 120100 && 0%{?is_opensuse} || 0%{?suse_version} > 1320
%patch2 -p2
%endif
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./pytz/tzfile.py