14
0
forked from pool/python-amqp
Files
python-amqp/python-amqp.spec
Dirk Mueller c895ca8657 - update to 5.0.6:
- Change the order in which context.check_hostname and context.verify_mode get set
    in SSLTransport._wrap_socket_sni. Fixes bug introduced in 5.0.3 where setting
    context.verify_mode = ssl.CERT_NONE would raise
    "ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled."
    Setting context.check_hostname prior to setting context.verify_mode resolves the
    issue.
  - Remove TCP_USER_TIMEOUT option for Solaris (#355) 
  - Pass long_description to setup() (#353)
  - Fix for tox-docker 2.0
  - Moved to GitHub actions CI (#359)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqp?expand=0&rev=76
2021-06-17 20:48:23 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package python-amqp
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-amqp
Version: 5.0.6
Release: 0
Summary: Low-level AMQP client for Python (fork of amqplib)
License: LGPL-2.1-or-later
URL: http://github.com/celery/py-amqp
Source: https://files.pythonhosted.org/packages/source/a/amqp/amqp-%{version}.tar.gz
Patch0: vine-no-double-equals-deps.patch
BuildRequires: %{python_module case >= 1.3.1}
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vine >= 5.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-vine >= 5.0.0
BuildArch: noarch
%python_subpackages
%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}
%autopatch -p1
# requires internet connection:
rm t/integration/test_rmq.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%changelog