diff --git a/PyOpenGL-3.0.1.tar.bz2 b/PyOpenGL-3.0.1.tar.bz2 deleted file mode 100644 index 29a48ec..0000000 --- a/PyOpenGL-3.0.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c64e2de6469b39fe95e3ee141e9f6ed8342a2463cdccfb1c984fb58d5427297 -size 538573 diff --git a/PyOpenGL-3.0.2.tar.gz b/PyOpenGL-3.0.2.tar.gz new file mode 100644 index 0000000..422366b --- /dev/null +++ b/PyOpenGL-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ef93bbea2c193898341f574e281c3ca0dfe87c53aa25fbec4b03581f6d1ba03 +size 891943 diff --git a/python-opengl.changes b/python-opengl.changes index a671721..ef399c1 100644 --- a/python-opengl.changes +++ b/python-opengl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Apr 19 12:50:33 UTC 2013 - toddrme2178@gmail.com + +- Update to 3.0.2 + * no changelog +- Add python 3 version + ------------------------------------------------------------------- Tue Sep 14 10:50:25 UTC 2010 - coolo@novell.com diff --git a/python-opengl.spec b/python-opengl.spec index 20cb8fc..2fc1065 100644 --- a/python-opengl.spec +++ b/python-opengl.spec @@ -1,7 +1,7 @@ # # spec file for package python-opengl # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,60 +17,59 @@ Name: python-opengl +%define tarname PyOpenGL +Version: 3.0.2 +Release: 0 +Summary: OpenGL bindings for Python +License: BSD-3-Clause +Group: Development/Libraries/Python +Url: http://pyopengl.sourceforge.net +Source0: https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz +BuildRequires: fdupes BuildRequires: freeglut-devel BuildRequires: libdrm-devel BuildRequires: python-devel BuildRequires: python-imaging +BuildRequires: python-numpy BuildRequires: swig BuildRequires: tk-devel BuildRequires: xorg-x11 -%if %suse_version > 1110 +Requires: python-numpy +Requires: tk >= 8.1 +Recommends: python-opengl-accelerate +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{py_requires} +# this is only noarch as long as the accelerator module is missing +%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1} BuildRequires: libgle-devel -BuildRequires: python-numpy +BuildArch: noarch %else BuildRequires: gle -BuildRequires: python-numeric -%endif -%define tarname PyOpenGL -Summary: OpenGL bindings for Python -License: BSD-3-Clause -Group: Development/Libraries/Python -Version: 3.0.1 -Release: 0 -Source0: %{tarname}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Prefix: %{_prefix} -%{py_requires} -Requires: tk >= 8.1 -Url: http://pyopengl.sourceforge.net -# this is only noarch as long as the accelerator module is missing -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} -BuildArch: noarch %endif %description OpenGL bindings for Python including support for GL extensions, GLU, WGL, GLUT, GLE, and Tk. - - %prep %setup -q -n %{tarname}-%{version} -#sed -i '/^library_dirs/ s@/lib@/%{_lib}@g' config/linux.cfg -find . -name .cvsignore -type f -print0 | xargs -0 rm -f -find . -name CVS -type d -print0 | xargs -0 rm -rf %build -CFLAGS="$RPM_OPT_FLAGS -DGLX_GLXEXT_LEGACY" python setup.py build +CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python setup.py build %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/_buffers.py +chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/buffers.py +%fdupes %{buildroot}%{python_sitelib}/OpenGL/ %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -%files -f INSTALLED_FILES +%files %defattr(-,root,root) -%doc ChangeLog.txt license.txt +%doc license.txt +%{python_sitelib}/OpenGL/ +%{python_sitelib}/PyOpenGL-%{version}-py*.egg-info %changelog diff --git a/python3-opengl.changes b/python3-opengl.changes new file mode 100644 index 0000000..ce07427 --- /dev/null +++ b/python3-opengl.changes @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Fri Apr 19 12:50:33 UTC 2013 - toddrme2178@gmail.com + +- Update to 3.0.2 + * no changelog +- Add python 3 version + diff --git a/python3-opengl.spec b/python3-opengl.spec new file mode 100644 index 0000000..c598fa8 --- /dev/null +++ b/python3-opengl.spec @@ -0,0 +1,77 @@ +# +# spec file for package python3-opengl +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-opengl +%define tarname PyOpenGL +Version: 3.0.2 +Release: 0 +Summary: OpenGL bindings for Python +License: BSD-3-Clause +Group: Development/Libraries/Python +Url: http://pyopengl.sourceforge.net +Source0: https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: freeglut-devel +BuildRequires: libdrm-devel +BuildRequires: python3-2to3 +BuildRequires: python3-devel +# Does not support python3 yet +#BuildRequires: python3-imaging +BuildRequires: python3-numpy +BuildRequires: swig +BuildRequires: tk-devel +BuildRequires: xorg-x11 +Requires: python3-numpy +Requires: tk >= 8.1 +Recommends: python3-opengl-accelerate +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{py_requires} +# this is only noarch as long as the accelerator module is missing +%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1} +BuildRequires: libgle-devel +BuildArch: noarch +%else +BuildRequires: gle +%endif + +%description +OpenGL bindings for Python including support for GL extensions, GLU, +WGL, GLUT, GLE, and Tk. + +%prep +%setup -q -n %{tarname}-%{version} + +%build +CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +chmod a+x %{buildroot}%{python3_sitelib}/OpenGL/arrays/_buffers.py +chmod a+x %{buildroot}%{python3_sitelib}/OpenGL/arrays/buffers.py +%fdupes %{buildroot}%{python3_sitelib}/OpenGL/ + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc license.txt +%{python3_sitelib}/OpenGL/ +%{python3_sitelib}/PyOpenGL-%{version}-py*.egg-info + +%changelog