%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-olpcgames Version: 1.6 Release: 2 Summary: Utilities for developing games on the OLPC platform Group: Development/Languages License: BSD URL: http://wiki.laptop.org/go/OLPCGames Source0: http://dev.laptop.org/~mcfletch/OLPCGames/OLPCGames-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: pygame BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description This python package contains various resources and utility classes for making games on the OLPC system. Specifically it enables using PyGame in the Sugar environment. %prep %setup -q -n OLPCGames-%{version} %build export DISPLAY=:0.0 %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT export DISPLAY=:0.0 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT # remove shebang to calm rpmlint down sed -i -e 1d $RPM_BUILD_ROOT%{python_sitelib}/olpcgames/buildmanifest.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc NEWS olpcgames/COPYING %{python_sitelib}/* %changelog * Thu Dec 14 2009 Sebastian Dziallas - 1.6-2 - fix issues according to review * Sun Dec 13 2009 Sebastian Dziallas - 1.6-1 - update to version 1.6 - spec file cleanups * Wed Aug 01 2007 Noah Kantrowitz - 1.0-0.0.20070801git4ab726 - Initial version of this spec.