File numpy-buildfix.patch of Package python-numpy.22422

---
 numpy/distutils/command/autodist.py |    2 +-
 numpy/distutils/command/install.py  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/numpy/distutils/command/autodist.py
+++ b/numpy/distutils/command/autodist.py
@@ -52,7 +52,7 @@ def check_compiler_gcc4(cmd):
     """Return True if the C compiler is GCC 4.x."""
     cmd._check_compiler()
     body = textwrap.dedent("""
-        int
+        void
         main()
         {
         #if (! defined __GNUC__) || (__GNUC__ < 4)
--- a/numpy/distutils/command/install.py
+++ b/numpy/distutils/command/install.py
@@ -69,7 +69,7 @@ class install(old_install):
                 need_rewrite = False
                 for l in f:
                     l = l.rstrip()
-                    if ' ' in l:
+                    if ' ' in l and '%dir ' not in l:
                         need_rewrite = True
                         l = '"%s"' % (l)
                     lines.append(l)
openSUSE Build Service is sponsored by