%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define srcname psyco Name: python-%{srcname} Version: 1.5.1 Release: 10%{?dist}.eye Summary: The Python Specialing Compiler Group: Development/Libraries License: MIT URL: http://psyco.sourceforge.net/ Source0: http://download.sourceforge.net/psyco/%{srcname}-%{version}-src.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) ExclusiveArch: i386 BuildRequires: python-devel %description Psyco is a kind of just-in-time (JIT) compiler, a little bit like what exists for other languages, that emit machine code on the fly instead of interpreting your Python program step by step. The difference with the traditional approach to JIT compilers is that Psyco writes several version of the same blocks (a block is a bit of a function), which are optimized by being specialized to some kinds of variables (a "kind" can mean a type, but it is more general). The result is that your unmodified Python programs run faster. %prep %setup -q -n %{srcname}-%{version} %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING.txt README.txt doc/ %{python_sitearch}/psyco/*.so %{python_sitearch}/psyco/*.py %{python_sitearch}/psyco/*.pyc %dir %{python_sitearch}/psyco %{python_sitearch}/psyco/*.pyo %if 0%{?fedora} >= 9 %{python_sitearch}/%{srcname}-%{version}-py2.5.egg-info %endif %changelog * Fri Mar 07 2008 Jesse Keating - 1.5.1-10 - Handle egg info files * Tue Feb 19 2008 Fedora Release Engineering - 1.5.1-7 - Autorebuild for GCC 4.3 * Tue Oct 23 2007 Ignacio Vazquez-Abrams 1.5.1-6 - Remove explicit python-abi requirement * Sun Feb 25 2007 Kevin Fenzi - 1.5.1-5 - Rebuild for development/new python * Sat Sep 16 2006 Shahms E. King 1.5.1-4 - Rebuild for FC6 * Fri Aug 11 2006 Shahms E. King 1.5.1-3 - Include, don't ghost .pyo files per new guidelines * Fri May 05 2006 Shahms E. King 1.5.1-2 - Fix source line and rebuild * Fri May 05 2006 Shahms E. King 1.5.1-1 - Update to new upstream * Mon Feb 13 2006 Shahms E. King 1.5-4 - Rebuild for FC5 * Wed Jan 11 2006 Shahms E. King 1.5-3 - Add a description and rebuild. Ooops. * Wed Nov 02 2005 Shahms E. King 1.5-2 - Don't package INSTALL.txt which no longer exists * Tue Nov 01 2005 Shahms E. King 1.5-1 - Update to final upstream release 1.5 - Use srcname and version in URL * Mon Jun 27 2005 Shahms E. King 1.4-5 - - Add dist tag * Sat Jun 25 2005 Colin Charles 1.4-4 - Fix download URL * Fri Apr 7 2005 Michael Schwendt - rebuilt * Mon Mar 21 2005 Shahms E. King 1.4-2 - - Added ExclusiveArch: i386 - Remove unnecessary python_sitelib define * Tue Mar 01 2005 Shahms E. King 1.4-1 - Repackage for Fedora Extras