[paraview] Add patch to support python 2.7

Orion Poplawski orion at fedoraproject.org
Fri Jul 30 18:00:03 UTC 2010


commit 6f6d9c70f7befd38c7cd9bb9964ecc92a36d4e18
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Fri Jul 30 10:10:22 2010 -0600

    Add patch to support python 2.7

 paraview-3.8.0-py27.patch |   11 +++++++++++
 paraview.spec             |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/paraview-3.8.0-py27.patch b/paraview-3.8.0-py27.patch
new file mode 100644
index 0000000..87d2261
--- /dev/null
+++ b/paraview-3.8.0-py27.patch
@@ -0,0 +1,11 @@
+--- ParaView-3.8.0/VTK/CMake/FindPythonLibs.cmake.py27	2010-05-27 11:06:53.000000000 -0600
++++ ParaView-3.8.0/VTK/CMake/FindPythonLibs.cmake	2010-07-30 10:02:42.033258581 -0600
+@@ -27,7 +27,7 @@
+ # Search for the python framework on Apple.
+ CMAKE_FIND_FRAMEWORKS(Python)
+ 
+-FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
++FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
+   STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
+   IF(WIN32)
+     FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
diff --git a/paraview.spec b/paraview.spec
index f3729ab..25099fd 100644
--- a/paraview.spec
+++ b/paraview.spec
@@ -9,7 +9,7 @@
 
 Name:           paraview
 Version:        %{pv_majmin}.%{pv_patch}
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Parallel visualization application
 
 Group:          Applications/Engineering
@@ -25,6 +25,8 @@ Patch0:         paraview-3.6.2-libs.patch
 Patch1:         paraview-3.8.0-include.patch
 #Upstream patch to fix install paths
 Patch2:         paraview-3.8.0-installpath.patch
+#Support Python 2.7
+Patch3:         paraview-3.8.0-py27.patch
 #Installs PointSpriteDemo into incorrect location, remove install for now
 #Reported upstream: http://public.kitware.com/mantis/view.php?id=9292
 Patch5:         paraview-3.8.0-demo.patch
@@ -210,6 +212,7 @@ BuildArch:      noarch
 %patch0 -p1 -b .libs
 %patch1 -p1 -b .include
 %patch2 -p1 -b .installpath
+%patch3 -p1 -b .py27
 %patch5 -p1 -b .demo
 %patch7 -p1 -b .hdf5
 %patch8 -p1 -b .hdf5-1.8
@@ -446,6 +449,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Fri Jul 30 2010 Orion Poplawski <orion at cora.nwra.com> - 3.8.0-4
+- Add patch to support python 2.7
+
 * Tue Jul 27 2010 David Malcolm <dmalcolm at redhat.com> - 3.8.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 


More information about the scm-commits mailing list