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}
0f6f833
Version:        1.1.6
1b28d6d
Release:        2%{?dist}
441d767
Summary:        %{sum}
441d767
441d767
License:        GPLv2+
441d767
URL:            https://pypi.python.org/pypi/%{srcname}
33d9b44
Source0:        %{pypi_source}
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
ea02275
BuildRequires:  python3-setuptools
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
33d9b44
%autosetup -n %{srcname}-%{version}
33d9b44
33d9b44
# Remove egg files from source
33d9b44
rm -r %{srcname}.egg-info
33d9b44
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
33d9b44
441d767
%install
441d767
%py3_install
441d767
33d9b44
441d767
%files -n python3-%{srcname}
2e698db
%license LICENSE.txt
2e698db
%doc README.md
33d9b44
%{python3_sitearch}/%{srcname}/
33d9b44
%{python3_sitearch}/*egg-info/
33d9b44
441d767
441d767
%changelog
1b28d6d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-2
1b28d6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1b28d6d
0f6f833
* Fri Dec 31 2021 Christian Dersch <lupinix@fedoraproject.org> - 1.1.6-1
0f6f833
- new version
0f6f833
d91a639
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-3
d91a639
- Second attempt - Rebuilt for
d91a639
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d91a639
01ad16c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.4-2
01ad16c
- Rebuilt for Python 3.10
01ad16c
b7f485e
* Sun Feb 28 2021 Mattia Verga <mattia.verga@protonmail.com> - 1.1.4-1
b7f485e
- Update to 1.1.4
b7f485e
- Fixes rhbz#1930882
b7f485e
df32ced
* Tue Feb 02 2021 Christian Dersch <lupinix@mailbox.org> - 1.1.3-3
df32ced
- Rebuilt for libcfitsio.so.7
df32ced
1a6241d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
1a6241d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a6241d
33d9b44
* Fri Nov 13 2020 Mattia Verga <mattia.verga@protonmail.com> - 1.1.3-1
33d9b44
- Update to 1.1.3
33d9b44
- Fixes rhbz#1886081
33d9b44
fa5e615
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
fa5e615
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fa5e615
d5a8bf6
* Fri Jul 17 2020 Christian Dersch <lupinix@fedoraproject.org> - 1.1.2-1
d5a8bf6
- new version
d5a8bf6
1a4d7e1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-6
1a4d7e1
- Rebuilt for Python 3.9
1a4d7e1
af61122
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
af61122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
af61122
fa13fb6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-4
fa13fb6
- Rebuilt for Python 3.8.0rc1 (#1748018)
fa13fb6
afb12b1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-3
afb12b1
- Rebuilt for Python 3.8
afb12b1
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