[pypar] Fix BZ #754262.
Jussi Lehtola
jussilehtola at fedoraproject.org
Thu Nov 17 19:30:31 UTC 2011
commit 0c422006bacbfe30920c46cde24ffb07c6c5f0e7
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Thu Nov 17 21:30:25 2011 +0200
Fix BZ #754262.
pypar.spec | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/pypar.spec b/pypar.spec
index 2b00724..bae6f89 100644
--- a/pypar.spec
+++ b/pypar.spec
@@ -2,12 +2,15 @@
Name: pypar
Version: 2.1.4_94
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Parallel programming with Python
Group: Development/Libraries
License: GPLv2+
URL: http://sourceforge.net/projects/pypar
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
+# Get rid of OpenMPI specific stuff
+Patch0: pypar-mpich.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: numpy
@@ -80,6 +83,18 @@ done
# Clean out unneeded dir
rm -rf pypar_%{version}
+# Prepare mpich2 source
+cd mpich2
+%patch0 -p1
+cd ..
+
+# Prepare OpenMPI source
+libmpiso=$(ls -1 %{_libdir}/openmpi/lib/libmpi.so.? | tail -n 1)
+if [ -n "$libmpiso" -a -f "$libmpiso" ] ; then
+ sed -i "s|libmpi.so.0|$(basename $libmpiso)|g" openmpi/source/pypar.py
+else
+ exit 1
+fi
%build
export CC=mpicc
@@ -142,6 +157,10 @@ rm -rf %{buildroot}
%{python_sitearch}/mpich2/Pypar*.egg-info
%changelog
+* Thu Nov 17 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 2.1.4_94-5
+- Drop OpenMPI specific workaround in pypar.py from MPICH2 version.
+- Patch in correct version of OpenMPI in pypar.py (BZ #754262).
+
* Wed Mar 30 2011 Deji Akingunola <dakingun at gmail.com> - 2.1.4_94-4
- Rebuild for mpich2 soname bump
More information about the scm-commits
mailing list