File graphviz-python_version.patch of Package graphviz

Index: configure.ac
===================================================================
--- configure.ac.orig	2012-06-11 16:26:07.060351640 +0200
+++ configure.ac	2012-06-11 16:27:06.331573194 +0200
@@ -1098,7 +1098,7 @@ else
       if test "x$PYTHON" = "x"; then
         use_python="No (python not available)"
       else
-        PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
+        PYTHON_VERSION=`python -c "import sys; print '%d.%d' % (sys.version_info[[0:2]])"`
         if test "x$PYTHON_VERSION" = "x"; then
           PYTHON=
         else
Index: configure
===================================================================
--- configure.orig	2012-06-11 16:27:00.000000000 +0200
+++ configure	2012-06-11 16:27:26.152644075 +0200
@@ -21117,7 +21117,7 @@ fi
       if test "x$PYTHON" = "x"; then
         use_python="No (python not available)"
       else
-        PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
+        PYTHON_VERSION=`python -c "import sys; print '%d.%d' % (sys.version_info[[0:2]])"`
         if test "x$PYTHON_VERSION" = "x"; then
           PYTHON=
         else
openSUSE Build Service is sponsored by