Blame python-nibabel.spec

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