diff --git a/python-lfpy.spec b/python-lfpy.spec index b5c2386..dbf7689 100644 --- a/python-lfpy.spec +++ b/python-lfpy.spec @@ -1,6 +1,5 @@ %global pypi_name LFPy - %global desc %{expand: \ LFPy is a Python-module for calculation of extracellular potentials from multi-compartment neuron models. It relies on the NEURON simulator ( and uses @@ -12,15 +11,14 @@ have a model...} %global py_version python3- %global py_dist python3dist +Name: python-lfpy +Version: 2.0.3 +Release: 4%{?dist} +Summary: module for extra cellular potentials of multicompartment neuron models on NEURON -Name: python-lfpy -Version: 2.0.3 -Release: 3%{?dist} -Summary: module for extracellular potentials of multicompartment neuron models on NEURON - -License: GPLv3 -URL: http://LFPy.readthedocs.io -Source0: %{pypi_source} +License: GPLv3 +URL: http://LFPy.readthedocs.io +Source0: %{pypi_source} %?python_enable_dependency_generator @@ -33,15 +31,15 @@ BuildRequires: %{py_dist}(nose) BuildRequires: %{py_dist}(numpy) BuildRequires: %{py_dist}(scipy) BuildRequires: %{py_dist}(setuptools) -BuildRequires: %{py_version}mpi4py-openmpi -BuildRequires: mpi4py-common +BuildRequires: %{py_version}mpi4py-openmpi +BuildRequires: mpi4py-common %description %{desc} -%package -n %{py_version}%{pypi_name} -Summary: %{summary} +%package -n %{py_version}%{pypi_name} +Summary: %{summary} %{?python_provide:%python_provide %{py_version}%{pypi_name}} Requires: %{py_dist}(h5py) @@ -51,7 +49,7 @@ Requires: %{py_dist}(nose) Requires: %{py_dist}(numpy) Requires: %{py_dist}(scipy) -%description -n %{py_version}%{pypi_name} +%description -n %{py_version}%{pypi_name} %{desc} %prep @@ -65,17 +63,17 @@ for lib in $(find . -type f -name "*.py"); do mv $lib.new $lib done +chmod 0644 %{pypi_name}/alias_method.pyx +chmod 0644 %{pypi_name}/run_simulation.pyx + %build %py3_build %install %py3_install - -# https://github.com/LFPy/LFPy/issues/139 -# %check -# %{__python3} setup.py test - +%check +%{__python3} setup.py test %files -n %{py_version}%{pypi_name} %license LICENSE @@ -84,6 +82,10 @@ done %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Mon Aug 26 2019 Luis Bazan - 2.0.3-4 +- fix mixed space and tabs +- non-executable script + * Mon Aug 26 2019 Luis Bazan - 2.0.3-3 - fix some typos and import source