%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: pilas Version: 0.80 Release: 3%{?dist} Summary: A simple to use video game framework Group: Development/Libraries License: GPLv3 URL: http://pypi.python.org/pypi/pilas Source0: http://pypi.python.org/packages/source/p/pilas/pilas-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel Requires: pygame,PyQt4,pybox2d %description Stacks is a game engine to make it easy. %prep %setup -q find . -iname "*.Ds_Store" | xargs rm -f rm -rf tests %build %{__python} setup.py build %install rm -rf %{__python} setup.py install -O1 --skip-build --root %{buildroot} chmod a+x %{buildroot}%{python_sitelib}/pilas/escena/__init__.py chmod a+x %{buildroot}%{python_sitelib}/lanas/setup.py %clean rm -rf %files %doc LICENSE %{python_sitelib}/* %{_bindir}/pilas %changelog * Sun Sep 15 2013 Andres Pascasio - 0.80-3 - Remove bundled egg and remove BuildRoot tag * Sun Sep 01 2013 Andres Pascasio - 0.80-2 - Exec permission * Thu Jul 4 2013 Andres Pascasio - 0.80-1 - First Fedora spec compliant version