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

#
# spec file for package python-neutron-lib
#
# Copyright (c) 2025 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.15.0
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.15.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python311-SQLAlchemy
BuildRequires:  python311-WebOb
BuildRequires:  python311-ddt
BuildRequires:  python311-debtcollector
BuildRequires:  python311-fixtures
BuildRequires:  python311-keystoneauth1
BuildRequires:  python311-os-ken
BuildRequires:  python311-os-traits
BuildRequires:  python311-oslo.concurrency
BuildRequires:  python311-oslo.config
BuildRequires:  python311-oslo.context
BuildRequires:  python311-oslo.db
BuildRequires:  python311-oslo.i18n
BuildRequires:  python311-oslo.log
BuildRequires:  python311-oslo.messaging
BuildRequires:  python311-oslo.policy
BuildRequires:  python311-oslo.service
BuildRequires:  python311-oslo.utils
BuildRequires:  python311-oslo.versionedobjects
BuildRequires:  python311-oslotest
BuildRequires:  python311-osprofiler
BuildRequires:  python311-pbr
BuildRequires:  python311-pecan
BuildRequires:  python311-python-subunit
BuildRequires:  python311-setproctitle
BuildRequires:  python311-stestr
BuildRequires:  python311-testresources
BuildRequires:  python311-testscenarios
BuildRequires:  python311-testtools
BuildArch:      noarch

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

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

%description -n python311-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:  python311-Sphinx
BuildRequires:  python311-openstackdocstheme
BuildRequires:  python311-reno
BuildRequires:  python311-sphinxcontrib-apidoc

%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 python311-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