diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:44:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:44:55 +0000 |
commit | 73551eae55f521bd39f27a35eddac56ca45a397b (patch) | |
tree | 4983d8832725caebe932c29c7ad2895c7fef3e2a /python-pyorbital.spec | |
parent | 3af7985f63ba7cb8b7add9c47d9b4b47b9607daf (diff) |
automatic import of python-pyorbitalopeneuler20.03
Diffstat (limited to 'python-pyorbital.spec')
-rw-r--r-- | python-pyorbital.spec | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/python-pyorbital.spec b/python-pyorbital.spec new file mode 100644 index 0000000..6cb94e9 --- /dev/null +++ b/python-pyorbital.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyorbital +Version: 1.7.3 +Release: 1 +Summary: Orbital parameters and astronomical computations in Python +License: GNU General Public License v3 or later (GPLv3+) +URL: https://github.com/pytroll/pyorbital +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/10/2a/d9a09fbcb541c62f665c7798101f1441ac13202d048b393e5e9a372e224d/pyorbital-1.7.3.tar.gz +BuildArch: noarch + + +%description +[](https://github.com/pytroll/pyorbital/workflows/CI/badge.svg?branch=main) +[](https://coveralls.io/github/pytroll/pyorbital?branch=main) +[](https://badge.fury.io/py/pyorbital) +[](https://doi.org/10.5281/zenodo.6078954) +This is the Pyorbital, a Python package for computing orbital parameters from TLE +files, and making various astronomical computations. +It is part of the Pytroll project: http://pytroll.org + +%package -n python3-pyorbital +Summary: Orbital parameters and astronomical computations in Python +Provides: python-pyorbital +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyorbital +[](https://github.com/pytroll/pyorbital/workflows/CI/badge.svg?branch=main) +[](https://coveralls.io/github/pytroll/pyorbital?branch=main) +[](https://badge.fury.io/py/pyorbital) +[](https://doi.org/10.5281/zenodo.6078954) +This is the Pyorbital, a Python package for computing orbital parameters from TLE +files, and making various astronomical computations. +It is part of the Pytroll project: http://pytroll.org + +%package help +Summary: Development documents and examples for pyorbital +Provides: python3-pyorbital-doc +%description help +[](https://github.com/pytroll/pyorbital/workflows/CI/badge.svg?branch=main) +[](https://coveralls.io/github/pytroll/pyorbital?branch=main) +[](https://badge.fury.io/py/pyorbital) +[](https://doi.org/10.5281/zenodo.6078954) +This is the Pyorbital, a Python package for computing orbital parameters from TLE +files, and making various astronomical computations. +It is part of the Pytroll project: http://pytroll.org + +%prep +%autosetup -n pyorbital-1.7.3 + +%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-pyorbital -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.3-1 +- Package Spec generated |