diff --git a/astroquery-0.4.1.tar.gz b/astroquery-0.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..85cdbc540d95e0eaff0173feebc771534d17ce52 Binary files /dev/null and b/astroquery-0.4.1.tar.gz differ diff --git a/python-astroquery.spec b/python-astroquery.spec new file mode 100644 index 0000000000000000000000000000000000000000..87649b7da08926b54d8dfd722609766115f6109e --- /dev/null +++ b/python-astroquery.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-astroquery +Version: 0.4.1 +Release: 1 +Summary: Functions and classes to access online astronomical data resources +License: BSD +URL: http://astropy.org/astroquery +Source0: https://files.pythonhosted.org/packages/1b/f8/4690523783691ed816b3469c3ec611af3798594d37ade510dd918d59f57e/astroquery-0.4.1.tar.gz +BuildArch: noarch + + +%description +Astroquery is an astropy affiliated package that contains a collection of tools to access online Astronomical data. + +%package -n python3-astroquery +Summary: Functions and classes to access online astronomical data resources +Provides: python-astroquery +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-astroquery +Functions and classes to access online astronomical data resources + +%package help +Summary: Development documents and examples for astroquery +Provides: python3-astroquery-doc +%description help +Functions and classes to access online astronomical data resources + +%prep +%autosetup -n astroquery-0.4.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-astroquery -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Jul 16 2020 Python_Bot +- Package Spec generated