Author: lisu                         Date: Mon Feb 16 09:38:27 2009 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- 3.0.0c1 beta version
- add PyOpenGL-Demo
- clean up

---- Files affected:
SPECS:
   python-PyOpenGL.spec (1.28.2.3 -> 1.28.2.4) 

---- Diffs:

================================================================
Index: SPECS/python-PyOpenGL.spec
diff -u SPECS/python-PyOpenGL.spec:1.28.2.3 SPECS/python-PyOpenGL.spec:1.28.2.4
--- SPECS/python-PyOpenGL.spec:1.28.2.3 Fri Dec 19 14:11:16 2008
+++ SPECS/python-PyOpenGL.spec  Mon Feb 16 10:38:21 2009
@@ -1,11 +1,11 @@
 # $Revision$, $Date$
 #
-# TODO:        - download and include PyOpenGL-Demo (it's now in separate 
package)
+# TODO:        - package demos into examplesdir?
 #      - check deps
 #      - applications which use pyopengl can't locate it - try to fix it
 #
 %define                module  PyOpenGL
-%define                _beta   b8
+%define                _beta   c1
 Summary:       OpenGL bindings for Python
 Summary(pl.UTF-8):     DowiÄ…zania do OpenGL dla Pythona
 Name:          python-%{module}
@@ -14,7 +14,9 @@
 License:       LGPL
 Group:         Development/Languages/Python
 Source0:       
http://dl.sourceforge.net/pyopengl/%{module}-%{version}%{_beta}.tar.gz
-# Source0-md5: 1d9afbf0a403d916997937ef0dde2520
+# Source0-md5: 51a33cea33f3e8eb2eaf12f574dcb1af
+Source1:       
http://dl.sourceforge.net/pyopengl/%{module}-Demo-%{version}%{_beta}.tar.gz
+# Source1-md5: 672c53e5dcfad16f25bf04ebe6000e0c
 URL:           http://pyopengl.sourceforge.net/
 BuildRequires: OpenGL-GLU-devel
 BuildRequires: OpenGL-glut-devel
@@ -49,11 +51,14 @@
 Programy demonstracyjne dla pakietu PyOpenGL.
 
 %prep
-%setup -q -n %{module}-%{version}%{_beta}
+%setup -q -n %{module}-%{version}%{_beta} -a 1
 
 %build
 %{__python} setup.py build
 
+cd %{module}-Demo-%{version}%{_beta}
+%{__python} setup.py build
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -61,6 +66,11 @@
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
+cd %{module}-Demo-%{version}%{_beta}
+%{__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}
 
@@ -70,20 +80,18 @@
 
 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/*
+%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
@@ -91,6 +99,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+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)
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to