## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global desc %{expand: \ Nilearn is a Python module for fast and easy statistical learning on NeuroImaging data. It leverages the scikit-learn Python toolbox for multivariate statistics with applications such as predictive modelling, classification, decoding, or connectivity analysis. This work is made available by a community of people, amongst which the INRIA Parietal Project Team and the scikit-learn folks, in particular P. Gervais, A. Abraham, V. Michel, A. Gramfort, G. Varoquaux, F. Pedregosa, B. Thirion, M. Eickenberg, C. F. Gorgolewski, D. Bzdok, L. Esteve and B. Cipollini. Detailed documentation is available at http://nilearn.github.io/.} Name: python-nilearn Version: 0.9.0 Release: %autorelease Summary: Python module for fast and easy statistical learning on NeuroImaging data License: BSD URL: https://pypi.python.org/pypi/nilearn Source0: %{pypi_source nilearn} BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} Recommends: %{py3_dist matplotlib} %description %{desc} %package -n python3-nilearn Summary: %{summary} %description -n python3-nilearn %{desc} %prep %autosetup -n nilearn-%{version} # Remove shebangs find . -name "*py" -exec sed -i '/#!\/usr\/bin\/env python/ d' '{}' \; # Remove pre-compiled files find . -name "*pyc" -exec rm -f '{}' \; # Correct python command sed -i 's/python/python3/' nilearn/plotting/html_document.py sed -i 's/python/python3/' nilearn/plotting/glass_brain_files/generate_json.sh %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel # Documentation also fetches imaging data set from online sources, so we cannot # generate it. We include the link to the documentation in the description. %install %pyproject_install %pyproject_save_files nilearn %check %{pytest} nilearn %files -n python3-nilearn -f %{pyproject_files} %doc AUTHORS.rst README.rst %changelog * Mon Feb 21 2022 Ankur Sinha (Ankur Sinha Gmail) 0.9.0-1 - feat: update to 0.9.0 (fixes rhbz#2047860) * Fri Jul 23 2021 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.7.1-2 - Rebuilt for Python 3.10 * Sun Mar 28 2021 Ankur Sinha - 0.7.1-1 - Update to latest release * Wed Jan 27 2021 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 28 2020 Ankur Sinha - 0.7.0-1 - Update to latest release * Wed Jul 29 2020 Fedora Release Engineering - 0.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 0.6.2-3 - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 0.6.2-2 - Rebuilt for Python 3.9 * Wed Apr 22 2020 Ankur Sinha - 0.6.2-1 - Update to 0.6.2 * Thu Feb 13 2020 Ankur Sinha - 0.6.1-2 - Remove dummy sklearn requirement from setup.py - Remove py2 bits from spec * Sun Feb 02 2020 Ankur Sinha - 0.6.1-1 - Update to newest version * Thu Jan 30 2020 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 19 2019 Miro Hrončok - 0.5.2-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 27 2019 Luis Bazan - 0.5.2-1 - Update to 0.5.2 * Sun Apr 14 2019 Manas Mangaonkar - 0.5.1-1 - Update to 0.5.1 * Wed Apr 10 2019 Ankur Sinha - 0.5.0-1 - Update to 0.5.0 * Sat Feb 02 2019 Fedora Release Engineering - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 09 2018 Ankur Sinha - 0.4.2-2 - Correct license - Remvoe shebangs - Remove pre-compiled files * Thu Nov 08 2018 Ankur Sinha - 0.4.2-1 - Initial build