File python-monasca-common.spec of Package python-monasca-common

#
# spec file for package python-monasca-common
#
# 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/
#


%global sname monasca-common
Name:           python-monasca-common
Version:        2.11.1~dev4
Release:        0
Summary:        Reusable code for building monitoring related services.
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://wiki.openstack.org/wiki/Monasca
Source0:        monasca-common-stable-rocky.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-PyMySQL >= 0.7.6
BuildRequires:  python-kazoo >= 2.2
BuildRequires:  python-mock
BuildRequires:  python-os-testr
BuildRequires:  python-oslo.config >= 5.2.0
BuildRequires:  python-oslo.context
BuildRequires:  python-oslo.policy >= 1.30.0
BuildRequires:  python-oslotest
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-pyparsing >= 2.1.0
BuildRequires:  python-requests-mock
BuildRequires:  python-setuptools
BuildRequires:  python-six >= 1.10.0
BuildRequires:  python-ujson >= 1.35
Requires:       python-PyMySQL >= 0.7.6
Requires:       python-kazoo >= 2.2
Requires:       python-oslo.config >= 5.2.0
Requires:       python-oslo.policy >= 1.30.0
Requires:       python-pykafka >= 2.5.0
Requires:       python-pyparsing >= 2.1.0
Requires:       python-six >= 1.10.0
Requires:       python-ujson >= 1.35
BuildArch:      noarch
%if "%{version}" != "2.3.0"
# Currently monasca vendored kafka and will only eventually
# switch to pykafka. atm it is not used
BuildRequires:  python-pykafka >= 2.5.0
Requires:       python-pykafka >= 2.5.0
%endif

%description
Collection of sub-projects containing reusable application and
platform code for building monitoring related services.

%prep
%autosetup -n %{sname}-2.11.1.dev4
%py_req_cleanup

%build
%{py2_build}

%install
%{py2_install}

%check
ostestr

%files
%license LICENSE
%doc README.rst ChangeLog
%{python2_sitelib}/monasca_common
%{python2_sitelib}/*.egg-info

%changelog
openSUSE Build Service is sponsored by