# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-retask Version: 0.2 Release: 1%{?dist} Summary: Python module to create and manage distributed task queues Group: Development/Languages License: MIT URL: http://retask.readthedocs.org/en/latest/index.html Source0: https://github.com/downloads/kushaldas/retask/retask-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: python-redis %description Python module to create and manage distributed task queues. %prep %setup -q -n retask-%{version} %build %{__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 LICENSE # For noarch packages: sitelib %{python_sitelib}/retask* %changelog * Fri Jul 27 2012 Kushal Das 0.2-1 - Initial release