From c0b62dbba488d35b1b139e177c58b3a02ddf7da1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 9 Mar 2023 16:24:02 +0000 Subject: automatic import of python-reproject --- .gitignore | 1 + python-reproject.spec | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 131 insertions(+) create mode 100644 python-reproject.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..f11fbcf 100644 --- a/.gitignore +++ b/.gitignore @@ -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 `__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +`__). It can also reproject to/from +HEALPIX projections by relying on the `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 `__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +`__). It can also reproject to/from +HEALPIX projections by relying on the `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 `__), by the adaptive and +anti-aliased algorithm of `DeForest (2004) +`_, and by finding the +exact overlap between pixels on the celestial sphere (like `Montage +`__). It can also reproject to/from +HEALPIX projections by relying on the `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 - 0.10.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..f331673 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +97919e12687f55063c1fd47c9be9e965 reproject-0.10.0.tar.gz -- cgit v1.2.3