diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 23:29:23 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 23:29:23 +0000 |
| commit | 15241c3d631e124780517ab365cfce433f5d95c2 (patch) | |
| tree | eb338d568f09b3fff97b7ce97c0c07d2454b48a8 /python-astro.spec | |
| parent | e85a97c45c56f17e4f8ccf42941af48b3fbdfbbd (diff) | |
automatic import of python-astro
Diffstat (limited to 'python-astro.spec')
| -rw-r--r-- | python-astro.spec | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/python-astro.spec b/python-astro.spec new file mode 100644 index 0000000..cd0d160 --- /dev/null +++ b/python-astro.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-astro +Version: 0.2.7 +Release: 1 +Summary: A package of astrodynamic functions +License: GPLv3 +URL: https://github.com/skulumani/astro +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/46/2eb0336e6600e9d6c4d602feaf35da04511a3049f647e58f85114a7dd82b/astro-0.2.7.tar.gz +BuildArch: noarch + + +%description +``astro`` is Python package to perform basic astrodynamics. ++-------------------------+---------------------+--------------------------+------------+-----------------------+ +| Build Status | Code Coverage | Docs | Citation | PyPi | ++=========================+=====================+==========================+============+=======================+ +| |Travis Build Status| | |Coverage Status| | |Documentation Status| | |Citation| | |PyPi| | ++-------------------------+---------------------+--------------------------+------------+-----------------------+ + +%package -n python3-astro +Summary: A package of astrodynamic functions +Provides: python-astro +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-astro +``astro`` is Python package to perform basic astrodynamics. ++-------------------------+---------------------+--------------------------+------------+-----------------------+ +| Build Status | Code Coverage | Docs | Citation | PyPi | ++=========================+=====================+==========================+============+=======================+ +| |Travis Build Status| | |Coverage Status| | |Documentation Status| | |Citation| | |PyPi| | ++-------------------------+---------------------+--------------------------+------------+-----------------------+ + +%package help +Summary: Development documents and examples for astro +Provides: python3-astro-doc +%description help +``astro`` is Python package to perform basic astrodynamics. ++-------------------------+---------------------+--------------------------+------------+-----------------------+ +| Build Status | Code Coverage | Docs | Citation | PyPi | ++=========================+=====================+==========================+============+=======================+ +| |Travis Build Status| | |Coverage Status| | |Documentation Status| | |Citation| | |PyPi| | ++-------------------------+---------------------+--------------------------+------------+-----------------------+ + +%prep +%autosetup -n astro-0.2.7 + +%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-astro -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.7-1 +- Package Spec generated |
