%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pygext Version: 0.9.5 Release: 1%{?dist}.eye Summary: Pygame Extended License: BSD Group: System Environment/Libraries URL: http://opioid-interactive.com/~shang/projects/pygext/ Source0: http://opioid-interactive.com/~shang/projects/pygext/%{name}-%{version}.tar.bz2 #Patch0: PyOpenGL-3.0.0b1-shebang.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel python-setuptools-devel BuildArch: noarch #Requires: python-numeric PyOpenGL # in some other repositories this is named python-opengl Provides: pygext = %{version}-%{release} Obsoletes: pygext < %{version}-%{release} %description Pygame Extended (or pygext) is my "everything and a kitchen sink" collection of libraries for Pygame development. The main part of pygext, is the OpenGL accelerated 2D framework (pygext.gl) for rendering and controlling sprites. Pygext also contains additions to pygame.draw (e.g. rectangles with round corners) and an opengl accelerated 2D vector graphics library (experimental). Main Features * Use layers to control rendering order (unlimited layers per scene) * Sprites you can rotate, scale and alpha blend * Sprites can be attached to each other for synchronized movement * Framerate independent animation and movement * Control sprites via "Actions" instead of manually updating coordinates every frame * Fully featured particle effects * Collision detection * Scenes and states for structuring game logic #%package doc #Summary: Documentation files for %{name} #Group: Development/Languages #Requires: %{name} = %{version}-%{release} # #%description doc #Documentation files for %{name}. %prep %setup -q -n %{name}-%{version} #%patch0 -p1 -z .shebang %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" \ --prefix="%{_prefix}" #python setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" \ # --prefix="%{_prefix}" --single-version-externally-managed ## don't package the tests files #rm -r $RPM_BUILD_ROOT%{python_sitelib}/OpenGL/tests ## for %%doc #rm documentation/pydoc/builddocs.py documentation/buildepydoc.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) #%doc license.txt %{python_sitelib}/*pygext* #%exclude %{python_sitelib}/OpenGL/Tk /usr/bin/vecedit.py #%files doc #%defattr(-,root,root,-) #%doc documentation/* %changelog * Fri Jun 27 2008 Steve Castellotti 0.9.5-1 - initial package creation