diff --git a/.gitignore b/.gitignore index e69de29..fc0a802 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyvo-70090d64ecac4eab210c5d5537ea4498231d0186.tar.gz diff --git a/python-pyvo-removes-python-scripts.patch b/python-pyvo-removes-python-scripts.patch new file mode 100644 index 0000000..bcf46d2 --- /dev/null +++ b/python-pyvo-removes-python-scripts.patch @@ -0,0 +1,11 @@ +diff -Naur pyvo-99c2e7ccc3358f939e754a0e062dc4486be58d9a/setup.py pyvo-99c2e7ccc3358f939e754a0e062dc4486be58d9a.new/setup.py +--- pyvo-99c2e7ccc3358f939e754a0e062dc4486be58d9a/setup.py 2016-09-13 13:53:59.000000000 +0200 ++++ pyvo-99c2e7ccc3358f939e754a0e062dc4486be58d9a.new/setup.py 2016-09-23 11:33:28.792640046 +0200 +@@ -112,7 +112,6 @@ + setup(name=PACKAGENAME, + version=VERSION, + description=DESCRIPTION, +- scripts=scripts, + requires=['astropy', 'requests', 'python_dateutil'], + install_requires=['astropy', 'requests', 'python_dateutil'], + provides=[PACKAGENAME], diff --git a/python-pyvo-use_system_astropy_helpers.patch b/python-pyvo-use_system_astropy_helpers.patch new file mode 100644 index 0000000..32767e7 --- /dev/null +++ b/python-pyvo-use_system_astropy_helpers.patch @@ -0,0 +1,15 @@ +Description: Changes to use system astropy helpers installation +Author: Josue Ortega +Last-Update: 2016-08-13 + +--- a/setup.cfg ++++ b/setup.cfg +@@ -12,7 +12,7 @@ + norecursedirs = build docs/_build + + [ah_bootstrap] +-auto_use = True ++auto_use = False + + [metadata] + package_name = pyvo diff --git a/python-pyvo.spec b/python-pyvo.spec new file mode 100644 index 0000000..df7fd86 --- /dev/null +++ b/python-pyvo.spec @@ -0,0 +1,91 @@ +%global srcname pyvo +%global commit 70090d64ecac4eab210c5d5537ea4498231d0186 +%global commit_date 20161005 +%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.0 +Release: 0.1%{gitrel}%{?dist} +Summary: %{sum} + +License: BSD +URL: https://pypi.python.org/pypi/%{srcname} +Source0: https://github.com/pyvirtobs/%{srcname}/archive/%{commit}.tar.gz#/%{srcname}-%{commit}.tar.gz +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: python3-astropy +BuildRequires: python3-astropy-helpers +BuildRequires: python3-dateutil +BuildRequires: python3-devel + +%description +%{desc} + +%package -n python2-%{srcname} +Summary: %{sum} +Requires: astropy-tools +Requires: python2-astropy +Requires: python2-dateutil +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +%{desc} + +%package -n python3-%{srcname} +Summary: %{sum} +Requires: astropy-tools +Requires: python3-astropy +Requires: python3-dateutil +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%{desc} + +%prep +%setup -q -n %{srcname}-%{commit} +%patch0 -p1 +%patch1 -p1 + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-%{srcname} +%license licenses/LICENSE.rst +%doc CHANGES.rst CONTRIBUTORS.rst README.rst +%{python2_sitelib}/* + +%files -n python3-%{srcname} +%license licenses/LICENSE.rst +%doc CHANGES.rst CONTRIBUTORS.rst README.rst +%{python3_sitelib}/* + +%changelog +* Sun Oct 5 2016 Christian Dersch - 0.0-0.1.2016100570090d6 +- Initial package + diff --git a/sources b/sources index e69de29..318f2b5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +908d46c161ed5cb2296f4cd278e6115e pyvo-70090d64ecac4eab210c5d5537ea4498231d0186.tar.gz