## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; 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 %bcond_without tests Name: python-ephyviewer Version: 1.5.1 Release: %autorelease Summary: Simple viewers for ephys signals, events, video and more License: MIT URL: https://github.com/NeuralEnsemble/ephyviewer Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest # python-pyedflib does not support s390x$ # https://src.fedoraproject.org/rpms/python-pyedflib/blob/rawhide/f/python-pyedflib.spec$ ExcludeArch: s390x %global _description %{expand: ephyviewer is a Python library based on pyqtgraph for building custom viewers for electrophysiological signals, video, events, epochs, spike trains, data tables, and time-frequency representations of signals. It also provides an epoch encoder for creating annotations. Documentation is available at https://ephyviewer.readthedocs.io/} %description %_description %package -n python3-ephyviewer Summary: %{summary} # needs Xvfb BuildRequires: xorg-x11-server-Xvfb %description -n python3-ephyviewer %_description %prep %autosetup -n ephyviewer-%{version} # spikeinterface and av optional and not yet packaged # https://pagure.io/neuro-sig/NeuroFedora/issue/473 # av: bindings for ffmpeg so we'll need to see if it can be included in Fedora # remove pytest-cov sed -i -e '/spikeinterface/ d' -e '/av/ d' -e '/pytest-cov/ d' requirements-tests.txt %generate_buildrequires %pyproject_buildrequires -r -x tests %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ephyviewer %check %if %{with tests} # some tests segfault with xvfb, so we disable these # other tests that require unpackaged extra modules or download data xvfb-run -a -s "-screen 0 1920x1200x24 -ac +extension GLX" pytest-3 \ -k "not test_spiketrainviewer and not test_timefreqviewer and not test_traceviewer and not test_VideoMultiFileSource and not test_spikeinterface_sources and not test_spikeinterface_viewer and not test_videoviewer and not test_neo_rawio_sources and not test_mainviewer2 and not test_neoviewer" %endif %files -n python3-ephyviewer -f %{pyproject_files} %doc README.* %{_bindir}/ephyviewer %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Oct 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.5.1-8 - feat: exclude s390x * Fri Jul 22 2022 Fedora Release Engineering - 1.5.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jun 26 2022 Python Maint - 1.5.1-6 - Rebuilt for Python 3.11 * Thu Apr 21 2022 Vanessa_kris - 1.5.1-5 - removed srpm from repo * Tue Mar 29 2022 Vanessa_kris - 1.5.1-4 - added source file * Tue Mar 29 2022 Vanessa_kris - 1.5.1-3 - initial build * Tue Mar 29 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.5.1-2 - feat: update spec to fix build * Tue Mar 29 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.5.1-1 - feat: add spec