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}
9dbb06a
Version:        1.0.3
e2661ac
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
# Python 3
441d767
BuildRequires:  python3-devel
441d767
BuildRequires:  python3-numpy
441d767
441d767
441d767
%description
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
%py3_build
441d767
441d767
%install
441d767
%py3_install
441d767
441d767
%files -n python3-%{srcname}
2e698db
%license LICENSE.txt
2e698db
%doc README.md
441d767
%{python3_sitearch}/*
441d767
441d767
%changelog
e2661ac
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
e2661ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e2661ac
9dbb06a
* Thu May 02 2019 Christian Dersch <lupinix@fedoraproject.org> - 1.0.3-1
9dbb06a
- new version
9dbb06a
b0fb285
* Sun Apr 28 2019 Christian Dersch <lupinix@mailbox.org> - 1.0.1-1
b0fb285
- new version
b0fb285
be3725e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-10
be3725e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
be3725e
214782c
* Tue Oct 02 2018 Christian Dersch <lupinix@fedoraproject.org> - 0.9.11-9
214782c
- drop python2 subpackage (#1627411)
214782c
b0f7958
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-8
b0f7958
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b0f7958
285027b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.11-7
285027b
- Rebuilt for Python 3.7
285027b
626d993
* Sat May 26 2018 Christian Dersch <lupinix@mailbox.org> - 0.9.11-6
626d993
- rebuilt for cfitsio 3.450
626d993
67de894
* Fri Feb 23 2018 Christian Dersch <lupinix@mailbox.org> - 0.9.11-5
67de894
- rebuilt for cfitsio 3.420 (so version bump)
67de894
5eb7340
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-4
5eb7340
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5eb7340
61622d8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-3
61622d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
61622d8
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