diff --git a/mpi4py-3.1.3.tar.gz b/mpi4py-3.1.3.tar.gz deleted file mode 100644 index f8a1a88abc0414b2cbfd95c33e65c73e72ce5253..0000000000000000000000000000000000000000 Binary files a/mpi4py-3.1.3.tar.gz and /dev/null differ diff --git a/mpi4py-4.0.1.tar.gz b/mpi4py-4.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dcb8c40ab67c961ed9d86909f457fd0983a0e41e Binary files /dev/null and b/mpi4py-4.0.1.tar.gz differ diff --git a/mpi4py.spec b/mpi4py.spec index fd9c2316e2f14334ca93c9637a7825c11789ee25..5b0a141ca3121150ff30fb0e61ab3de6bb2353b7 100644 --- a/mpi4py.spec +++ b/mpi4py.spec @@ -2,19 +2,16 @@ %global MPICH 1 %global OPENMPI 1 -# Run full testsuite or just with 1 core %global FULLTESTS 0 - Name: mpi4py -Version: 3.1.3 -Release: 2 +Version: 4.0.1 +Release: 1 Summary: Python bindings of the Message Passing Interface (MPI) -License: BSD +License: BSD-2-Clause URL: https://mpi4py.readthedocs.io/en/stable/ -Source0: https://bitbucket.org/mpi4py/mpi4py/downloads/mpi4py-%{version}.tar.gz - +Source0: https://github.com/mpi4py/mpi4py/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools @@ -24,8 +21,13 @@ BuildRequires: python%{python3_pkgversion}-numpy BuildRequires: python%{python3_pkgversion}-simplejson BuildRequires: python%{python3_pkgversion}-yaml BuildRequires: python%{python3_pkgversion}-dill -BuildRequires: environment-modules +ExcludeArch: %{ix86} + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-Cython +BuildRequires: environment-modules %global _description %{expand: This package is constructed on top of the MPI-1/MPI-2 specification and @@ -62,7 +64,6 @@ Provides: python%{python3_pkgversion}-mpi4py-runtime = %{version}-%{releas This package contains %{name} compiled against Open MPI. - %if %{with_mpich} %package -n python%{python3_pkgversion}-mpi4py-mpich BuildRequires: mpich-devel @@ -88,29 +89,21 @@ This package contains the license file shared between the subpackages of %{name} %prep %autosetup -p1 %{?commit:-n %{name}-%{name}-%{shortcommit}} -# delete docs/source -# this is just needed to generate docs/* rm -r docs/source -# work around "wrong-file-end-of-line-encoding" for file in $(find | grep runtests.bat); do sed -i 's/\r//' $file done -# Save current src/__init__.py for mpich cp src/mpi4py/__init__.py .__init__mpich.py cp src/mpi4py/__init__.py .__init__openmpi.py -# Remove precythonized C sources -rm $(grep -rl '/\* Generated by Cython') - +python3 conf/cythonize.py %build -# Build parallel versions: set compiler variables to MPI wrappers export CC=mpicc export CXX=mpicxx -# Build OpenMPI version %{_openmpi_load} ompi_info cp .__init__openmpi.py src/mpi4py/__init__.py @@ -119,7 +112,6 @@ mv build openmpi %{_openmpi_unload} %if %{with_mpich} -# Build mpich version %{_mpich_load} cp .__init__mpich.py src/mpi4py/__init__.py %py3_build @@ -128,9 +120,7 @@ mv build mpich %endif - %install -# Install OpenMPI version %{_openmpi_load} cp .__init__openmpi.py src/mpi4py/__init__.py mv openmpi build @@ -141,7 +131,6 @@ mv build openmpi %{_openmpi_unload} %if %{with_mpich} -# Install MPICH version %{_mpich_load} cp .__init__mpich.py src/mpi4py/__init__.py mv mpich build @@ -197,8 +186,6 @@ mv build mpich %endif %endif - - %files common %license LICENSE.rst %doc CHANGES.rst DESCRIPTION.rst README.rst @@ -216,9 +203,11 @@ mv build mpich %files docs %doc docs/* demo + %changelog +* Tue Aug 5 2025 mimanchiok - 4.0.1-1 +- Update to 4.0.1 * Fri Apr 15 2022 tanyulong - 3.1.3-2 - rebuild - * Thu Mar 24 2022 tanyulong - 3.1.3-1 - init package for openEuler