%define module kombu Summary: AMQP Messaging Framework for Python Name: python-%{module} Version: 2.1.1 Release: 1 License: BSD-like Group: Development/Languages/Python Source0: http://pypi.python.org/packages/source/k/%{module}/%{module}-%{version}.tar.gz # Source0-md5: 8befd696ca891fd3f12748804bef0bd3 URL: http://pypi.python.org/pypi/kombu BuildRequires: python-distribute BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 Requires: python-amqplib >= 0.6 Requires: python-anyjson >= 0.3.1 Requires: python-modules Requires: python-pyparsing BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The aim of Kombu is to make messaging in Python as easy as possible by providing an idiomatic high-level interface for the AMQP protocol, and also provide proven and tested solutions to common messaging problems. %prep %setup -q -n %{module}-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install \ --skip-build \ --optimize=2 \ --root=$RPM_BUILD_ROOT %py_postclean %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS Changelog FAQ README THANKS TODO %{py_sitescriptdir}/%{module} %if "%{py_ver}" > "2.4" %{py_sitescriptdir}/%{module}-*.egg-info %endif