packages: python-PyOpenGL/python-PyOpenGL.spec - up to final 3.0.0 - DEVEL ...

lisu lisu at pld-linux.org
Wed Jun 3 09:09:12 CEST 2009


Author: lisu                         Date: Wed Jun  3 07:09:12 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to final 3.0.0
- DEVEL merge
- may not work properly yet

---- Files affected:
packages/python-PyOpenGL:
   python-PyOpenGL.spec (1.30 -> 1.31) 

---- Diffs:

================================================================
Index: packages/python-PyOpenGL/python-PyOpenGL.spec
diff -u packages/python-PyOpenGL/python-PyOpenGL.spec:1.30 packages/python-PyOpenGL/python-PyOpenGL.spec:1.31
--- packages/python-PyOpenGL/python-PyOpenGL.spec:1.30	Fri Dec 26 04:16:52 2008
+++ packages/python-PyOpenGL/python-PyOpenGL.spec	Wed Jun  3 09:09:06 2009
@@ -1,22 +1,28 @@
 # $Revision$, $Date$
+#
+# TODO:	- check deps
+#	- applications which use pyopengl can't locate it - try to fix it
+#
 %define		module	PyOpenGL
 Summary:	OpenGL bindings for Python
 Summary(pl.UTF-8):	Dowiązania do OpenGL dla Pythona
 Name:		python-%{module}
-Version:	2.0.2.01
-Release:	4
+Version:	3.0.0
+Release:	0.1
 License:	LGPL
 Group:		Development/Languages/Python
 Source0:	http://dl.sourceforge.net/pyopengl/%{module}-%{version}.tar.gz
-# Source0-md5:	3deac41df71fc98c814330d1eb54ce71
-Patch0:		%{name}-link.patch
+# Source0-md5:	ab0fd5f95b8aaaa6b3902c2350b5d5c0
+Source1:	http://dl.sourceforge.net/pyopengl/%{module}-Demo-%{version}.tar.gz
+# Source1-md5:	b64bfd20fa0a37ea47cfb01cb26c3ee5
 URL:		http://pyopengl.sourceforge.net/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	OpenGL-glut-devel
 BuildRequires:	python-Numeric-devel >= 22.0
-BuildRequires:	python-devel >= 2.2
+BuildRequires:	python-devel >= 1:2.5
 %pyrequires_eq	python-libs
 Requires:	python-Numeric >= 22.0
+BuildRequires:	rpmbuild(macros) >= 1.219
 Obsoletes:	PyOpenGL
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,21 +49,28 @@
 Programy demonstracyjne dla pakietu PyOpenGL.
 
 %prep
-%setup -q -n %{module}-%{version}
-%patch0 -p1
+%setup -q -n %{module}-%{version} -a 1
 
 %build
-CFLAGS="%{rpmcflags}"; export CFLAGS
-python setup.py build
+%{__python} setup.py build
+
+cd %{module}-Demo-%{version}
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install \
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+cd %{module}-Demo-%{version}
+%{__python} setup.py install \
+	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a OpenGL/Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+#cp -a OpenGL/Demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -70,46 +83,13 @@
 
 %files
 %defattr(644,root,root,755)
-%doc README* OpenGL/doc/xhtml/*
-%dir %{py_sitedir}/OpenGL
-%{py_sitedir}/OpenGL/__init__.py[co]
-%{py_sitedir}/OpenGL/quaternion.py[co]
-%{py_sitedir}/OpenGL/trackball.py[co]
-%{py_sitedir}/OpenGL/scripts
-%{py_sitedir}/OpenGL/version
-# GL
-%dir %{py_sitedir}/OpenGL/GL
-%dir %{py_sitedir}/OpenGL/GL/[!G_]*
-%dir %{py_sitedir}/OpenGL/GL/_3DFX
-%{py_sitedir}/OpenGL/GL/*/*.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/GL/*/*.so
-%{py_sitedir}/OpenGL/GL/GL__init__.py[co]
-%{py_sitedir}/OpenGL/GL/__init__.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/GL/_GL__init__.so
-# GLU
-%dir %{py_sitedir}/OpenGL/GLU
-%dir %{py_sitedir}/OpenGL/GLU/[!G]*
-%{py_sitedir}/OpenGL/GLU/*/*.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/GLU/*/*.so
-%{py_sitedir}/OpenGL/GLU/GLU__init__.py[co]
-%{py_sitedir}/OpenGL/GLU/__init__.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/GLU/_GLU__init__.so
-# GLE
-%{py_sitedir}/OpenGL/GLE.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/_GLE.so
-# GLUT
-%{py_sitedir}/OpenGL/GLUT.py[co]
-%attr(755,root,root) %{py_sitedir}/OpenGL/_GLUT.so
-# GLX
-%{py_sitedir}/OpenGL/GLX
-# Tk
-%{py_sitedir}/OpenGL/Tk
-# WGL
-%{py_sitedir}/OpenGL/WGL
+%doc PKG-INFO
+%{py_sitescriptdir}/OpenGL
+%{py_sitescriptdir}/*.egg-info
 
 %files examples
 %defattr(644,root,root,755)
-%{_examplesdir}/%{name}-%{version}
+%{py_sitescriptdir}/PyOpenGL-Demo
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -117,6 +97,28 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.31  2009/06/03 07:09:06  lisu
+- up to final 3.0.0
+- DEVEL merge
+- may not work properly yet
+
+Revision 1.28.2.4  2009/02/16 09:38:21  lisu
+- 3.0.0c1 beta version
+- add PyOpenGL-Demo
+- clean up
+
+Revision 1.28.2.3  2008/12/19 13:11:16  lisu
+- BR: rpmbuild(macros) >= 1.219 (for py_postclean macro)
+
+Revision 1.28.2.2  2008/12/18 11:29:14  lisu
+- more TODO
+
+Revision 1.28.2.1  2008/12/18 10:53:04  lisu
+- up to 3.0.0b8
+- python-devel >= 2.5 for .egg-info
+- cleaning in %%files section
+- optimization
+
 Revision 1.30  2008/12/26 03:16:52  adamg
 - previous commit reverted (mistake)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-PyOpenGL/python-PyOpenGL.spec?r1=1.30&r2=1.31&f=u



More information about the pld-cvs-commit mailing list