SPECS (DEVEL): python-PyOpenGL.spec - up to 3.0.0b8 - python-devel >= 2.5 f...

lisu lisu at pld-linux.org
Thu Dec 18 11:53:10 CET 2008


Author: lisu                         Date: Thu Dec 18 10:53:10 2008 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- up to 3.0.0b8
- python-devel >= 2.5 for .egg-info
- cleaning in %%files section
- optimization

---- Files affected:
SPECS:
   python-PyOpenGL.spec (1.28 -> 1.28.2.1) 

---- Diffs:

================================================================
Index: SPECS/python-PyOpenGL.spec
diff -u SPECS/python-PyOpenGL.spec:1.28 SPECS/python-PyOpenGL.spec:1.28.2.1
--- SPECS/python-PyOpenGL.spec:1.28	Tue Oct 14 08:42:42 2008
+++ SPECS/python-PyOpenGL.spec	Thu Dec 18 11:53:04 2008
@@ -1,20 +1,24 @@
 # $Revision$, $Date$
+#
+# TODO:	- download and include PyOpenGL-Demo (it's now in separate package)
+#	- check deps
+#
 %define		module	PyOpenGL
+%define		_beta	b8
 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.%{_beta}.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:	http://dl.sourceforge.net/pyopengl/%{module}-%{version}%{_beta}.tar.gz
+# Source0-md5:	1d9afbf0a403d916997937ef0dde2520
 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
 Obsoletes:	PyOpenGL
@@ -43,21 +47,20 @@
 Programy demonstracyjne dla pakietu PyOpenGL.
 
 %prep
-%setup -q -n %{module}-%{version}
-%patch0 -p1
+%setup -q -n %{module}-%{version}%{_beta}
 
 %build
-CFLAGS="%{rpmcflags}"; export CFLAGS
-python setup.py build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install \
+%{__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}
@@ -65,51 +68,20 @@
 
 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/OpenGL/{Demo,doc}
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %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 README* OpenGL/doc/xhtml/*
+%{py_sitescriptdir}/OpenGL
+%{py_sitescriptdir}/*.egg-info
 
 %files examples
 %defattr(644,root,root,755)
-%{_examplesdir}/%{name}-%{version}
+#%%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -117,6 +89,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+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.28  2008/10/14 06:42:42  arekm
 - release 4
 
================================================================

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



More information about the pld-cvs-commit mailing list