Igor Gnatenko 13b060a
%{?python_enable_dependency_generator}
ca7fc99
%global modname moss
ca7fc99
Igor Gnatenko 4c6b86f
# Don't fail here because upstream says
Igor Gnatenko 4c6b86f
# Note that some of the statistical tests depend on randomly generated data
Igor Gnatenko 4c6b86f
# and fail from time to time because of this.
Igor Gnatenko 4c6b86f
# ignatenkobrain: I got it failing from time to time in COPR
Igor Gnatenko 4c6b86f
# Disable tests forever due to: https://github.com/mwaskom/moss/issues/17
Igor Gnatenko 4c6b86f
%bcond_with check
Igor Gnatenko 4c6b86f
ca7fc99
Name:           python-%{modname}
Igor Gnatenko 13b060a
Version:        0.5.0
a424650
Release:        11%{?dist}
ca7fc99
Summary:        Assorted utilities for neuroimaging and cognitive science
ca7fc99
Igor Gnatenko 13b060a
# moss/external/mvpasurf.py is MIT
Igor Gnatenko 13b060a
License:        BSD and MIT
ca7fc99
URL:            https://github.com/mwaskom/moss
ca7fc99
Source0:        https://github.com/mwaskom/moss/archive/v%{version}/%{modname}-%{version}.tar.gz
Igor Gnatenko 13b060a
Patch0001:      0001-put-real-dependencies-into-metadata.patch
Igor Gnatenko 13b060a
Patch0002:      0002-remove-use-of-deprecated-removed-scipy.stats.ss.patch
Igor Gnatenko 13b060a
Patch0003:      0003-bunch-munch.patch
Igor Gnatenko 13b060a
ca7fc99
BuildArch:      noarch
ca7fc99
ca7fc99
%description
ca7fc99
Moss is a library of functions, classes, and scripts to that may be useful for
ca7fc99
analyzing scientific data. Because this package is developed for neuroimaging
ca7fc99
and cognitive science, there is probably some bias towards applications that
ca7fc99
are useful in that domain. However, the functions are intended to be written
ca7fc99
in as general and lightweight a fashion as possible.
ca7fc99
ca7fc99
%package -n python3-%{modname}
ca7fc99
Summary:        %{summary}
ca7fc99
%{?python_provide:%python_provide python3-%{modname}}
Igor Gnatenko 13b060a
Provides:       bundled(PyMVPA)
Igor Gnatenko 13b060a
BuildRequires:  python3-devel
Igor Gnatenko 13b060a
BuildRequires:  python3-setuptools
Igor Gnatenko 4c6b86f
%if %{with check}
Igor Gnatenko 13b060a
# install_requires
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  matplotlib
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  munch
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  numpy
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  nibabel
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  pandas
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  scikit-learn
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  scipy
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  seaborn
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  six
Igor Gnatenko 13b060a
# tests_require
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  nose
525cdfc
BuildRequires:  python3dist
525cdfc
BuildRequires:  pytest
Igor Gnatenko 4c6b86f
%endif
ca7fc99
ca7fc99
%description -n python3-%{modname}
ca7fc99
Moss is a library of functions, classes, and scripts to that may be useful for
ca7fc99
analyzing scientific data. Because this package is developed for neuroimaging
ca7fc99
and cognitive science, there is probably some bias towards applications that
ca7fc99
are useful in that domain. However, the functions are intended to be written
ca7fc99
in as general and lightweight a fashion as possible.
ca7fc99
ca7fc99
Python 3 version.
ca7fc99
ca7fc99
%prep
ca7fc99
%autosetup -n %{modname}-%{version} -p1
Igor Gnatenko 13b060a
rm -vf licenses/BUNCH_LICENSE moss/external/bunch.py
ca7fc99
ca7fc99
%build
ca7fc99
%py3_build
ca7fc99
ca7fc99
%install
ca7fc99
%py3_install
ca7fc99
ca7fc99
# Depends on 'freeview' utility
Igor Gnatenko 13b060a
rm -vf %{buildroot}%{_bindir}/recon_qc
Igor Gnatenko 66d4c2f
Igor Gnatenko 4c6b86f
%if %{with check}
ca7fc99
%check
Igor Gnatenko 4c6b86f
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
Igor Gnatenko 4c6b86f
%endif
ca7fc99
ca7fc99
%files -n python3-%{modname}
Igor Gnatenko 13b060a
%license LICENSE licenses/*
ca7fc99
%doc README.md
Igor Gnatenko 13b060a
%{_bindir}/check_mni_reg
ca7fc99
%{_bindir}/recon_status
ca7fc99
%{_bindir}/recon_movie
ca7fc99
%{_bindir}/recon_process_stats
ca7fc99
%{_bindir}/ts_movie
Igor Gnatenko 13b060a
%{_bindir}/warp_qc
ca7fc99
%{python3_sitelib}/%{modname}*
ca7fc99
ca7fc99
%changelog
a424650
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-11
a424650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a424650
57f6674
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-10
57f6674
- Rebuilt for Python 3.9
57f6674
5af4fe3
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-9
5af4fe3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5af4fe3
a67a372
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-8
a67a372
- Rebuilt for Python 3.8.0rc1 (#1748018)
a67a372
2ae6716
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-7
2ae6716
- Rebuilt for Python 3.8
2ae6716
1856038
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-6
1856038
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1856038
8cf7db6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
8cf7db6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8cf7db6
525cdfc
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-4
525cdfc
- Subpackage python2-moss has been removed
525cdfc
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
525cdfc
49bb993
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
49bb993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
49bb993
6120731
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
6120731
- Rebuilt for Python 3.7
6120731
Igor Gnatenko 13b060a
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
Igor Gnatenko 13b060a
- Update to 0.5.0
Igor Gnatenko 13b060a
59e59e7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-12
59e59e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
59e59e7
b1e8e45
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.4-11
b1e8e45
- Update Python 2 dependency declarations to new packaging standards
b1e8e45
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
b1e8e45
1f6cf55
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-10
1f6cf55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1f6cf55
93f61d1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-9
93f61d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93f61d1
6728a30
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-8
6728a30
- Rebuild for Python 3.6
6728a30
Dominik 'Rathann' Mierzejewski 7728523
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.3.4-7
Dominik 'Rathann' Mierzejewski 7728523
- rebuilt for matplotlib-2.0.0
Dominik 'Rathann' Mierzejewski 7728523
e768c78
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-6
e768c78
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e768c78
Igor Gnatenko 66d4c2f
* Thu Jun 16 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.3.4-5
Igor Gnatenko 66d4c2f
- Python3 binaries should require only python3 (RHBZ #1342502)
Igor Gnatenko 66d4c2f
8733e78
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-4
8733e78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8733e78
ca7fc99
* Sun Dec 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.4-3
ca7fc99
- Fix according review
ca7fc99
ca7fc99
* Wed Nov 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.4-2
ca7fc99
- Provide only one version of binaries (py3)
ca7fc99
ca7fc99
* Thu Nov 05 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.3.4-1
ca7fc99
- Initial package