File python3-amqp.spec of Package python3-amqp

#
# spec file for package python3-amqp
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python3-amqp
Version:        1.4.6
Release:        0
Summary:        Low-level AMQP client for Python (fork of amqplib)
License:        LGPL-2.1
Group:          Development/Languages/Python
Url:            http://github.com/celery/py-amqp
Source:         http://pypi.python.org/packages/source/a/amqp/amqp-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
# Documentation requirements:
BuildRequires:  python3-Sphinx
BuildRequires:  python3-sphinxcontrib-issuetracker
# Test requirements:
BuildRequires:  python3-nose
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is a fork of amqplib_ which was originally written by Barry Pederson.
It is maintained by the Celery_ project, and used by kombu as a pure python
alternative when librabbitmq is not available.

This library should be API compatible with librabbitmq.

%prep
%setup -q -n amqp-%{version}

%build
python3 setup.py build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
nosetests

%files
%defattr(-,root,root,-)
%doc Changelog LICENSE README.rst demo build/sphinx/html
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by