## 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 %bcond_without tests %global forgeurl https://github.com/BlueBrain/eFEL # Use github commit tar instead of pypi which does not include tests %global commit d7a7e70daf905489d1cd0d91c3f158e7bae56828 %global desc %{expand: \ The Electrophys Feature Extraction Library (eFEL) allows neuroscientists to automatically extract features from time series data recorded from neurons (both in vitro and in silico). Examples are the action potential width and amplitude in voltage traces recorded during whole-cell patch clamp experiments. The user of the library provides a set of traces and selects the features to be calculated. The library will then extract the requested features and return the values to the user. The core of the library is written in C++, and a Python wrapper is included. At the moment we provide a way to automatically compile and install the library as a Python module.} Name: python-efel Version: 5.0.5 Release: %autorelease Summary: Electrophys Feature Extraction Library %forgemeta # python-pyedflib does not support s390x$ # https://src.fedoraproject.org/rpms/python-pyedflib/blob/rawhide/f/python-pyedflib.spec$ ExcludeArch: s390x License: LGPLv3 URL: http://efel.readthedocs.io/ Source0: %{forgesource} # Use the _version.py from pypi Source1: _version.py BuildRequires: gcc-c++ BuildRequires: python3-devel %description %{desc} %package -n python3-efel Summary: %{summary} BuildRequires: python3-setuptools BuildRequires: python3-pytest # from extras, but neo in Fedora doesn't provide extras yet, so we can't use # the -x neo flag in pyproject_buildrequires BuildRequires: python3-neo BuildRequires: python3-scipy %description -n python3-efel %{desc} %prep %forgesetup %autopatch -p1 rm -rf efel.egg-info # Install the version file cp %{SOURCE1} efel/_version.py -v %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install # Remove headers. We won't provide them here. rm -rf %{buildroot}/%{python3_sitearch}/efel/cppcore/ %pyproject_install %pyproject_save_files efel %check %pyproject_check_import %if %{with tests} # https://github.com/BlueBrain/eFEL/blob/master/Makefile#L36: is obsolete %pytest %endif %files -n python3-efel -f %{pyproject_files} %exclude %{python3_sitearch}/efel/cppcore/ %doc README.md %changelog * Sat Sep 09 2023 Ankur Sinha (Ankur Sinha Gmail) - 5.0.5-1 - feat: update to 5.0.0 (fixes rh#2235283) * Sat Jul 22 2023 Ankur Sinha (Ankur Sinha Gmail) - 5.0.1-1 - feat: update to 5.0.1 (fixes rbhz#2220202, rhbz#2162646) * Sat Jul 22 2023 Sandro - 4.1.54-5 - Update Versioneer to fix AttributeError (RHBZ#2220202) * Fri Jul 21 2023 Fedora Release Engineering - 4.1.54-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 4.1.54-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 4.1.54-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 10 2023 Ankur Sinha (Ankur Sinha Gmail) - 4.1.54-1 - feat: update to 4.1.54 (fixes rhbz#2149865) * Sun Oct 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 4.1.31-1 - feat: update to 4.1.31 (fixes rh#2121418) * Sun Oct 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 4.0.42-2 - feat: exclude s390x * Wed Aug 24 2022 Ankur Sinha (Ankur Sinha Gmail) - 4.0.42-1 - feat: update to 4.0.42 (fixes rhbz#2089829) * Fri Jul 22 2022 Fedora Release Engineering - 4.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.0.4-3 - Rebuilt for Python 3.11 * Wed Feb 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 4.0.4-2 - chore: bump for branch * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 4.0.4-1 - feat: update to 4.0.4 * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 3.1.96-6 - chore: remove name macros * Fri Jan 21 2022 Fedora Release Engineering - 3.1.96-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.1.96-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.1.96-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Ankur Sinha - 3.1.96-1 - Update to latest release - Remove pyprovide macro (not needed in F > 33) * Wed Jan 27 2021 Fedora Release Engineering - 3.1.39-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Sep 13 2020 Ankur Sinha - 3.1.39-3 - Use github tarball * Wed Jul 29 2020 Fedora Release Engineering - 3.1.39-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 06 2020 Ankur Sinha - 3.1.39-1 - Update to latest release * Thu Jun 25 2020 Ankur Sinha - 3.0.66-5 - Remove py2 bits - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 3.0.66-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.0.66-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 3.0.66-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 31 2019 Ankur Sinha - 3.0.66-1 - Update to 3.0.66 * Mon Aug 19 2019 Miro Hrončok - 3.0.58-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 3.0.58-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon May 27 2019 Ankur Sinha - 3.0.58-1 - Update to 3.0.58 * Wed Apr 10 2019 Ankur Sinha - 3.0.56-1 - Update to 3.0.56 * Sat Feb 02 2019 Fedora Release Engineering - 3.0.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 19 2018 Ankur Sinha - 3.0.22-1 - Initial build