File python-ovsdbapp.spec of Package python-ovsdbapp

# spec file for package python-ovsdbapp
# Copyright (c) 2020 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

%define with_tests 0
Name:           python-ovsdbapp
Version:        0.12.5
Release:        0
Summary:        A library for creating OVSDB applications
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-os-testr
BuildRequires:  python-oslotest
BuildRequires:  python-ovs
BuildRequires:  python-pbr
BuildRequires:  python-stestr
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-fixtures
Requires:       python-ovs
Requires:       python-pbr
BuildArch:      noarch

The ovdsbapp library is useful for creating applications that communicate via
Open_vSwitchs OVSDB protocol ( It wraps
the Python 'ovs' and adds an event loop and friendly transactions.

%package doc
Summary:        Documentation for OpenStack log library
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme

%description doc
Documentation for the ovsdbap library.

%autosetup -p1 -n ovsdbapp-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg


# generate html docs
%{__python2} build_sphinx
rm -rf doc/build/html/.{doctrees,buildinfo}


%if 0%{?with_tests}
stestr run

%license LICENSE
%doc ChangeLog README.rst

%files doc
%license LICENSE
%doc doc/build/html

openSUSE Build Service is sponsored by