%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-multiprocessing Version: 2.6.2.1 Release: 3%{?dist} Summary: Backport of the multiprocessing package to Python 2.4 and 2.5 Group: Development/Languages License: BSD URL: http://code.google.com/p/python-multiprocessing Source0: http://pypi.python.org/packages/source/m/multiprocessing/multiprocessing-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: python-setuptools %description The multiprocessing package itself is a renamed and updated version of R Oudkerk's pyprocessing package. This standalone variant is intended to be compatible with Python 2.4 and 2.5, and will draw it's fixes/improvements from python-trunk. %prep %setup -q -n multiprocessing-%{version} sed -i -e 's:#!/usr/bin/env:#!/usr/bin/python:' Lib/multiprocessing/tests.py %build CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/multiprocessing/examples chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/multiprocessing/tests.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt Doc %{python_sitearch}/* %changelog * Wed Aug 08 2012 Andrew Colin Kissa - 2.6.2.1-3 - Change versioning to reflect upstream as requested by reviewer * Sat Aug 04 2012 Andrew Colin Kissa - 2.6.2-2 - Changes requested by reviewer * Tue Jun 21 2011 Andrew Colin Kissa 2.6.2-1 - Initial package