2011-02-14 17:14:53 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-kombu
|
|
|
|
#
|
2014-01-14 10:56:29 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-02-14 17:14:53 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-02-12 22:32:22 +01:00
|
|
|
|
2011-02-14 17:14:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-12 22:32:22 +01:00
|
|
|
|
2011-11-24 12:39:42 +01:00
|
|
|
Name: python-kombu
|
2014-01-22 00:29:45 +01:00
|
|
|
Version: 3.0.10
|
2011-04-21 20:09:41 +02:00
|
|
|
Release: 0
|
2011-02-14 17:14:53 +01:00
|
|
|
Summary: AMQP Messaging Framework for Python
|
2013-02-12 22:32:22 +01:00
|
|
|
License: BSD-3-Clause
|
2011-02-14 17:14:53 +01:00
|
|
|
Group: Development/Languages/Python
|
2013-02-12 22:32:22 +01:00
|
|
|
Url: http://github.com/ask/kombu/
|
2012-07-11 14:58:41 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/k/kombu/kombu-%{version}.tar.gz
|
2013-04-30 11:59:35 +02:00
|
|
|
BuildRequires: python-devel
|
2013-08-09 10:24:25 +02:00
|
|
|
BuildRequires: python-setuptools
|
2013-04-30 11:59:35 +02:00
|
|
|
# Test requirements:
|
2013-02-12 22:32:22 +01:00
|
|
|
BuildRequires: python-PyYAML
|
2013-09-16 16:33:43 +02:00
|
|
|
BuildRequires: python-amqp >= 1.0.13
|
2012-03-10 18:07:06 +01:00
|
|
|
BuildRequires: python-amqplib
|
|
|
|
BuildRequires: python-anyjson
|
2013-04-30 11:59:35 +02:00
|
|
|
BuildRequires: python-boto
|
2012-03-10 18:07:06 +01:00
|
|
|
BuildRequires: python-mock
|
2013-04-30 11:59:35 +02:00
|
|
|
#NOTE(saschpe): Disable optional test for now util issues are resolved
|
|
|
|
#BuildRequires: python-msgpack-python
|
2012-03-10 18:07:06 +01:00
|
|
|
BuildRequires: python-nose-cover3
|
2013-01-15 14:07:35 +01:00
|
|
|
BuildRequires: python-unittest2 >= 0.5.0
|
2012-12-06 13:52:36 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2013-04-30 11:59:35 +02:00
|
|
|
BuildRequires: python-importlib
|
|
|
|
BuildRequires: python-ordereddict
|
2012-12-06 13:52:36 +01:00
|
|
|
Requires: python-importlib
|
|
|
|
Requires: python-ordereddict
|
2012-12-06 14:33:46 +01:00
|
|
|
%endif
|
2014-01-22 00:29:45 +01:00
|
|
|
Requires: python-amqp >= 1.4.0
|
2013-04-30 11:59:35 +02:00
|
|
|
Requires: python-anyjson >= 0.3.3
|
2013-04-13 12:32:23 +02:00
|
|
|
Recommends: couchdb
|
|
|
|
Recommends: mongodb
|
|
|
|
Recommends: rabbitmq-server
|
2011-02-14 17:14:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-07-11 14:58:41 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-02-14 17:14:53 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
An AMQP messaging framework for Python.
|
|
|
|
|
|
|
|
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
|
|
|
|
for message orientation, queuing, routing, reliability and security.
|
|
|
|
|
|
|
|
One of the most popular implementations of AMQP is RabbitMQ.
|
|
|
|
|
|
|
|
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
|
2011-11-24 12:39:42 +01:00
|
|
|
%setup -q -n kombu-%{version}
|
2013-01-11 19:13:07 +01:00
|
|
|
# For rpmlint warning: remove shebang from python library:
|
|
|
|
sed -i '/^#!/d' ./kombu/tests/test_serialization.py
|
2013-01-15 14:07:35 +01:00
|
|
|
# NOTE(saschpe): We have a newer python-amqp, but this shouldn't be an issue:
|
2013-12-09 14:43:34 +01:00
|
|
|
sed -i -e "s|amqp>=1.3.3,<2.0|amqp>=1.3.3|" requirements/default.txt kombu.egg-info/requires.txt
|
2013-04-30 11:59:35 +02:00
|
|
|
# NOTE(saschpe): Testsuite requires mkgpack-python < 0.2.0 because it dropped
|
|
|
|
# Python-2.5 support. This makes no sense for us, thus:
|
|
|
|
#sed -i "s/msgpack-python.*/msgpack-python/" requirements/test.txt
|
2011-02-14 17:14:53 +01:00
|
|
|
|
|
|
|
%build
|
2012-01-17 02:18:47 +01:00
|
|
|
python setup.py build
|
2011-02-14 17:14:53 +01:00
|
|
|
|
|
|
|
%install
|
2011-11-24 12:39:42 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2011-02-14 17:14:53 +01:00
|
|
|
|
2012-07-11 14:58:41 +02:00
|
|
|
%check
|
2013-04-30 11:59:35 +02:00
|
|
|
python setup.py test
|
2012-03-10 18:07:06 +01:00
|
|
|
|
2011-02-14 17:14:53 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-12-01 22:22:48 +01:00
|
|
|
%doc AUTHORS Changelog FAQ README.rst THANKS TODO LICENSE
|
2011-09-06 00:56:33 +02:00
|
|
|
%{python_sitelib}/*
|
2011-04-15 17:29:31 +02:00
|
|
|
|
2011-02-14 17:14:53 +01:00
|
|
|
%changelog
|