15
0
forked from pool/python-arrow

Accepting request 760862 from home:apersaud:branches:devel:languages:python

update to latest version

OBS-URL: https://build.opensuse.org/request/show/760862
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-arrow?expand=0&rev=31
This commit is contained in:
Tomáš Chvátal
2020-01-05 07:53:28 +00:00
committed by Git OBS Bridge
parent fde041141f
commit bd44ea1d29
4 changed files with 44 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-arrow
# spec file for package python
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%bcond_without test
%define psuffix -test
%bcond_without test
%else
%bcond_with test
%endif
%bcond_without python2
Name: python-arrow%{?psuffix}
Version: 0.15.4
Version: 0.15.5
Release: 0
Summary: Better dates and times for Python
License: Apache-2.0
URL: https://github.com/crsmithdev/arrow
Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
Requires: python-python-dateutil
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module arrow == %{version}}
BuildRequires: %{python_module chai}
@@ -44,8 +46,6 @@ BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module simplejson}
%endif
Requires: python-python-dateutil
BuildArch: noarch
%if %{with python2}
BuildRequires: python-backports.functools_lru_cache >= 1.2.1
%endif