Blame python-pyvo.spec

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