commit 6e0f041e584b727291b5913fecb475c67124ff46
Author: Miro Hrončok <miro(a)hroncok.cz>
Date: Mon Jul 30 20:13:29 2018 +0200
Rename async.py modules to async_.py to avoid clash with async keyword
fs-uae-arcade.spec | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/fs-uae-arcade.spec b/fs-uae-arcade.spec
index 03ecf61..aba326b 100644
--- a/fs-uae-arcade.spec
+++ b/fs-uae-arcade.spec
@@ -36,6 +36,19 @@ FS-UAE Arcade is a fullscreen Amiga game browser for FS-UAE.
%prep
%autosetup -p1
+# In Python 3.7 async is a keyword, and so we can't have a module named async
+#
https://github.com/mcfletch/pyopengl/issues/14
+#
https://github.com/FrodeSolheim/fs-uae-arcade/issues/16
+#
https://src.fedoraproject.org/rpms/python-pyopengl/c/fcae096bceb00a479903...
+mv OpenGL/GL/SGIX/async.py \
+ OpenGL/GL/SGIX/async_.py
+
+mv OpenGL/raw/GL/SGIX/async.py \
+ OpenGL/raw/GL/SGIX/async_.py
+
+sed -i -e 's/from OpenGL.raw.GL.SGIX.async/from OpenGL.raw.GL.SGIX.async_/g' \
+ OpenGL/GL/SGIX/async_.py
+
# Remove bundled lib
rm -rf six