File gamera-gcc5.patch of Package python-gamera

diff -up gamera-3.4.2/setup.py.orig gamera-3.4.2/setup.py
--- gamera-3.4.2/setup.py.orig	2014-05-28 16:06:33.000000000 +0200
+++ gamera-3.4.2/setup.py	2015-09-16 19:23:30.040219521 +0200
@@ -80,7 +80,7 @@ if has_openmp is None:
         p = os.popen("gcc -dumpversion","r")
         gccv = p.readline().strip().split(".")
         p.close()
-        if int(gccv[0]) >= 4 and int(gccv[1]) >= 3:
+        if int(gccv[0]) > 4 or (int(gccv[0]) == 4 and int(gccv[1]) >= 3):
             has_openmp = True
 f = open("gamera/__compiletime_config__.py", "w")
 f.write("# automatically generated configuration at compile time\n")
openSUSE Build Service is sponsored by