441d767
%global srcname fitsio
441d767
%global sum A full featured python library to read from and write to FITS files
441d767
441d767
441d767
Name:           python-%{srcname}
02b2016
Version:        0.9.11
800fa9f
Release:        2%{?dist}
441d767
Summary:        %{sum}
441d767
441d767
License:        GPLv2+
441d767
URL:            https://pypi.python.org/pypi/%{srcname}
441d767
Source0:        https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
441d767
441d767
# Patch to force usage of Fedora cfitsio instead of bundled copy
441d767
Patch0:         %{name}-use-system-cfitsio.patch
441d767
441d767
# General
441d767
BuildRequires:  cfitsio-devel
441d767
BuildRequires:  gcc
441d767
441d767
# Python 2
441d767
BuildRequires:  python2-devel
441d767
BuildRequires:  python2-numpy
441d767
441d767
# Python 3
441d767
BuildRequires:  python3-devel
441d767
BuildRequires:  python3-numpy
441d767
441d767
441d767
%description
441d767
%{sum}.
441d767
441d767
%package -n python2-%{srcname}
441d767
Summary:        %{sum}
441d767
%{?python_provide:%python_provide python2-%{srcname}}
441d767
Requires:       python2-numpy
441d767
441d767
%description -n python2-%{srcname}
441d767
%{sum}.
441d767
441d767
%package -n python3-%{srcname}
441d767
Summary:        %{sum}
441d767
%{?python_provide:%python_provide python3-%{srcname}}
441d767
Requires:       python3-numpy
441d767
441d767
%description -n python3-%{srcname}
441d767
%{sum}.
441d767
441d767
441d767
%prep
441d767
%setup -q -n %{srcname}-%{version}
441d767
%patch0 -p1
441d767
441d767
%build
441d767
sed -i "s,@INCLUDEDIR@,%{_includedir}/cfitsio,g" setup.py
441d767
sed -i "s,@LIBDIR@,%{_libdir},g" setup.py
441d767
%py2_build
441d767
%py3_build
441d767
441d767
%install
441d767
%py2_install
441d767
%py3_install
441d767
441d767
%files -n python2-%{srcname}
441d767
%license gpl.txt
441d767
%doc CHANGES.md README.md
441d767
%{python2_sitearch}/*
441d767
441d767
%files -n python3-%{srcname}
441d767
%license gpl.txt
441d767
%doc CHANGES.md README.md
441d767
%{python3_sitearch}/*
441d767
441d767
%changelog
800fa9f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-2
800fa9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
800fa9f
02b2016
* Thu Apr 06 2017 Christian Dersch <lupinix@mailbox.org> - 0.9.11-1
02b2016
- new version
02b2016
299ebf3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-3
299ebf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
299ebf3
749291c
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.9.10-2
749291c
- Rebuild for Python 3.6
749291c
441d767
* Sat Oct 01 2016 Christian Dersch <lupinix@mailbox.org> - 0.9.10-1
441d767
- Initial package
441d767
441d767