|
|
b202460 |
%global modname mne
|
|
|
b202460 |
|
|
|
b202460 |
Name: python-%{modname}
|
|
|
7e59b9e |
Version: 0.13.1
|
|
|
c2a11a4 |
Release: 4%{?dist}
|
|
|
b202460 |
Summary: Magnetoencephalography (MEG) and Electroencephalography (EEG) data analysis
|
|
|
b202460 |
|
|
|
b202460 |
# Bundled FieldTrip
|
|
|
b202460 |
# https://github.com/fieldtrip/fieldtrip/blob/master/realtime/src/buffer/python/FieldTrip.py
|
|
|
b202460 |
# Not possible to package because it is matlab package with some plugins
|
|
|
b202460 |
|
|
|
b202460 |
License: BSD
|
|
|
b202460 |
URL: http://martinos.org/mne/
|
|
|
b202460 |
Source0: https://github.com/mne-tools/mne-python/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
b202460 |
#Source1: https://s3.amazonaws.com/mne-python/datasets/MNE-sample-data-processed.tar.gz
|
|
|
b202460 |
BuildArch: noarch
|
|
|
b202460 |
|
|
|
b202460 |
%description
|
|
|
b202460 |
This package is designed for sensor- and source-space analysis of M-EEG data,
|
|
|
b202460 |
including frequency-domain and time-frequency analyses and non-parametric
|
|
|
b202460 |
statistics.
|
|
|
b202460 |
|
|
|
b202460 |
%package -n python2-%{modname}
|
|
|
b202460 |
Summary: %{summary}
|
|
|
b202460 |
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
b202460 |
Provides: bundled(bootstrap)
|
|
|
b202460 |
Provides: bundled(js-jquery)
|
|
|
b202460 |
Provides: bundled(js-jquery-ui)
|
|
|
b202460 |
Provides: bundled(js-d3)
|
|
|
b202460 |
Provides: bundled(js-mpld3)
|
|
|
b202460 |
Provides: bundled(python2-FieldTrip)
|
|
|
7e59b9e |
BuildRequires: python2-devel
|
|
|
7e59b9e |
BuildRequires: python2-setuptools
|
|
|
7e59b9e |
BuildRequires: python2-nose
|
|
|
7e59b9e |
BuildRequires: python2-numpy
|
|
|
b202460 |
# Test deps
|
|
|
7e59b9e |
BuildRequires: python2-scipy
|
|
|
7e59b9e |
BuildRequires: python2-matplotlib
|
|
|
7e59b9e |
BuildRequires: python2-decorator
|
|
|
7e59b9e |
BuildRequires: python2-h5io
|
|
|
7e59b9e |
BuildRequires: python2-jdcal
|
|
|
7e59b9e |
BuildRequires: python2-six
|
|
|
7e59b9e |
BuildRequires: python-tempita
|
|
|
7e59b9e |
BuildRequires: python2-scikit-learn
|
|
|
7e59b9e |
BuildRequires: python2-patsy
|
|
|
b202460 |
#BuildRequires: Mayavi # XXX: GUI needed
|
|
|
b202460 |
BuildRequires: python2-Traits
|
|
|
7e59b9e |
Requires: python2-numpy
|
|
|
7e59b9e |
Requires: python2-scipy
|
|
|
7e59b9e |
Requires: python2-matplotlib
|
|
|
7e59b9e |
Requires: python2-decorator
|
|
|
7e59b9e |
Requires: python2-h5io
|
|
|
7e59b9e |
Requires: python2-jdcal
|
|
|
7e59b9e |
Requires: python2-six
|
|
|
7e59b9e |
Requires: python-tempita
|
|
|
7e59b9e |
Recommends: python2-scikit-learn
|
|
|
7e59b9e |
Recommends: python2-pandas
|
|
|
7e59b9e |
Recommends: python2-patsy
|
|
|
7e59b9e |
Recommends: python2-pillow
|
|
|
7e59b9e |
Recommends: python2-h5py
|
|
|
7e59b9e |
Recommends: python2-statsmodels
|
|
|
b202460 |
Recommends: python2-Traits
|
|
|
b202460 |
|
|
|
b202460 |
%description -n python2-%{modname}
|
|
|
b202460 |
This package is designed for sensor- and source-space analysis of M-EEG data,
|
|
|
b202460 |
including frequency-domain and time-frequency analyses and non-parametric
|
|
|
b202460 |
statistics.
|
|
|
b202460 |
|
|
|
b202460 |
Python 2 version.
|
|
|
b202460 |
|
|
|
b202460 |
%package -n python3-%{modname}
|
|
|
b202460 |
Summary: %{summary}
|
|
|
b202460 |
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
b202460 |
Provides: bundled(bootstrap)
|
|
|
b202460 |
Provides: bundled(js-jquery)
|
|
|
b202460 |
Provides: bundled(js-jquery-ui)
|
|
|
b202460 |
Provides: bundled(js-d3)
|
|
|
b202460 |
Provides: bundled(js-mpld3)
|
|
|
b202460 |
Provides: bundled(python3-FieldTrip)
|
|
|
7e59b9e |
BuildRequires: python3-devel
|
|
|
7e59b9e |
BuildRequires: python3-setuptools
|
|
|
7e59b9e |
BuildRequires: python3-nose
|
|
|
b202460 |
BuildRequires: python3-numpy
|
|
|
b202460 |
# Test deps
|
|
|
b202460 |
BuildRequires: python3-scipy
|
|
|
b202460 |
BuildRequires: python3-matplotlib
|
|
|
7e59b9e |
BuildRequires: python3-decorator
|
|
|
7e59b9e |
BuildRequires: python3-h5io
|
|
|
7e59b9e |
BuildRequires: python3-jdcal
|
|
|
7e59b9e |
BuildRequires: python3-six
|
|
|
7e59b9e |
BuildRequires: python3-tempita
|
|
|
b202460 |
BuildRequires: python3-scikit-learn
|
|
|
b202460 |
BuildRequires: python3-patsy
|
|
|
b202460 |
BuildRequires: python3-Traits
|
|
|
b202460 |
Requires: python3-numpy
|
|
|
b202460 |
Requires: python3-scipy
|
|
|
b202460 |
Requires: python3-matplotlib
|
|
|
7e59b9e |
Requires: python3-decorator
|
|
|
7e59b9e |
Requires: python3-h5io
|
|
|
7e59b9e |
Requires: python3-jdcal
|
|
|
7e59b9e |
Requires: python3-six
|
|
|
7e59b9e |
Requires: python3-tempita
|
|
|
b202460 |
Recommends: python3-scikit-learn
|
|
|
b202460 |
Recommends: python3-pandas
|
|
|
b202460 |
Recommends: python3-patsy
|
|
|
b202460 |
Recommends: python3-pillow
|
|
|
b202460 |
Recommends: python3-h5py
|
|
|
b202460 |
Recommends: python3-statsmodels
|
|
|
b202460 |
Recommends: python3-Traits
|
|
|
b202460 |
|
|
|
b202460 |
%description -n python3-%{modname}
|
|
|
b202460 |
This package is designed for sensor- and source-space analysis of M-EEG data,
|
|
|
b202460 |
including frequency-domain and time-frequency analyses and non-parametric
|
|
|
b202460 |
statistics.
|
|
|
b202460 |
|
|
|
b202460 |
Python 3 version.
|
|
|
b202460 |
|
|
|
b202460 |
%prep
|
|
|
feabee8 |
%autosetup -n %{modname}-python-%{version}
|
|
|
b202460 |
|
|
|
feabee8 |
pushd %{modname}/externals/
|
|
|
b202460 |
# Remove bundled six, jdcal, decorator, tempita, h5io
|
|
|
b202460 |
# Save bundled FieldTrip (can't find upstream)
|
|
|
b202460 |
rm -rf six.py jdcal.py decorator.py tempita/ h5io/
|
|
|
b202460 |
echo > __init__.py
|
|
|
b202460 |
[ $(find -maxdepth 1 -mindepth 1 | grep -v FieldTrip.py | grep -v __init__.py | wc -l) -eq 0 ] || exit 1
|
|
|
b202460 |
popd
|
|
|
feabee8 |
# use all six/jdcal/decorator/h5io from system
|
|
|
feabee8 |
# fix API change for jdjcal/jcal2jd
|
|
|
feabee8 |
find -type f -name '*.py' -exec sed -i \
|
|
|
feabee8 |
-e "s/from mne.externals.six/from six/" \
|
|
|
feabee8 |
-e "s/from \.*externals.six/from six/" \
|
|
|
feabee8 |
-e "s/from mne.externals import six/import six/" \
|
|
|
feabee8 |
-e "s/from \.*externals import six/import six/" \
|
|
|
feabee8 |
-e "s/from \.*externals.jdcal/from jdcal/" \
|
|
|
feabee8 |
-e "s/from \.*externals.decorator/from decorator/" \
|
|
|
feabee8 |
-e "s/from \.*externals.h5io/from h5io/" \
|
|
|
feabee8 |
-e "s/from \.*externals.tempita/from tempita/" \
|
|
|
feabee8 |
-e "s/jd2jcal(\(.*\))/jd2jcal(\1, 0)[:-1]/" \
|
|
|
feabee8 |
-e "s/(jcal2jd(\(.*\)))/(jcal2jd(\1)[-1])/" \
|
|
|
feabee8 |
{} ';'
|
|
|
feabee8 |
sed -i -e "/mne\.externals\.[^']*/d" setup.py
|
|
|
feabee8 |
|
|
|
feabee8 |
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{modname}/commands/*.py
|
|
|
feabee8 |
sed -i -e '1s|^#!.*$|#!%{__python3}|' bin/%{modname}
|
|
|
b202460 |
|
|
|
b202460 |
#cp -p %{SOURCE1} .
|
|
|
b202460 |
#python -c "import mne; mne.datasets.sample.data_path(verbose=True, download=False)"
|
|
|
b202460 |
|
|
|
b202460 |
%build
|
|
|
feabee8 |
%py2_build
|
|
|
feabee8 |
%py3_build
|
|
|
b202460 |
|
|
|
b202460 |
%install
|
|
|
feabee8 |
%py2_install
|
|
|
feabee8 |
%py3_install
|
|
|
b202460 |
|
|
|
b202460 |
%check
|
|
|
b202460 |
export MNE_SKIP_TESTING_DATASET_TESTS=true
|
|
|
b202460 |
export MNE_SKIP_NETWORK_TESTS=1
|
|
|
3d4711d |
# In koji it is timing out
|
|
|
3d4711d |
%global to_skip test_spectral_connectivity
|
|
|
feabee8 |
nosetests-%{python2_version} -v %{?to_skip:-e %{to_skip}} || :
|
|
|
feabee8 |
nosetests-%{python3_version} -v %{?to_skip:-e %{to_skip}} || :
|
|
|
b202460 |
|
|
|
b202460 |
%files -n python2-%{modname}
|
|
|
feabee8 |
%license LICENSE.txt
|
|
|
feabee8 |
%doc README.rst examples AUTHORS.rst
|
|
|
b202460 |
%{python2_sitelib}/%{modname}/
|
|
|
7e59b9e |
%{python2_sitelib}/%{modname}-*.egg-info/
|
|
|
b202460 |
|
|
|
b202460 |
%files -n python3-%{modname}
|
|
|
feabee8 |
%license LICENSE.txt
|
|
|
feabee8 |
%doc README.rst examples AUTHORS.rst
|
|
|
b202460 |
%{_bindir}/%{modname}
|
|
|
b202460 |
%{python3_sitelib}/%{modname}/
|
|
|
7e59b9e |
%{python3_sitelib}/%{modname}-*.egg-info/
|
|
|
b202460 |
|
|
|
b202460 |
%changelog
|
|
|
c2a11a4 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-4
|
|
|
c2a11a4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c2a11a4 |
|
|
|
0c0de40 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-3
|
|
|
0c0de40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0c0de40 |
|
|
|
6114011 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.13.1-2
|
|
|
6114011 |
- Rebuild for Python 3.6
|
|
|
6114011 |
|
|
|
7e59b9e |
* Tue Nov 29 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.13.1-1
|
|
|
7e59b9e |
- Update to 0.13.1
|
|
|
7e59b9e |
|
|
Dominik 'Rathann' Mierzejewski |
49542ad |
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.10-8
|
|
Dominik 'Rathann' Mierzejewski |
49542ad |
- rebuilt for matplotlib-2.0.0
|
|
Dominik 'Rathann' Mierzejewski |
49542ad |
|
|
|
a431e29 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
|
|
|
a431e29 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
a431e29 |
|
|
|
e7f3740 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-6
|
|
|
e7f3740 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e7f3740 |
|
|
|
f7645b8 |
* Sun Nov 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-5
|
|
|
f7645b8 |
- Rebuild for fixed scipy
|
|
|
f7645b8 |
|
|
|
b202460 |
* Wed Nov 11 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-4
|
|
|
b202460 |
- Fix non-executable-script
|
|
|
b202460 |
|
|
|
b202460 |
* Mon Nov 09 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-3
|
|
|
b202460 |
- Fix unbundling jdcal
|
|
|
b202460 |
|
|
|
b202460 |
* Sun Nov 08 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-2
|
|
|
b202460 |
- /usr/bin/mne uses python3
|
|
|
b202460 |
- fix dependencies around Traits (add py3 version)
|
|
|
b202460 |
- unbundle jdcal/six/decorator/tempita/h5io
|
|
|
b202460 |
- add Provides: bundled(pythonX-FieldTrip)
|
|
|
b202460 |
- More better Summary
|
|
|
b202460 |
|
|
|
b202460 |
* Fri Oct 30 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.10-1
|
|
|
b202460 |
- Initial package
|