diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:24:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 16:24:02 +0000 |
commit | c0b62dbba488d35b1b139e177c58b3a02ddf7da1 (patch) | |
tree | 490d47841ed877a7f221e18c5130d01074db9cc9 | |
parent | a903b82dabd0fa0fb8810521aca7de61da27ed01 (diff) |
automatic import of python-reproject
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-reproject.spec | 129 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 131 insertions, 0 deletions
@@ -0,0 +1 @@ +/reproject-0.10.0.tar.gz diff --git a/python-reproject.spec b/python-reproject.spec new file mode 100644 index 0000000..e2db8e1 --- /dev/null +++ b/python-reproject.spec @@ -0,0 +1,129 @@ +%global _empty_manifest_terminate_build 0 +Name: python-reproject +Version: 0.10.0 +Release: 1 +Summary: Reproject astronomical images +License: BSD 3-Clause +URL: https://reproject.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/10/90/597980fe015a7c51e343789e3a153ba29b212fd455110dc92359a74aaccb/reproject-0.10.0.tar.gz + +Requires: python3-numpy +Requires: python3-astropy +Requires: python3-astropy-healpix +Requires: python3-scipy +Requires: python3-sphinx-astropy +Requires: python3-pyvo +Requires: python3-matplotlib +Requires: python3-pytest-astropy +Requires: python3-asdf +Requires: python3-gwcs +Requires: python3-pyvo +Requires: python3-sunpy[map] +Requires: python3-shapely + +%description +The `reproject` package is a Python package to reproject astronomical +images using various techniques via a uniform interface. By +*reprojection*, we mean the re-gridding of images from one world +coordinate system to another (for example changing the pixel resolution, +orientation, coordinate system). Currently, we have implemented +reprojection of celestial images by interpolation (like +`SWARP <http://www.astromatic.net/software/swarp>`__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +<https://doi.org/10.1023/B:SOLA.0000021743.24248.b0>`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +<http://montage.ipac.caltech.edu/index.html>`__). It can also reproject to/from +HEALPIX projections by relying on the `astropy-healpix +<https://github.com/astropy/astropy-healpix>`__ package. +For more information, including on how to install the package, see +https://reproject.readthedocs.io + +%package -n python3-reproject +Summary: Reproject astronomical images +Provides: python-reproject +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-reproject +The `reproject` package is a Python package to reproject astronomical +images using various techniques via a uniform interface. By +*reprojection*, we mean the re-gridding of images from one world +coordinate system to another (for example changing the pixel resolution, +orientation, coordinate system). Currently, we have implemented +reprojection of celestial images by interpolation (like +`SWARP <http://www.astromatic.net/software/swarp>`__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +<https://doi.org/10.1023/B:SOLA.0000021743.24248.b0>`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +<http://montage.ipac.caltech.edu/index.html>`__). It can also reproject to/from +HEALPIX projections by relying on the `astropy-healpix +<https://github.com/astropy/astropy-healpix>`__ package. +For more information, including on how to install the package, see +https://reproject.readthedocs.io + +%package help +Summary: Development documents and examples for reproject +Provides: python3-reproject-doc +%description help +The `reproject` package is a Python package to reproject astronomical +images using various techniques via a uniform interface. By +*reprojection*, we mean the re-gridding of images from one world +coordinate system to another (for example changing the pixel resolution, +orientation, coordinate system). Currently, we have implemented +reprojection of celestial images by interpolation (like +`SWARP <http://www.astromatic.net/software/swarp>`__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +<https://doi.org/10.1023/B:SOLA.0000021743.24248.b0>`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +<http://montage.ipac.caltech.edu/index.html>`__). It can also reproject to/from +HEALPIX projections by relying on the `astropy-healpix +<https://github.com/astropy/astropy-healpix>`__ package. +For more information, including on how to install the package, see +https://reproject.readthedocs.io + +%prep +%autosetup -n reproject-0.10.0 + +%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-reproject -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.0-1 +- Package Spec generated @@ -0,0 +1 @@ +97919e12687f55063c1fd47c9be9e965 reproject-0.10.0.tar.gz |