summaryrefslogtreecommitdiff
path: root/mpi4py.spec
diff options
context:
space:
mode:
Diffstat (limited to 'mpi4py.spec')
-rw-r--r--mpi4py.spec47
1 files changed, 14 insertions, 33 deletions
diff --git a/mpi4py.spec b/mpi4py.spec
index e7318f9..c53a85f 100644
--- a/mpi4py.spec
+++ b/mpi4py.spec
@@ -2,27 +2,22 @@
%global MPICH 1
%global OPENMPI 1
-# Run full testsuite or just with 1 core
%global FULLTESTS 0
Name: mpi4py
-Version: 3.1.3
-Release: 3
+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
-
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python%{python3_pkgversion}-Cython >= 0.22
-# For testing
-BuildRequires: python%{python3_pkgversion}-numpy
-BuildRequires: python%{python3_pkgversion}-simplejson
-BuildRequires: python%{python3_pkgversion}-yaml
-BuildRequires: python%{python3_pkgversion}-dill
-BuildRequires: environment-modules
+Source0: https://github.com/mpi4py/mpi4py/archive/%{version}/%{name}-%{version}.tar.gz
+
+ExcludeArch: %{ix86}
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python3-cython
%global _description %{expand:
This package is constructed on top of the MPI-1/MPI-2 specification and
@@ -59,7 +54,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
@@ -85,38 +79,29 @@ 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
+%{_libdir}/openmpi/bin/ompi_info
cp .__init__openmpi.py src/mpi4py/__init__.py
%py3_build
mv build openmpi
%{_openmpi_unload}
%if %{with_mpich}
-# Build mpich version
%{_mpich_load}
cp .__init__mpich.py src/mpi4py/__init__.py
%py3_build
@@ -127,7 +112,6 @@ mv build mpich
%install
-# Install OpenMPI version
%{_openmpi_load}
cp .__init__openmpi.py src/mpi4py/__init__.py
mv openmpi build
@@ -138,7 +122,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
@@ -168,11 +151,9 @@ mv build mpich
%changelog
-* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 3.1.3-3
-- project init
-
+* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 4.0.1-1
+- Update to 4.0.1
* Fri Apr 15 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.3-2
- rebuild
-
* Thu Mar 24 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.3-1
- init package for openEuler