Notification time stamped 2018-06-30 23:01:41 UTC
From fcae096bceb00a47990317f437197e41ff023e95 Mon Sep 17 00:00:00 2001
From: Jonathan G. Underwood <jonathan.underwood(a)gmail.com>
Date: Jun 30 2018 23:01:31 +0000
Subject: Rename async.py modules to async_.py to avoid clash with async keyword
---
diff --git a/python-pyopengl.spec b/python-pyopengl.spec
index 2349265..c3d247c 100644
--- a/python-pyopengl.spec
+++ b/python-pyopengl.spec
@@ -89,6 +89,8 @@ Requires: python3-tkinter
%prep
%setup -q -c -n %{srcname}-%{version} -T -a0 -a1
+# Add missing .pxd files
+#
https://github.com/mcfletch/pyopengl/issues/12
mkdir %{srcname}-accelerate-%{version}/OpenGL_accelerate
cp %{SOURCE2} %{SOURCE3} %{srcname}-accelerate-%{version}/OpenGL_accelerate
@@ -96,6 +98,17 @@ cat > %{srcname}-accelerate-%{version}/OpenGL_accelerate/__init__.py
<<EOF
__version__ = %{version}
EOF
+# 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
+mv %{srcname}-%{version}/OpenGL/GL/SGIX/async.py \
+ %{srcname}-%{version}/OpenGL/GL/SGIX/async_.py
+
+mv %{srcname}-%{version}/OpenGL/raw/GL/SGIX/async.py \
+ %{srcname}-%{version}/OpenGL/raw/GL/SGIX/async_.py
+
+sed -i -e 's/from OpenGL.raw.GL.SGIX.async/from OpenGL.raw.GL.SGIX.async_/g' \
+ %{srcname}-%{version}/OpenGL/GL/SGIX/async_.py
+
%build
# Delete all Cython generated .c files to force a rebuild
pushd %{srcname}-accelerate-%{version}/src
@@ -168,6 +181,7 @@ popd
- Force Cython rebuild of c files
- Add missing .pxd files from upstream github repository
- Update URL to point to github
+- Rename async.py modules to async_.py to avoid clash with async keyword
* Tue Jun 19 2018 Miro Hrončok <mhroncok(a)redhat.com> - 3.1.1a1-11
- Rebuilt for Python 3.7
https://src.fedoraproject.org/rpms/python-pyopengl/c/fcae096bceb00a479903...