forked from pool/python-amqpstorm
- Make sure we run unittests - State out all the requirements from setup.py and friends - Drop not really required devel dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqpstorm?expand=0&rev=3
71 lines
2.3 KiB
RPMSpec
71 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-amqpstorm
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without test
|
|
Name: python-amqpstorm
|
|
Version: 2.4.1
|
|
Release: 0
|
|
Summary: Thread-safe Python RabbitMQ Client & Management library
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/eandersson/amqpstorm
|
|
Source: https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz
|
|
Source1: https://raw.githubusercontent.com/eandersson/amqpstorm/master/LICENSE
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module nose-timer}
|
|
BuildRequires: %{python_module nose}
|
|
BuildRequires: %{python_module pamqp >= 1.6.1}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pamqp >= 1.6.1
|
|
Requires: python-requests
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Thread-safe Python RabbitMQ Client & Management library.
|
|
|
|
Supports Python 2.7 and Python 3.3+.
|
|
Tested against CPython, PyPy and Pyston.
|
|
When using a SSL connection, TLSv1 or higher is required.
|
|
|
|
%prep
|
|
%setup -q -n AMQPStorm-%{version}
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/examples
|
|
|
|
%check
|
|
%python_expand nosetests-%{$python_bin_suffix} amqpstorm/tests/unit
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|