[pypar/el6] Update to 2.1.5_108.

Susi Lehtola jussilehtola at fedoraproject.org
Mon Mar 31 13:12:10 UTC 2014


commit 96f120cc589786a5559f9c8ccb17dac6d95cef1f
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date:   Mon Mar 31 16:12:17 2014 +0300

    Update to 2.1.5_108.

 pypar.spec |   23 ++++++++++++++++++-----
 sources    |    2 +-
 2 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/pypar.spec b/pypar.spec
index 0f2c079..c4fe414 100644
--- a/pypar.spec
+++ b/pypar.spec
@@ -1,13 +1,14 @@
 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:		pypar
-Version:	2.1.4_94
-Release:	3%{?dist}
+Version:	2.1.5_108
+Release:	1%{?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
+URL:		http://code.google.com/p/pypar/
+Source0:	http://pypar.googlecode.com/files/pypar-%{version}.tgz
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	numpy
@@ -47,6 +48,7 @@ standard MPI.
 
 This package contains pypar compiled against Open MPI.
 
+
 %prep
 # Setup buildroot but don't extract anything yet
 %setup -q -c -T
@@ -55,13 +57,20 @@ This package contains pypar compiled against Open MPI.
 tar zxf %{SOURCE0}
 
 # Make separate dirs for all MPI variants
-for mpi in openmpi ; do 
+for mpi in openmpi; do 
  cp -r pypar_%{version} $mpi
 done 
 
 # Clean out unneeded dir
 rm -rf pypar_%{version}
 
+# 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
@@ -103,6 +112,10 @@ rm -rf %{buildroot}
 %{python_sitearch}/openmpi/Pypar*.egg-info
 
 %changelog
+* Sat Feb 02 2013 Susi Lehtola <jussilehtola at fedoraproject.org> - 2.1.5_108-1
+- Update to 2.1.5_108.
+- Patch in correct version of OpenMPI in pypar.py (BZ #1082584).
+
 * Sat Feb 02 2013 Susi Lehtola <jussilehtola at fedoraproject.org> - 2.1.4_94-3
 - Rebuild against newer OpenMPI in RHEL6.
 
diff --git a/sources b/sources
index 4f60da0..c4d1ca8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5ee3e2170fa3927a292eb8a067165ebc  pypar-2.1.4_94.tgz
+7a1f28327d2a3b679f9455c843d850b8  pypar-2.1.5_108.tgz


More information about the scm-commits mailing list