## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # The test require internet to download data and so cannot be run in koji # Confirmed all tests pass in mock with network access: # mock -r fedora-rawhide-x86_64 rebuild ./python-mne-bids-0.1-2.fc29.src.rpm # --enable-network --rpmbuild-opts="--with tests" # Test disable %bcond_with tests %global desc %{expand: \ MNE-BIDS: Organizing MEG, EEG, and iEEG data according to the BIDS specification and facilitating their analysis with MNE-Python} Name: python-mne-bids Version: 0.14 Release: %autorelease Summary: Experimental code for BIDS using MNE License: BSD-3-Clause URL: https://github.com/mne-tools/mne-bids Source0: %{url}/archive/v%{version}/mne-bids-%{version}.tar.gz BuildArch: noarch ExcludeArch: %{ix86} %description %{desc} %package -n python3-mne-bids Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools # not automatically generated Requires: python3-pandas Requires: python3-six Requires: python3-nose Requires: python3-pytest-shutil Requires: python3-matplotlib Requires: python3-tempita %description -n python3-mne-bids %{desc} %prep %autosetup -n mne-bids-%{version} # Not required on the python versions Fedora uses sed -i '/importlib-resources/ d' setup.cfg sed -i 's/mne.externals.six/six/' mne_bids/utils.py find -type f -name '*.py' -exec sed -i \ -e "s/from mne.externals.tempita/from tempita/" \ {} ';' # remove she-bang lines in .py files. find * -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';' %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files mne_bids %check %if %{with tests} export PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} %{pytest} mne_bids -W ignore::DeprecationWarning %endif # Run test require internet # Example: # mock -r fedora-rawhide-x86_64 rebuild ./python-mne-bids-0.1-2.fc29.src.rpm --enable-network --rpmbuild-opts="--with tests" %files -n python3-mne-bids -f %{pyproject_files} %doc README.md examples/README.rst %{_bindir}/mne_bids %changelog * Fri Nov 17 2023 Packit - 0.14-1 - [packit] 0.14 upstream release - Resolves rhbz#2250201 * Mon Sep 04 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.13-1 - feat: update to 0.13 (fixes rhbz#2233706, rhbz#2226245) * Mon Sep 04 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.12-3 - chore: add packit * Fri Jul 21 2023 Fedora Release Engineering - 0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Apr 26 2023 Sandro - 0.12-1 - Update to 0.12 - Migrate to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 0.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 27 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.10-5 - feat: ExcludeArch %%{ix86} * Wed Jul 27 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.10-4 - feat: use pyproject macros * Fri Jul 22 2022 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 27 2022 Luis Bazan - 0.10-1 - New upstream version * Fri Jan 21 2022 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 08 2021 Aniket Pradhan - 0.8-1 - New upstream version - Removed explicit call to dependency generator * Fri Jul 23 2021 Fedora Release Engineering - 0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.7-2 - Rebuilt for Python 3.10 * Wed Apr 07 2021 Luis Bazan - 0.7-1 - New upstream version * Wed Jan 27 2021 Fedora Release Engineering - 0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.4-2 - Rebuilt for Python 3.9 * Tue Apr 21 2020 Ankur Sinha - 0.4-1 - Update to 0.4 - Remove py2 sub-package * Thu Jan 30 2020 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Dec 27 2019 Luis Bazan - 0.3.1-1 - New upstream version * Tue Aug 20 2019 Miro Hrončok - 0.3-2 - Rebuilt for Python 3.8 * Tue Aug 20 2019 Luis M. Segundo - 0.3-1 - New upstream version * Mon Aug 19 2019 Miro Hrončok - 0.2-3 - Rebuilt for Python 3.8 * Mon Apr 29 2019 Luis Bazan - 0.2-2 - Fix typo * Mon Apr 29 2019 Luis Bazan - 0.2-1 - New upstream version * Sat Feb 02 2019 Fedora Release Engineering - 0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 26 2018 Luis Bazan - 0.1-2 - Fix comment 1 in BZ 1652976 * Fri Nov 23 2018 Luis Bazan - 0.1-1 - New upstream