From 895c1892eb1bbb3c97f9783c73f303b342405d36 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 08:14:23 +0000 Subject: automatic import of python-xesmf --- .gitignore | 1 + python-xesmf.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 113 insertions(+) create mode 100644 python-xesmf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..352516d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/xesmf-0.7.1.tar.gz diff --git a/python-xesmf.spec b/python-xesmf.spec new file mode 100644 index 0000000..456e1fd --- /dev/null +++ b/python-xesmf.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-xesmf +Version: 0.7.1 +Release: 1 +Summary: Universal Regridder for Geospatial Data +License: MIT +URL: https://pypi.org/project/xesmf/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4f/c6/2e2a78679e445fbb559b8d1e5f1f43bf5049b08f59c84d372609c0ec3259/xesmf-0.7.1.tar.gz +BuildArch: noarch + +Requires: python3-cf-xarray +Requires: python3-numba +Requires: python3-numpy +Requires: python3-shapely +Requires: python3-sparse +Requires: python3-xarray + +%description +|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI| +xESMF is a Python package for +`regridding `_. +It is +- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids** + with all `ESMF regridding algorithms `_, + such as **bilinear**, **conservative** and **nearest neighbour**. +- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure + and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays. +- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation `_. +Please see `online documentation `_, or `play with example notebooks on Binder `_. +For new users, I also recommend reading `How to ask for help `_ and `How to support xESMF `_. + +%package -n python3-xesmf +Summary: Universal Regridder for Geospatial Data +Provides: python-xesmf +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-xesmf +|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI| +xESMF is a Python package for +`regridding `_. +It is +- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids** + with all `ESMF regridding algorithms `_, + such as **bilinear**, **conservative** and **nearest neighbour**. +- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure + and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays. +- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation `_. +Please see `online documentation `_, or `play with example notebooks on Binder `_. +For new users, I also recommend reading `How to ask for help `_ and `How to support xESMF `_. + +%package help +Summary: Development documents and examples for xesmf +Provides: python3-xesmf-doc +%description help +|Binder| |conda| |Build Status| |codecov| |docs| |license| |DOI| +xESMF is a Python package for +`regridding `_. +It is +- **Powerful**: It uses ESMF_/ESMPy_ as backend and can regrid between **general curvilinear grids** + with all `ESMF regridding algorithms `_, + such as **bilinear**, **conservative** and **nearest neighbour**. +- **Easy-to-use**: It abstracts away ESMF's complicated infrastructure + and provides a simple, high-level API, compatible with xarray_ as well as basic numpy arrays. +- **Fast**: It is faster than ESMPy's original Fortran regridding engine in serial case, and also supports dask_ for `out-of-core, parallel computation `_. +Please see `online documentation `_, or `play with example notebooks on Binder `_. +For new users, I also recommend reading `How to ask for help `_ and `How to support xESMF `_. + +%prep +%autosetup -n xesmf-0.7.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-xesmf -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 0.7.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..adf7014 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d4a440ccaebd0cca85e83114b8624b24 xesmf-0.7.1.tar.gz -- cgit v1.2.3