File python-neutron-lib.spec of Package python-neutron-lib

#
# spec file for package python-neutron-lib
#
# 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-neutron-lib
Version:        3.1.2
Release:        0
Summary:        OpenStack Neutron library
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/neutron-lib/latest/
Source0:        https://files.pythonhosted.org/packages/source/n/neutron-lib/neutron-lib-3.1.2.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python39-SQLAlchemy
BuildRequires:  python39-WebOb
BuildRequires:  python39-debtcollector
BuildRequires:  python39-fixtures
BuildRequires:  python39-keystoneauth1
BuildRequires:  python39-os-api-ref
BuildRequires:  python39-os-ken
BuildRequires:  python39-os-traits
BuildRequires:  python39-oslo.concurrency
BuildRequires:  python39-oslo.config
BuildRequires:  python39-oslo.context
BuildRequires:  python39-oslo.db
BuildRequires:  python39-oslo.i18n
BuildRequires:  python39-oslo.log
BuildRequires:  python39-oslo.messaging
BuildRequires:  python39-oslo.policy
BuildRequires:  python39-oslo.service
BuildRequires:  python39-oslo.utils
BuildRequires:  python39-oslo.versionedobjects
BuildRequires:  python39-oslotest
BuildRequires:  python39-osprofiler
BuildRequires:  python39-pbr
BuildRequires:  python39-pecan
BuildRequires:  python39-python-subunit
BuildRequires:  python39-setproctitle
BuildRequires:  python39-stestr
BuildRequires:  python39-testresources
BuildRequires:  python39-testscenarios
BuildRequires:  python39-testtools
BuildArch:      noarch

%description
OpenStack Neutron library shared by all Neutron sub-projects.

%package -n python39-neutron-lib
Summary:        OpenStack Neutron library
Requires:       python39-SQLAlchemy
Requires:       python39-WebOb
Requires:       python39-keystoneauth1
Requires:       python39-os-ken
Requires:       python39-os-traits
Requires:       python39-oslo.concurrency
Requires:       python39-oslo.config
Requires:       python39-oslo.context
Requires:       python39-oslo.db
Requires:       python39-oslo.i18n
Requires:       python39-oslo.log
Requires:       python39-oslo.messaging
Requires:       python39-oslo.policy
Requires:       python39-oslo.serialization
Requires:       python39-oslo.service
Requires:       python39-oslo.utils
Requires:       python39-oslo.versionedobjects
Requires:       python39-osprofiler
Requires:       python39-pecan
Requires:       python39-setproctitle
Requires:       python39-six
Requires:       python39-stevedore

%description -n python39-neutron-lib
OpenStack Neutron library shared by all Neutron sub-projects.

This package contains the Python 3.x module.

%package -n python-neutron-lib-doc
Summary:        OpenStack Neutron library documentation
Group:          Documentation/HTML
BuildRequires:  python39-Sphinx
BuildRequires:  python39-openstackdocstheme
BuildRequires:  python39-reno

%description -n python-neutron-lib-doc
OpenStack Neutron library shared by all Neutron sub-projects.

%prep
%autosetup -n neutron-lib-%{version}
%py_req_cleanup

%build
%{py3_build}

%install
%{py3_install}

# Build HTML docs and man page
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%check
# we don't want to depend on hacking
rm -rf neutron_lib/tests/unit/hacking
%{openstack_stestr_run}

%files -n python39-neutron-lib
%license LICENSE
%doc README.rst
%{python3_sitelib}/neutron_lib
%{python3_sitelib}/neutron_lib*egg-info

%files -n python-neutron-lib-doc
%doc doc/build/html
%license LICENSE

%changelog
openSUSE Build Service is sponsored by