All pastes #296822 Raw Edit

clueless

public text v1 · immutable
#296822 ·published 2006-12-30 16:38 UTC
rendered paste body
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}%define alpha a5Name:           PyOpenGLVersion:        3.0.0Release:        0.1.%{alpha}%{?dist}Summary:        Cross platform Python binding to OpenGL Group:          Development/LanguagesLicense:        BSDURL:            http://pyopengl.sourceforge.net/Source0:        http://downloads.sourceforge.net/pyopengl/%{name}-%{version}%{alpha}.tar.gz#md5sum 943c4d7d3d1d97cc7592e61d28918fd2BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)BuildArch:      noarchBuildRequires:  python-devel,python-setuptools%descriptionPyOpenGL is the cross platform Python binding to OpenGL and related APIs.  Thebinding is created using the SWIG wrapper generator, and is provided under anextremely liberal BSD-style Open-Source license.%package docSummary:        Documentation for PyOpenGLGroup:          DocumentationRequires:       PyOpenGL = %{version}%description docDocumentation for PyOpenGL.%prep%setup -q -n %{name}-%{version}%{alpha}%{__sed} -e 's/\#!/\#!\/usr\/bin\/env python/' -i OpenGL/Demo/NeHe/lesson{1,2,3,4,5,6,6-multi,13,18}.py%{__sed} '1i\#\!\/usr\/bin\/env python' -i OpenGL/Demo/GLUT/tom/*py%{__sed} '1i\#\!\/usr\/bin\/env python' -i OpenGL/Demo/NeHe/lesson{41,42,45,43/*,44/*,48/*}.pychmod a+x OpenGL/Demo/NeHe/lesson{1,2,3,4,5,6,6-multi,13,18,41,42,45}.pychmod a+x OpenGL/Demo/NeHe/lesson{43,44,48}/*pychmod a+x OpenGL/Demo/GLUT/tom/*pychmod a-x OpenGL/Demo/NeHe/lesson48/PythonLesson48_Readme.txt%build%{__python} setup.py build%installrm -rf $RPM_BUILD_ROOT%{__python} setup.py install -O1 --skip-build --single-version-externally-managed --root $RPM_BUILD_ROOTrm $RPM_BUILD_ROOT%{python_sitelib}/OpenGL/Demo/readme.txtchmod a+x $RPM_BUILD_ROOT%{python_sitelib}/OpenGL/{tests/test_glutinit_0args.py,tests/test_tess1.py,Tk/__init__.py} %cleanrm -rf $RPM_BUILD_ROOT%files%defattr(-,root,root,-)%doc license.txt%{python_sitelib}/*%files doc%defattr(-,root,root,-)%doc documentation/*%changelog* Fri Dec 29 2006 Rafał Psota <rafalzaq@gmail.com> 3.0.0-0.1.a5- initial release