|
|
6f420db |
# For release builds set to 1, for snapshots set to 0
|
|
|
ac958a1 |
%global relbuild 1
|
|
|
6f420db |
|
|
|
6f420db |
%if !0%{?relbuild}
|
|
|
6f420db |
%global commit 3fa56a6406ddd7aee0e735aa5ba8b02d11a48780
|
|
|
6f420db |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
6f420db |
%global gitdate 20170411
|
|
|
6f420db |
%global git_ver -git%{gitdate}.%{shortcommit}
|
|
|
6f420db |
%global git_rel .git%{gitdate}.%{shortcommit}
|
|
|
6f420db |
%endif # !0%%{?relbuild}
|
|
|
6f420db |
|
|
|
496a549 |
%global srcname pyvo
|
|
|
496a549 |
|
|
|
496a549 |
%global sum Access to remote data and services of the Virtual observatory (VO) using Python
|
|
|
496a549 |
%global desc \
|
|
|
496a549 |
PyVO is a package providing access to remote data and services of the \
|
|
|
496a549 |
Virtual Observatory (VO) using Python. \
|
|
|
496a549 |
\
|
|
|
496a549 |
The pyvo module currently provides these main capabilities: \
|
|
|
496a549 |
* Find archives that provide particular data of a particular type and/or \
|
|
|
496a549 |
relates to a particular topic \
|
|
|
496a549 |
* Search an archive for datasets of a particular type \
|
|
|
496a549 |
* Do simple searches on catalogs or databases \
|
|
|
496a549 |
* Get information about an object via its name
|
|
|
496a549 |
|
|
|
496a549 |
Name: python-%{srcname}
|
|
|
6775a60 |
Version: 0.8.1
|
|
|
9c9f4de |
Release: 4%{?dist}
|
|
|
496a549 |
Summary: %{sum}
|
|
|
496a549 |
|
|
|
496a549 |
License: BSD
|
|
|
6f420db |
URL: https://github.com/pyvirtobs/%{srcname}
|
|
|
6f420db |
%if 0%{?relbuild}
|
|
|
58ac6f1 |
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
6f420db |
%else # 0%%{?relbuild}
|
|
|
6f420db |
Source0: %{url}/archive/%{commit}.tar.gz#/%{srcname}-%{version}%{?git_ver}.tar.gz
|
|
|
6f420db |
%endif # 0%%{?relbuild}
|
|
|
496a549 |
Patch0: python-pyvo-removes-python-scripts.patch
|
|
|
7758dda |
# Py 3.7 compat fix
|
|
|
7758dda |
Patch1: python-pyvo-rename-async-test.patch
|
|
|
496a549 |
|
|
|
496a549 |
BuildArch: noarch
|
|
|
496a549 |
BuildRequires: python2-astropy
|
|
|
496a549 |
BuildRequires: python2-astropy-helpers
|
|
|
496a549 |
BuildRequires: python2-dateutil
|
|
|
496a549 |
BuildRequires: python2-devel
|
|
|
2a42415 |
BuildRequires: python2-requests
|
|
|
6f420db |
BuildRequires: python2-six
|
|
|
496a549 |
|
|
|
496a549 |
BuildRequires: python3-astropy
|
|
|
496a549 |
BuildRequires: python3-astropy-helpers
|
|
|
496a549 |
BuildRequires: python3-dateutil
|
|
|
496a549 |
BuildRequires: python3-devel
|
|
|
2a42415 |
BuildRequires: python3-requests
|
|
|
6f420db |
BuildRequires: python3-six
|
|
|
2a42415 |
# Needed to generate docs
|
|
|
6f420db |
BuildRequires: python3-numpydoc
|
|
|
2a42415 |
BuildRequires: python3-sphinx
|
|
|
496a549 |
|
|
|
58ac6f1 |
Provides: python3-pyvo-doc = %{version}-%{release}
|
|
|
58ac6f1 |
Obsoletes: python3-pyvo-doc = %{version}-%{release}
|
|
|
58ac6f1 |
|
|
|
496a549 |
%description
|
|
|
496a549 |
%{desc}
|
|
|
496a549 |
|
|
|
496a549 |
%package -n python2-%{srcname}
|
|
|
496a549 |
Summary: %{sum}
|
|
|
496a549 |
Requires: astropy-tools
|
|
|
496a549 |
Requires: python2-astropy
|
|
|
496a549 |
Requires: python2-dateutil
|
|
|
2a42415 |
Requires: python2-requests
|
|
|
6f420db |
Requires: python2-six
|
|
|
496a549 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
496a549 |
|
|
|
496a549 |
%description -n python2-%{srcname}
|
|
|
496a549 |
%{desc}
|
|
|
496a549 |
|
|
|
496a549 |
%package -n python3-%{srcname}
|
|
|
496a549 |
Summary: %{sum}
|
|
|
496a549 |
Requires: astropy-tools
|
|
|
496a549 |
Requires: python3-astropy
|
|
|
496a549 |
Requires: python3-dateutil
|
|
|
2a42415 |
Requires: python3-requests
|
|
|
6f420db |
Requires: python3-six
|
|
|
496a549 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
496a549 |
|
|
|
496a549 |
%description -n python3-%{srcname}
|
|
|
496a549 |
%{desc}
|
|
|
496a549 |
|
|
|
58ac6f1 |
#%package -n python3-%%{srcname}-doc
|
|
|
58ac6f1 |
#Summary: Documentation for PyVO
|
|
|
58ac6f1 |
#%%{?python_provide:%%python_provide python3-%%{srcname}-doc}
|
|
|
2a42415 |
|
|
|
58ac6f1 |
#%%description -n python3-%%{srcname}-doc
|
|
|
58ac6f1 |
#This package contains the HTML documentation for the PyVO package.
|
|
|
2a42415 |
|
|
|
6f420db |
|
|
|
496a549 |
%prep
|
|
|
6f420db |
%if 0%{?relbuild}
|
|
|
6f420db |
%autosetup -n %{srcname}-%{version} -p 1
|
|
|
6f420db |
%else # 0%%{?relbuild}
|
|
|
6f420db |
%autosetup -n %{srcname}-%{commit} -p 1
|
|
|
6f420db |
%endif # 0%%{?relbuild}
|
|
|
6f420db |
|
|
|
496a549 |
|
|
|
496a549 |
%build
|
|
|
496a549 |
%py2_build
|
|
|
496a549 |
%py3_build
|
|
|
2a42415 |
# Generate documentation
|
|
|
58ac6f1 |
#%%{__python3} setup.py build_sphinx
|
|
|
58ac6f1 |
#rm -f docs/_build/html/.buildinfo
|
|
|
496a549 |
|
|
|
496a549 |
%install
|
|
|
496a549 |
%py2_install
|
|
|
496a549 |
%py3_install
|
|
|
496a549 |
|
|
|
496a549 |
%files -n python2-%{srcname}
|
|
|
496a549 |
%license licenses/LICENSE.rst
|
|
|
58ac6f1 |
%doc CHANGES.rst README.rst
|
|
|
496a549 |
%{python2_sitelib}/*
|
|
|
496a549 |
|
|
|
496a549 |
%files -n python3-%{srcname}
|
|
|
496a549 |
%license licenses/LICENSE.rst
|
|
|
58ac6f1 |
%doc CHANGES.rst README.rst
|
|
|
496a549 |
%{python3_sitelib}/*
|
|
|
496a549 |
|
|
|
58ac6f1 |
#%%files -n python3-%%{srcname}-doc
|
|
|
58ac6f1 |
#%%license licenses/LICENSE.rst
|
|
|
58ac6f1 |
#%%doc docs/_build/html
|
|
|
2a42415 |
|
|
|
496a549 |
%changelog
|
|
|
9c9f4de |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
|
|
|
9c9f4de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9c9f4de |
|
|
|
7758dda |
* Sun Jul 08 2018 Christian Dersch <lupinix@mailbox.org> - 0.8.1-3
|
|
|
7758dda |
- Fix build with Python 3.7
|
|
|
7758dda |
|
|
|
d5be750 |
* Fri Jul 06 2018 Christian Dersch <lupinix.fedora@gmail.com> - 0.8.1-2
|
|
|
d5be750 |
- Rebuild for Python 3.7
|
|
|
d5be750 |
|
|
|
6775a60 |
* Wed Jun 27 2018 Christian Dersch <lupinix@fedoraproject.org> - 0.8.1-1
|
|
|
6775a60 |
- new version
|
|
|
6775a60 |
|
|
|
078ce56 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8-2
|
|
|
078ce56 |
- Rebuilt for Python 3.7
|
|
|
078ce56 |
|
|
|
58ac6f1 |
* Fri Jun 08 2018 Christian Dersch <lupinix.fedora@gmail.com> - 0.8-1
|
|
|
58ac6f1 |
- new version
|
|
|
58ac6f1 |
|
|
|
4a112ac |
* Wed Feb 14 2018 Christian Dersch <lupinix@mailbox.org> - 0.6.1-4
|
|
|
4a112ac |
- rebuilt
|
|
|
4a112ac |
|
|
|
725dc8c |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
|
|
|
725dc8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
725dc8c |
|
|
|
15a0a77 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
|
|
|
15a0a77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
15a0a77 |
|
|
|
ac958a1 |
* Thu Jun 29 2017 Christian Dersch <lupinix@mailbox.org> - 0.6.1-1
|
|
|
ac958a1 |
- new version
|
|
|
ac958a1 |
|
|
|
6f420db |
* Tue Apr 11 2017 Christian Dersch <lupinix@mailbox.org> - 0.6.0-1.git20170411.3fa56a6
|
|
|
6f420db |
- new version
|
|
|
6f420db |
|
|
|
d2fda4c |
* Thu Feb 09 2017 Christian Dersch <lupinix@mailbox.org> - 0.5.2-1
|
|
|
d2fda4c |
- new version
|
|
|
d2fda4c |
|
|
|
a5efa0c |
* Tue Jan 17 2017 Christian Dersch <lupinix@mailbox.org> - 0.5.0.1-1
|
|
|
a5efa0c |
- new version
|
|
|
a5efa0c |
|
|
|
2ed1b86 |
* Mon Jan 16 2017 Christian Dersch <lupinix@mailbox.org> - 0.5.0-1
|
|
|
2ed1b86 |
- new version
|
|
|
2ed1b86 |
|
|
|
df3147d |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-3.20161020git823b14a
|
|
|
df3147d |
- Rebuild for Python 3.6
|
|
|
df3147d |
|
|
|
2a42415 |
* Sun Dec 04 2016 Christian Dersch <lupinix@mailbox.org> - 0.4.1-2.20161020git823b14a
|
|
|
2a42415 |
- Added -doc subpackage
|
|
|
2a42415 |
- Added missing requirement for requests
|
|
|
2a42415 |
|
|
|
8439c3a |
* Mon Oct 31 2016 Christian Dersch <lupinix@mailbox.org> - 0.4.1-1
|
|
|
8439c3a |
- new version
|
|
|
8439c3a |
|
|
|
8439c3a |
* Wed Oct 5 2016 Christian Dersch <lupinix@mailbox.org> - 0.0-0.1.2016100570090d6
|
|
|
496a549 |
- Initial package
|
|
|
496a549 |
|