# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %global gitver e91b469 Name: python-async Version: 0.6.1 Release: 1.git%{gitver}%{?dist} Summary: A framework to process interdependent tasks in a pool of workers Group: Development/Languages License: BSD URL: https://github.com/gitpython-developers/async # Get source from https://github.com/gitpython-developers/async/tarball/e91b469 Source0: gitpython-developers-async-0.6.1-5-g%{gitver}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: git # Filter the zlib provide %{?filter_setup: %filter_provides_in %{python_sitearch}/async/mod/ %filter_setup } %description Async aims to make writing asyncronous processing easier. It provides a task-graph with interdependent tasks that communicate using blocking channels, allowing to delay actual computations until items are requested. Tasks will automatically be distributed among 0 or more threads for the actual computation. %prep %setup -q -n gitpython-developers-async-%{gitver} %build # Remove CFLAGS=... for noarch packages (unneeded) 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 README.rst AUTHORS LICENSE # For arch-specific packages: sitearch %{python_sitearch}/* %changelog * Sat May 28 2011 Jesse Keating - 0.6.1-1.gite91b469 - Initial build