File python-os-vif.spec of Package python-os-vif
#
# spec file for package python-os-vif
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-os-vif
Version: 1.11.1
Release: 0
Summary: A library for plugging and unplugging virtual interfaces in OpenStack
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/os-vif
Source0: https://files.pythonhosted.org/packages/source/o/os-vif/os_vif-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python-netaddr >= 0.7.18
BuildRequires: python-oslo.concurrency >= 3.20.0
BuildRequires: python-oslo.config >= 5.1.0
BuildRequires: python-oslo.i18n >= 3.15.3
BuildRequires: python-oslo.log >= 3.30.0
BuildRequires: python-oslo.privsep >= 1.23.0
BuildRequires: python-oslo.versionedobjects >= 1.28.0
BuildRequires: python-oslotest
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-pyroute2 >= 0.4.21
BuildRequires: python-python-subunit
BuildRequires: python-six >= 1.10.0
BuildRequires: python-stestr
BuildRequires: python-stevedore >= 1.20.0
BuildRequires: python-testrepository
BuildRequires: python-testscenarios
BuildRequires: python-testtools
Requires: python-netaddr >= 0.7.18
Requires: python-oslo.concurrency >= 3.20.0
Requires: python-oslo.config >= 5.1.0
Requires: python-oslo.i18n >= 3.15.3
Requires: python-oslo.log >= 3.30.0
Requires: python-oslo.privsep >= 1.23.0
Requires: python-oslo.versionedobjects >= 1.28.0
Requires: python-pbr >= 2.0.0
Requires: python-pyroute2 >= 0.4.21
Requires: python-six >= 1.10.0
Requires: python-stevedore >= 1.20.0
BuildArch: noarch
%description
A library for plugging and unplugging virtual interfaces in OpenStack.
Features:
* A base VIF plugin class that supplies a plug() and unplug() interface
* Versioned objects that represent a virtual interface and its components
%package doc
Summary: Documentation for a library for plugging and unplugging virtual interfaces in OpenStack
Group: Development/Languages/Python
BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme
BuildRequires: python-reno
%description doc
Documentation for a library for plugging and unplugging virtual interfaces
in OpenStack.
%prep
%autosetup -p1 -n os_vif-1.11.1
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{py2_build}
%install
%{py2_install}
# generate html docs
PBR_VERSION=1.11.1 sphinx-build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%check
stestr --test-path="os_vif/tests/unit" run
%files
%license LICENSE
%doc README.rst ChangeLog
%{python2_sitelib}/os_vif
%{python2_sitelib}/vif_plug_ovs
%{python2_sitelib}/vif_plug_linux_bridge
%{python2_sitelib}/vif_plug_noop
%{python2_sitelib}/*.egg-info
%files doc
%license LICENSE
%doc doc/build/html
%changelog