- Initial commit, needed by python-netCDF4

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2018-05-17 10:14:13 +00:00
committed by Git OBS Bridge
commit 4b06f8bd97
5 changed files with 87 additions and 0 deletions

56
python-cftime.spec Normal file
View File

@@ -0,0 +1,56 @@
#
# spec file for package python-cftime
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cftime
Version: 1.0.0
Release: 0
Summary: Time-handling functionality from netcdf4-python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Unidata/cftime
Source: https://files.pythonhosted.org/packages/source/c/cftime/cftime-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 18.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Cython
Requires: python-numpy
%python_subpackages
%description
%prep
%setup -q -n cftime-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" py.test-%{$python_bin_suffix}
%files %{python_files}
%{python_sitearch}/*
%changelog