%global srcname astroscrappy
%global sum Cosmic Ray Annihilation
%global common_desc Astro-SCRAPPY is designed to detect cosmic rays in images (numpy arrays).
Name: python-%{srcname}
Version: 1.0.5
Release: 4%{?dist}
Summary: %{sum}
License: BSD and ASL 2.0 and Python
# Licensing breakdown
# In general: BSD, see licenses/LICENSE.rst
#
# Exceptions:
# Apache (2.0):
# astropy_helpers/astropy_helpers/sphinx/themes/bootstrap-astropy/static/bootstrap-astropy.css
#
# PSF:
# astropy_helpers/licenses/LICENSE_COPYBUTTON.rst
# astropy_helpers/astropy_helpers/sphinx/themes/bootstrap-astropy/static/copybutton.js
#
URL: https://pypi.python.org/pypi/%{srcname}
Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
# Python 2 stuff
BuildRequires: python2-astropy
BuildRequires: python2-astropy-helpers
BuildRequires: python2-Cython
BuildRequires: python2-devel
# Python 3 stuff
BuildRequires: python3-astropy
BuildRequires: python3-astropy-helpers
BuildRequires: python3-Cython
BuildRequires: python3-devel
%description
%{common_desc}.
%package -n python2-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
Requires: python2-astropy
%description -n python2-%{srcname}
%{common_desc}
%package -n python3-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}}
Requires: python3-astropy
%description -n python3-%{srcname}
%{common_desc}.
%prep
%setup -q -n %{srcname}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
%license licenses/LICENSE.rst astropy_helpers/licenses/LICENSE_COPYBUTTON.rst
%doc CHANGES.rst README.rst
%{python2_sitearch}/*
%files -n python3-%{srcname}
%license licenses/LICENSE.rst astropy_helpers/licenses/LICENSE_COPYBUTTON.rst
%doc CHANGES.rst README.rst
%{python3_sitearch}/*
%changelog
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.5-3
- Rebuild for Python 3.6
* Fri Oct 07 2016 Christian Dersch <lupinix@mailbox.org> - 1.0.5-2
- Added license breakdown
* Tue Oct 04 2016 Christian Dersch <lupinix@mailbox.org> - 1.0.5-1
- Initial packaging