2011-09-27 09:04:52 +00:00
|
|
|
#
|
2022-04-28 21:44:25 +00:00
|
|
|
# spec file
|
2011-09-27 09:04:52 +00:00
|
|
|
#
|
2022-04-28 21:44:25 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-09-27 09:04:52 +00: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.
|
2015-03-26 16:18:22 +00:00
|
|
|
|
2018-09-19 11:08:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-27 09:04:52 +00:00
|
|
|
#
|
|
|
|
|
2015-03-26 16:18:22 +00:00
|
|
|
|
2011-09-27 09:04:52 +00:00
|
|
|
%define mod_name pika
|
2017-08-22 07:13:19 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-27 09:04:52 +00:00
|
|
|
Name: python-%{mod_name}
|
2022-10-01 14:13:12 +00:00
|
|
|
Version: 1.3.0
|
2011-09-27 09:04:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Pika Python AMQP Client Library
|
2016-03-16 13:07:48 +00:00
|
|
|
License: BSD-3-Clause
|
2011-09-27 09:04:52 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-09-19 11:08:34 +00:00
|
|
|
URL: https://github.com/pika/pika
|
|
|
|
Source: https://github.com/pika/pika/archive/%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Twisted}
|
2022-10-01 14:13:12 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-04-17 08:48:39 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-09-19 11:08:34 +00:00
|
|
|
BuildRequires: %{python_module tornado}
|
2022-10-01 14:13:12 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-10-18 16:14:37 +00:00
|
|
|
BuildRequires: fdupes
|
2017-08-22 06:28:55 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-09-19 10:55:01 +00:00
|
|
|
Requires: python
|
2018-09-19 11:08:34 +00:00
|
|
|
Recommends: python-Twisted
|
|
|
|
Recommends: python-tornado
|
2011-09-27 09:04:52 +00:00
|
|
|
BuildArch: noarch
|
2017-08-22 06:28:55 +00:00
|
|
|
%python_subpackages
|
2011-09-27 09:04:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that
|
|
|
|
tries to stay fairly independent of the underlying network support
|
|
|
|
library. Pika was developed primarily for use with RabbitMQ, but
|
|
|
|
should also work with other AMQP 0-9-1 brokers.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2018-09-19 11:08:34 +00:00
|
|
|
# acceptance needs running configured server
|
|
|
|
rm -rf tests/acceptance/
|
2011-09-27 09:04:52 +00:00
|
|
|
|
|
|
|
%build
|
2022-10-01 14:13:12 +00:00
|
|
|
%pyproject_wheel
|
2011-09-27 09:04:52 +00:00
|
|
|
|
|
|
|
%install
|
2022-10-01 14:13:12 +00:00
|
|
|
%pyproject_install
|
2017-10-18 16:14:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{mod_name}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/*.egg-info
|
2011-09-27 09:04:52 +00:00
|
|
|
|
2018-09-19 11:08:34 +00:00
|
|
|
%check
|
2022-04-28 21:44:25 +00:00
|
|
|
# E ModuleNotFoundError: No module named 'tests'
|
|
|
|
export PYTHONPATH='.'
|
|
|
|
%pytest
|
2018-09-19 11:08:34 +00:00
|
|
|
|
2017-08-22 06:28:55 +00:00
|
|
|
%files %{python_files}
|
2018-09-19 11:08:34 +00:00
|
|
|
%doc README.rst CHANGELOG.rst
|
2018-09-19 10:55:01 +00:00
|
|
|
%license LICENSE
|
2011-09-27 09:04:52 +00:00
|
|
|
# You may have to add additional files here (documentation and binaries mostly)
|
2018-09-19 11:08:34 +00:00
|
|
|
%{python_sitelib}/%{mod_name}*
|
2011-09-27 09:04:52 +00:00
|
|
|
|
2012-11-19 07:56:02 +00:00
|
|
|
%changelog
|