The package rpms/python-lfpy.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python-lfpy.git/commit/?id=65c29f....
Change:
+ExcludeArch: mips64r2 mips32r2 s390
Thanks.
Full change:
============
commit 65c29fb210bbf37cdbf32787dcdf7bffb34fb419
Author: victortyau <victortyau(a)gmail.com>
Date: Thu May 21 07:17:34 2020 -0500
working on changes from ankur
diff --git a/LFPy-2.0.7/debugfiles.list b/LFPy-2.0.7/debugfiles.list
index 3e40cdf..d0df7fa 100644
--- a/LFPy-2.0.7/debugfiles.list
+++ b/LFPy-2.0.7/debugfiles.list
@@ -5,6 +5,6 @@
%dir /usr/lib/debug/usr/lib64/python3.8/site-packages
%dir /usr/lib/debug/usr/lib64/python3.8/site-packages/LFPy
%dir /usr/lib/debug/.dwz
-/usr/lib/debug/usr/lib64/python3.8/site-packages/LFPy/alias_method.cpython-38-x86_64-linux-gnu.so-2.0.7-3.fc32.x86_64.debug
-/usr/lib/debug/usr/lib64/python3.8/site-packages/LFPy/run_simulation.cpython-38-x86_64-linux-gnu.so-2.0.7-3.fc32.x86_64.debug
-/usr/lib/debug/.dwz/python-lfpy-2.0.7-3.fc32.x86_64
+/usr/lib/debug/usr/lib64/python3.8/site-packages/LFPy/run_simulation.cpython-38-x86_64-linux-gnu.so-2.0.7-4.fc32.x86_64.debug
+/usr/lib/debug/usr/lib64/python3.8/site-packages/LFPy/alias_method.cpython-38-x86_64-linux-gnu.so-2.0.7-4.fc32.x86_64.debug
+/usr/lib/debug/.dwz/python-lfpy-2.0.7-4.fc32.x86_64
diff --git a/LFPy-2.0.7/debugsourcefiles.list b/LFPy-2.0.7/debugsourcefiles.list
index 226d16f..4eb453b 100644
--- a/LFPy-2.0.7/debugsourcefiles.list
+++ b/LFPy-2.0.7/debugsourcefiles.list
@@ -1 +1 @@
-/usr/src/debug/python-lfpy-2.0.7-3.fc32.x86_64
+/usr/src/debug/python-lfpy-2.0.7-4.fc32.x86_64
diff --git a/python-lfpy.spec b/python-lfpy.spec
index 81221fb..560df86 100644
--- a/python-lfpy.spec
+++ b/python-lfpy.spec
@@ -1,6 +1,6 @@
%global pypi_name lfpy
%global pretty_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
@@ -8,21 +8,25 @@ 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...}
-
+
+%global py_version python3-
+%global py_dist python3.8dist
+
+
Name: python-lfpy
Version: 2.0.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Model extracellular potentials of multicompartment neuron models built on
NEURON
-
+
License: GPLv3
URL:
http://LFPy.readthedocs.io
Source0: %{pypi_source %pretty_name}
-
-# Requires NEURON, so limited to arches that NEURON supports
-ExcludeArch: %{arm} mips64r2 mips32r2 s390 s390x
-
+
+# Requires NEURON, so limited to arches that NEURON and Random123 support
+ExcludeArch: mips64r2 mips32r2 s390
+
+
%?python_enable_dependency_generator
-
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: readline-devel
@@ -36,70 +40,68 @@ BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist numpy}
BuildRequires: %{py3_dist scipy}
BuildRequires: %{py3_dist setuptools}
-
+
BuildRequires: python3-mpi4py-openmpi
BuildRequires: python3-mpi4py-mpich
BuildRequires: mpich-devel
BuildRequires: openmpi-devel
BuildRequires: rpm-mpi-hooks
-
+
%description
%{desc}
-
-
+
+
%package -n python3-%{pypi_name}
Summary: %{summary}
-
+
%description -n python3-%{pypi_name}
%{desc}
-
+
%{?python_provide:%python_provide python3-%{pypi_name}}
-
+
Requires: %{py3_dist h5py}
Requires: %{py3_dist numpy}
Requires: %{py3_dist scipy}
Requires: %{py3_dist neuron}
Requires: python3-mpi4py-openmpi
Requires: python3-mpi4py-mpich
-
+
%prep
%autosetup -n %{pretty_name}-%{version}
# Remove bundled egg-info
rm -rf %{pretty_name}.egg-info
-
+
# Remove mpi4py from requirements
sed -i '/mpi4py/ d' setup.py
-
+
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
-
-
+
%check
#
https://github.com/LFPy/LFPy/blob/master/continuous_integration/test_scri...
%{_mpich_load}
#pytest-%{python3_version} LFPy/test/test*py
%{_mpich_unload}
-
+
%{_openmpi_load}
#pytest-%{python3_version} LFPy/test/test*py
%{_openmpi_unload}
-
-
+
+
# Remove unneeded test files: they include objects and libraries generated from neuron.
rm -rf %{buildroot}/%{python3_sitearch}/%{pretty_name}/test/
# Remove associated debuginfo files
rm -rf %{buildroot}/usr/lib/debug/%{python3_sitearch}/%{pretty_name}/test/
-
-
+
+
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md