Blob Blame Raw
%global srcname pyvo
%global commit 823b14a9892a14263cd30a053028a29aaab1c6fd 
%global commit_date 20161020
%global shortcommit %(c=%{commit};echo ${c:0:7})
%global gitrel .%{commit_date}git%{shortcommit}

%global sum Access to remote data and services of the Virtual observatory (VO) using Python
%global desc                                                             \
PyVO is a package providing access to remote data and services of the    \
Virtual Observatory (VO) using Python.                                   \
The pyvo module currently provides these main capabilities:              \
* Find archives that provide particular data of a particular type and/or \
  relates to a particular topic                                          \
* Search an archive for datasets of a particular type                    \
* Do simple searches on catalogs or databases                            \
* Get information about an object via its name                   

Name:           python-%{srcname}
Version:        0.4.1
Release:        3%{?gitrel}%{?dist}
Summary:        %{sum}

License:        BSD
URL:  {srcname}
Patch0:         python-pyvo-removes-python-scripts.patch
Patch1:         python-pyvo-use_system_astropy_helpers.patch

BuildArch:      noarch
BuildRequires:  python2-astropy
BuildRequires:  python2-astropy-helpers
BuildRequires:  python2-dateutil
BuildRequires:  python2-devel
BuildRequires:  python2-requests

BuildRequires:  python3-astropy
BuildRequires:  python3-astropy-helpers
BuildRequires:  python3-dateutil
BuildRequires:  python3-devel
BuildRequires:  python3-requests
# Needed to generate docs
BuildRequires:  python3-sphinx


%package -n python2-%{srcname}
Summary:        %{sum}
Requires:       astropy-tools
Requires:       python2-astropy
Requires:       python2-dateutil
Requires:       python2-requests
%{?python_provide:%python_provide python2-%{srcname}}

%description -n python2-%{srcname}

%package -n python3-%{srcname}
Summary:        %{sum}
Requires:       astropy-tools
Requires:       python3-astropy
Requires:       python3-dateutil
Requires:       python3-requests
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}

%package -n python3-%{srcname}-doc
Summary:        Documentation for PyVO
%{?python_provide:%python_provide python3-%{srcname}-doc}

%description -n python3-%{srcname}-doc
This package contains the HTML documentation for the PyVO package.

%setup -q -n %{srcname}-%{commit}
%patch0 -p1
%patch1 -p1

# Generate documentation
%{__python3} build_sphinx
rm -f docs/_build/html/.buildinfo


%files -n python2-%{srcname}
%license licenses/LICENSE.rst

%files -n python3-%{srcname}
%license licenses/LICENSE.rst

%files -n python3-%{srcname}-doc
%license licenses/LICENSE.rst
%doc docs/_build/html

* Mon Dec 19 2016 Miro HronĨok <> - 0.4.1-3.20161020git823b14a
- Rebuild for Python 3.6

* Sun Dec 04 2016 Christian Dersch <> - 0.4.1-2.20161020git823b14a
- Added -doc subpackage
- Added missing requirement for requests

* Mon Oct 31 2016 Christian Dersch <> - 0.4.1-1
- new version

* Wed Oct  5 2016 Christian Dersch <> - 0.0-0.1.2016100570090d6
- Initial package