%global pypi_name LFPy Name: python-%{pypi_name} Version: 2.0.2 Release: 1%{?dist} Summary: A module for modeling extracellular potentials of multicompartment neuron models built on NEURON License: GPLv3 URL: http://LFPy.readthedocs.io Source0: https://files.pythonhosted.org/packages/source/L/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %?python_enable_dependency_generator BuildRequires: python3-devel BuildRequires: python3dist(cython) BuildRequires: python3dist(h5py) BuildRequires: python3-mpi4py-mpich BuildRequires: python3dist(nose) BuildRequires: python3dist(numpy) BuildRequires: python3dist(scipy) BuildRequires: python3dist(setuptools) # BuildRequires: python3-mpi4py-mpich # BuildRequires: python3-mpi4py-openmpi # BuildRequires: mpi4py-common %description LFPy is a Python-module for calculation of extracellular potentials from multicompartment neuron models. It relies on the NEURON simulator ( and uses the Python interface ( it provides.LFPy provides a set of easy-to-use Python classes for setting up your model, running your simulations and calculating the extracellular potentials arising from activity in your model neuron. If you have a model... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(cython) Requires: python3dist(h5py) # Requires: python3-mpi4py-mpich # Requires: python3-mpi4py-openmpi # Requires: mpi4py-common Requires: python3dist(nose) Requires: python3dist(numpy) Requires: python3dist(scipy) Requires: python3dist(setuptools) %description -n python3-%{pypi_name} LFPy is a Python-module for calculation of extracellular potentials from multicompartment neuron models. It relies on the NEURON simulator ( and uses the Python interface ( it provides.LFPy provides a set of easy-to-use Python classes for setting up your model, running your simulations and calculating the extracellular potentials arising from activity in your model neuron. If you have a model... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info for lib in $(find . -type f -name "*.py"); do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %build %py3_build %install %py3_install # https://github.com/LFPy/LFPy/issues/139 # %check # %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Sun Jun 09 2019 Luis Bazan - 2.0.2-1 - Initial Import