File python-oslo.messaging.spec of Package python-oslo.messaging
#
# spec file for package python-oslo.messaging
#
# Copyright (c) 2023 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/
#
Name: python-oslo.messaging
Version: 14.0.1
Release: 0
Summary: OpenStack oslo.messaging library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/oslo.messaging
Source0: https://files.pythonhosted.org/packages/source/o/oslo.messaging/oslo.messaging-14.0.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python39-PyYAML
BuildRequires: python39-WebOb
BuildRequires: python39-amqp
BuildRequires: python39-cachetools
BuildRequires: python39-confluent-kafka
BuildRequires: python39-debtcollector
BuildRequires: python39-eventlet
BuildRequires: python39-fixtures
BuildRequires: python39-futurist
BuildRequires: python39-greenlet
BuildRequires: python39-kombu
BuildRequires: python39-monotonic
BuildRequires: python39-oslo.config
BuildRequires: python39-oslo.i18n
BuildRequires: python39-oslo.log
BuildRequires: python39-oslo.metrics
BuildRequires: python39-oslo.middleware
BuildRequires: python39-oslo.serialization
BuildRequires: python39-oslo.service
BuildRequires: python39-oslo.utils
BuildRequires: python39-oslotest
BuildRequires: python39-pbr
BuildRequires: python39-pyngus
BuildRequires: python39-stestr
BuildRequires: python39-stevedore
BuildRequires: python39-testscenarios
BuildRequires: python39-testtools
BuildArch: noarch
%description
The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.
%package -n python39-oslo.messaging
Summary: OpenStack oslo.messaging library
Requires: python39-PyYAML
Requires: python39-WebOb
Requires: python39-amqp
Requires: python39-cachetools
Requires: python39-debtcollector
Requires: python39-futurist
Requires: python39-greenlet
Requires: python39-kombu
Requires: python39-oslo.config
Requires: python39-oslo.i18n
Requires: python39-oslo.log
Requires: python39-oslo.metrics
Requires: python39-oslo.middleware
Requires: python39-oslo.serialization
Requires: python39-oslo.service
Requires: python39-oslo.utils
Requires: python39-stevedore
%if 0%{?suse_version}
Obsoletes: python2-oslo.messaging < 12.0.0
%endif
%description -n python39-oslo.messaging
The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.
This package contains the Python 3.x module.
%package -n python39-oslo.messaging-doc
Summary: Documentation for OpenStack messaging library
BuildRequires: python39-Sphinx
BuildRequires: python39-openstackdocstheme
%description -n python39-oslo.messaging-doc
The Oslo messaging API supports RPC and notifications over a number
of different messaging transports.
This package contains the documentation.
%prep
%autosetup -p1 -n oslo.messaging-14.0.1
%py_req_cleanup
%build
%py3_build
# generate html docs
PYTHONPATH=. PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%py3_install
%check
# NOTE(jpena): we do not want to run functional tests, just unit tests
# python3-pifpaf is not available in RDO, but loading functional tests would
# fail without it
rm -rf oslo_messaging/tests/functional
# 3 cyrus tests fail on rdo with time out
%{openstack_stestr_run} --black-regex '^oslo_messaging.tests.(functional|drivers.test_amqp_driver.TestCyrusAuthentication.test_authentication_(ok|ignore_default_realm|default_realm))'
%files -n python39-oslo.messaging
%license LICENSE
%doc README.rst ChangeLog
%{python3_sitelib}/oslo_messaging
%{python3_sitelib}/*.egg-info
%{_bindir}/oslo-messaging-send-notification
%files -n python39-oslo.messaging-doc
%license LICENSE
%doc doc/build/html
%changelog