diff --git a/_constraints b/_constraints
new file mode 100644
index 0000000..351e55f
--- /dev/null
+++ b/_constraints
@@ -0,0 +1,8 @@
+
+
+
+ 4
+
+ 2
+
+
diff --git a/mpi4py-3.0.1.tar.gz b/mpi4py-3.0.1.tar.gz
deleted file mode 100644
index dae3147..0000000
--- a/mpi4py-3.0.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6549a5b81931303baf6600fa2e3bc04d8bd1d5c82f3c21379d0d64a9abcca851
-size 1428612
diff --git a/mpi4py-3.0.2.tar.gz b/mpi4py-3.0.2.tar.gz
new file mode 100644
index 0000000..0045cd6
--- /dev/null
+++ b/mpi4py-3.0.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8d629d1e3e3b7b89cb99d0e3bc5505e76cc42089829807950d5c56606ed48e0
+size 1429331
diff --git a/python-mpi4py.changes b/python-mpi4py.changes
index 4aed7d9..b02c956 100644
--- a/python-mpi4py.changes
+++ b/python-mpi4py.changes
@@ -1,3 +1,17 @@
+-------------------------------------------------------------------
+Wed Jul 31 02:30:19 UTC 2019 - Todd R
+
+- Update to 3.0.2
+ * Bug fixes:
+ + Fix handling of readonly buffers in support for Pytho
+ 2 legacy buffer interface. The issue triggers only when using
+ a buffer-like object that is readonly and does not export
+ the new Python 3 buffer interface.
+ + Fix build issues with Open MPI 4.0.x series related to
+ removal of many MPI-1 symbols deprecated in MPI-2 and removed
+ in MPI-3.
+ + Minor documentation fixes.
+
-------------------------------------------------------------------
Wed Feb 27 01:36:38 UTC 2019 - Bernhard Wiedemann
diff --git a/python-mpi4py.spec b/python-mpi4py.spec
index 43cffd4..f48525b 100644
--- a/python-mpi4py.spec
+++ b/python-mpi4py.spec
@@ -18,12 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{?sle_version} && 0%{?sle_version} < 150000
-%define mpiver openmpi
+ %define mpiver openmpi
%else
%define mpiver openmpi2
%endif
Name: python-mpi4py
-Version: 3.0.1
+Version: 3.0.2
Release: 0
Summary: MPI for Python
License: BSD-2-Clause
@@ -31,13 +31,16 @@ Group: Development/Libraries/Python
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: python-rpm-macros
Requires: %{mpiver}
+Requires: %{mpiver}-config
%python_subpackages
%description
@@ -70,17 +73,17 @@ This package supports:
* passive target syncronization: start/complete & post/wait
* active target syncronization: lock & unlock
-%package devel
+%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: %{name}-common-devel = %{version}
Requires: python-devel
-%description devel
+%description devel
Development libraries and headers needed to build packages using %{name}.
-%package -n %{name}-common-devel
+%package -n %{name}-common-devel
Summary: Shared development files for %{name}
Group: Development/Libraries/Python
Requires: %{mpiver}-devel
@@ -93,7 +96,7 @@ for both python2 and python3.
You normally do not need to install this directly, it will be pulled in by
the python-specific devel package.
-%package -n %{name}-doc
+%package -n %{name}-doc
Summary: Documentation for %{name}
Group: Documentation/Other
Provides: %{python_module mpi4py-doc = %{version}}
@@ -110,9 +113,11 @@ sed -i 's/\r$//' docs/usrman/objects.inv
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
export CFLAGS="%{optflags} -fno-strict-aliasing"
-%python_build
+export LANG=en_US.UTF-8
+%{python_build --force}
%install
+export LANG=en_US.UTF-8
%python_install
# De-duplicate includes and also put them in a more generally-accessible location.
@@ -128,10 +133,19 @@ cp -r docs %{buildroot}%{_docdir}%{name}/
cp -r demo %{buildroot}%{_docdir}%{name}/
%fdupes %{buildroot}%{_docdir}%{name}
+mkdir -p %{buildroot}%{_rpmmacrodir}
+cat >> %{buildroot}%{_rpmmacrodir}/macros.mpi4py <