[PyOpenGL] Second try of enabling python3 support

Christopher Meng cicku at fedoraproject.org
Mon May 5 12:40:30 UTC 2014


commit 17859411857716b07b155ca7b64fcbc90170b36b
Author: Christopher Meng <i at cicku.me>
Date:   Mon May 5 20:40:28 2014 +0800

    Second try of enabling python3 support

 PyOpenGL.spec |   33 +++++++++++++++++++--------------
 1 files changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/PyOpenGL.spec b/PyOpenGL.spec
index 72772ce..acf15be 100644
--- a/PyOpenGL.spec
+++ b/PyOpenGL.spec
@@ -4,14 +4,6 @@ Release:        1%{?dist}
 Summary:        Python 2.x bindings for OpenGL
 License:        BSD
 URL:            http://pyopengl.sourceforge.net/
-# It was reported in https://bugzilla.redhat.com/show_bug.cgi?id=760366
-# that there are some binary blobs in the upstream archive. 
-# I'm removing them prior to upload, so the check sums of the uploaded
-# and upstream packages will not match. However I'm not changig the 
-# source URL since I hope it will be fixed in a next release.
-# Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3451797&group_id=5988&atid=105988
-#
-# fcami - NB: The directory to remove is OpenGL/DLLS/
 Source0:        https://pypi.python.org/packages/source/P/%{name}/%{name}-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  python2-devel 
@@ -45,12 +37,20 @@ PyOpenGL is interoperable with a large number of external GUI libraries
 for Python including (Tkinter, wxPython, FxPy, PyGame, and Qt). 
 
 %package        Tk
-Summary:        %{name} OpenGL Tk widget
+Summary:        %{name} Python 2.x Tk widget
 Requires:       %{name} = %{version}-%{release}
 Requires:       tkinter
 
 %description    Tk
-%{name} Togl (Tk OpenGL widget) 1.6 support.
+%{name} Togl (Tk OpenGL widget) 1.6 support for Python 2.x.
+
+%package -n     python3-%{name}-Tk
+Summary:        %{name} Python 3.x Tk widget
+Requires:       python3-%{name} = %{version}-%{release}
+Requires:       python3-tkinter
+
+%description -n python3-%{name}-Tk
+%{name} Togl (Tk OpenGL widget) 1.6 support for Python 3.x.
 
 %prep
 %setup -q
@@ -78,17 +78,22 @@ popd
 
 %files
 %doc license.txt
-#%{python2_sitelib}/*OpenGL*
+%{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info
+%{python2_sitelib}/OpenGL/
 %exclude %{python2_sitelib}/OpenGL/Tk
 
 %files -n python3-%{name}
-%doc COPYRIGHT README.md
-#%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
-#%{python3_sitelib}/
+%doc license.txt
+%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/OpenGL/
+%exclude %{python3_sitelib}/OpenGL/Tk
 
 %files Tk
 %{python2_sitelib}/OpenGL/Tk
 
+%files -n python3-%{name}-Tk
+%{python3_sitelib}/OpenGL/Tk
+
 %changelog
 * Mon May 05 2014 Christopher Meng <rpm at cicku.me> - 3.1.0b2-1
 - Build python3 interface.


More information about the scm-commits mailing list