16effb
%global modname nibabel
16effb
16effb
Name:           python-%{modname}
2d8652
Version:        3.1.1
1b109f
Release:        2%{?dist}
16effb
Summary:        Python package to access a cacophony of neuro-imaging file formats
16effb
16effb
License:        MIT and PDDL-1.0
16effb
URL:            http://nipy.org/nibabel/
16effb
Source0:        https://github.com/nipy/nibabel/archive/%{version}/%{modname}-%{version}.tar.gz
4b84d8
16effb
BuildArch:      noarch
16effb
16effb
%description
16effb
Read / write access to some common neuroimaging file formats
16effb
16effb
This package provides read +/- write access to some common medical and
16effb
neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and
16effb
later), GIFTI, NIfTI1, NIfTI2, MINC1, MINC2, MGH and ECAT as well as Philips
16effb
PAR/REC. We can read and write Freesurfer geometry, and read Freesurfer
16effb
morphometry and annotation files. There is some very limited support for DICOM.
16effb
NiBabel is the successor of PyNIfTI.
16effb
16effb
The various image format classes give full or selective access to header (meta)
16effb
information and access to the image data is made available via NumPy arrays.
16effb
16effb
%package -n python3-%{modname}
16effb
Summary:        %{summary}
16effb
%{?python_provide:%python_provide python3-%{modname}}
Igor Gnatenko 50d5f9
BuildRequires:  python3-devel
Igor Gnatenko 50d5f9
BuildRequires:  python3-setuptools
16effb
BuildRequires:  python3-nose
Igor Gnatenko 50d5f9
BuildRequires:  python3-mock
Igor Gnatenko 50d5f9
BuildRequires:  python3-six
Igor Gnatenko 50d5f9
BuildRequires:  python3-numpy
Igor Gnatenko 50d5f9
BuildRequires:  python3-scipy
Igor Gnatenko 50d5f9
BuildRequires:  python3-matplotlib
Igor Gnatenko 50d5f9
BuildRequires:  python3-pillow
63bf75
BuildRequires:  python3-pytest
Igor Gnatenko 50d5f9
BuildRequires:  python3-h5py
Igor Gnatenko 50d5f9
BuildRequires:  python3-pydicom
Igor Gnatenko 50d5f9
Requires:       python3-six
16effb
Requires:       python3-numpy
f62444
Recommends:     python3-scipy
16effb
Recommends:     python3-pydicom
f62444
# https://github.com/nipy/nibabel/issues/579
f62444
Provides:       bundled(python%{python3_version}dist(netcdf))
16effb
16effb
%description -n python3-%{modname}
16effb
Read / write access to some common neuroimaging file formats
16effb
16effb
This package provides read +/- write access to some common medical and
16effb
neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and
16effb
later), GIFTI, NIfTI1, NIfTI2, MINC1, MINC2, MGH and ECAT as well as Philips
16effb
PAR/REC. We can read and write Freesurfer geometry, and read Freesurfer
16effb
morphometry and annotation files. There is some very limited support for DICOM.
16effb
NiBabel is the successor of PyNIfTI.
16effb
16effb
The various image format classes give full or selective access to header (meta)
16effb
information and access to the image data is made available via NumPy arrays.
16effb
16effb
Python 3 version.
16effb
16effb
%prep
7c1226
%autosetup -n %{modname}-%{version}
7c1226
7c1226
# remove bundled six
4b84d8
rm -vrf %{modname}/externals/six.py
4b84d8
sed -i -e "s/nibabel.externals.six/six/" nibabel/externals/__init__.py
7c1226
rm -fv nibabel/externals/tests/test_six.py
16effb
16effb
%build
16effb
%py3_build
16effb
16effb
%install
Igor Gnatenko 50d5f9
%py3_install
16effb
16effb
%check
d29e70
pytest-%{python3_version}
16effb
16effb
%files -n python3-%{modname}
16effb
%license COPYING
16effb
%{_bindir}/parrec2nii
d29e70
%{_bindir}/nib-conform
7c1226
%{_bindir}/nib-diff
16effb
%{_bindir}/nib-dicomfs
d29e70
%{_bindir}/nib-ls
16effb
%{_bindir}/nib-nifti-dx
2620a4
%{_bindir}/nib-tck2trk
2620a4
%{_bindir}/nib-trk2tck
16effb
%{python3_sitelib}/%{modname}*
16effb
%{python3_sitelib}/nisext/
16effb
16effb
%changelog
1b109f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
1b109f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1b109f
2d8652
* Sat Jul 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.1.1-1
2d8652
- Update to 3.1.1
2d8652
e3d6a3
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
e3d6a3
- Rebuilt for Python 3.9
e3d6a3
d29e70
* Fri May 01 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.1.0-1
d29e70
- Update to 3.1.0
d29e70
63bf75
* Sat Feb 01 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.0.1-1
63bf75
- Update to new release
63bf75
- Add pytest BR
63bf75
76bb61
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
76bb61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
76bb61
48a187
* Fri Oct 25 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.5.1-1
48a187
- Update to 2.5.1
48a187
85d931
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-3
85d931
- Rebuilt for Python 3.8.0rc1 (#1748018)
85d931
59d698
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
59d698
- Rebuilt for Python 3.8
59d698
4af5d8
* Sun Aug 04 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.5.0-1
4af5d8
- Update to latest release---fixes broken test
4af5d8
93bcbd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
93bcbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
93bcbd
535bb7
* Wed Jul 10 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.4.1-1
535bb7
- Update to 2.4.1
535bb7
cb1730
* Sat Feb 16 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.3.3-1
cb1730
- Update to 2.3.3
cb1730
21bbc2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
21bbc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
21bbc2
7c1226
* Wed Nov 07 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.3.1-1
7c1226
- Update to latest upstream release
7c1226
- Remove unneeded patch
7c1226
4b84d8
* Mon Aug 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.0-3
f62444
- Drop python2 subpackage
f62444
ef6a13
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
ef6a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ef6a13
e37be7
* Fri Jun 22 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.3.0-1
e37be7
- Update to 2.3.0
e37be7
- No build since tests fail, issue filed: https://github.com/nipy/nibabel/issues/579
e37be7
ecb3a4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-3
ecb3a4
- Rebuilt for Python 3.7
ecb3a4
8ae558
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
8ae558
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8ae558
d63bf6
* Sun Nov 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.0-1
d63bf6
- Update to 2.2.0
d63bf6
f10a9c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
f10a9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f10a9c
Igor Gnatenko 50d5f9
* Sat Mar 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.1.0-1
Igor Gnatenko 50d5f9
- Update to 2.1.0
Igor Gnatenko 50d5f9
bedd9a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
bedd9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bedd9a
bbb79d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-4
bbb79d
- Rebuild for Python 3.6
bbb79d
23c416
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
23c416
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
23c416
497a93
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
497a93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
497a93
16effb
* Mon Nov 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
16effb
- Update to 2.0.2
16effb
- unversioned bir to python3
16effb
16effb
* Sat Oct 31 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1
16effb
- Initial package