commit 4b06f8bd975fed0ff4d33e467b5c478e360ddd1988fd07b37d7c12bfaa22d826 Author: Tomáš Chvátal Date: Thu May 17 10:14:13 2018 +0000 - Initial commit, needed by python-netCDF4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cftime-1.0.0.tar.gz b/cftime-1.0.0.tar.gz new file mode 100644 index 0000000..03304fb --- /dev/null +++ b/cftime-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f62fe79ed2ad38f4211477e59f6f045c91278351f4ce7578e33ddf52fb121ea8 +size 30222 diff --git a/python-cftime.changes b/python-cftime.changes new file mode 100644 index 0000000..02c90ab --- /dev/null +++ b/python-cftime.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 17 10:04:22 UTC 2018 - tchvatal@suse.com + +- Initial commit, needed by python-netCDF4 diff --git a/python-cftime.spec b/python-cftime.spec new file mode 100644 index 0000000..718ea2f --- /dev/null +++ b/python-cftime.spec @@ -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