Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mpi4py for openSUSE:Factory 
checked in at 2021-10-01 22:28:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mpi4py (Old)
 and      /work/SRC/openSUSE:Factory/.python-mpi4py.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mpi4py"

Fri Oct  1 22:28:59 2021 rev:14 rq:922440 version:3.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mpi4py/python-mpi4py.changes      
2021-09-27 20:09:03.882472451 +0200
+++ /work/SRC/openSUSE:Factory/.python-mpi4py.new.2443/python-mpi4py.changes    
2021-10-01 22:29:06.393379939 +0200
@@ -1,0 +2,5 @@
+Thu Sep 30 12:04:19 UTC 2021 - Nicolas Morey-Chaisemartin 
<nmoreychaisemar...@suse.com>
+
+- Use openmpi macros to always build with the default openmpi version 
(bsc#1190810)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-mpi4py.spec ++++++
--- /var/tmp/diff_new_pack.zCTqC4/_old  2021-10-01 22:29:06.889380855 +0200
+++ /var/tmp/diff_new_pack.zCTqC4/_new  2021-10-01 22:29:06.893380862 +0200
@@ -19,11 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %define skip_python36 1
-%if 0%{?sle_version} && 0%{?sle_version} < 150300
-  %define mpiver  openmpi
-%else
-  %define mpiver  openmpi4
-%endif
+
 Name:           python-mpi4py
 Version:        3.1.1
 Release:        0
@@ -31,17 +27,15 @@
 License:        BSD-2-Clause
 URL:            https://bitbucket.org/mpi4py/mpi4py
 Source:         
https://files.pythonhosted.org/packages/source/m/mpi4py/mpi4py-%{version}.tar.gz
-BuildRequires:  %{mpiver}
-BuildRequires:  %{mpiver}-config
-BuildRequires:  %{mpiver}-devel
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  openmpi-macros-devel
 BuildRequires:  python-rpm-macros
-Requires:       %{mpiver}
-Requires:       %{mpiver}-config
+%openmpi_requires
+
 %python_subpackages
 
 %description
@@ -85,7 +79,7 @@
 
 %package     -n %{name}-common-devel
 Summary:        Shared development files for %{name}
-Requires:       %{mpiver}-devel
+%openmpi_devel_requires
 Provides:       %{python_module mpi4py-common-devel = %{version}}
 
 %description -n %{name}-common-devel
@@ -109,7 +103,7 @@
 sed -i '1!b;/^#!\/usr\/bin\/python/d' demo/python-config
 
 %build
-source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
+%setup_openmpi
 
 export CFLAGS="%{optflags} -fno-strict-aliasing"
 export LANG=en_US.UTF-8
@@ -134,7 +128,7 @@
 
 mkdir -p %{buildroot}%{_rpmmacrodir}
 cat >> %{buildroot}%{_rpmmacrodir}/macros.mpi4py <<EOL
-mpi4py_mpi_ver %{mpiver}
+mpi4py_mpi_ver openmpi
 EOL
 
 %check
@@ -144,7 +138,8 @@
 rm -rf build _build.*
 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
 rm -rf build _build.*
-%{_libdir}/mpi/gcc/%{mpiver}/bin/mpiexec --use-hwthread-cpus --mca btl 
tcp,self -n 1  $python -B test/runtests.py -v --exclude="test_spawn"
+%setup_openmpi
+%{openmpi_prefix}/bin/mpiexec --use-hwthread-cpus --mca btl tcp,self -n 1  
$python -B test/runtests.py -v --exclude="test_spawn"
 }
 
 %files %{python_files}

Reply via email to