File python-neutron-lib.spec of Package python-neutron-lib
#
# spec file for package python-neutron-lib
#
# Copyright (c) 2017 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/
#
%global sname neutron-lib
Name: python-neutron-lib
Version: 1.9.1
Release: 0
Summary: OpenStack Neutron library
License: Apache-2.0
Group: Development/Languages/Python
Url: http://docs.openstack.org/developer/neutron-lib/
Source0: https://pypi.io/packages/source/n/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-SQLAlchemy >= 1.0.10
BuildRequires: python-debtcollector >= 1.2.0
BuildRequires: python-devel
BuildRequires: python-fixtures >= 3.0.0
BuildRequires: python-os-api-ref >= 1.0.0
BuildRequires: python-os-testr >= 0.8.0
BuildRequires: python-oslo.concurrency >= 3.8.0
BuildRequires: python-oslo.config >= 4.0.0
BuildRequires: python-oslo.context >= 2.14.0
BuildRequires: python-oslo.db >= 4.23.0
BuildRequires: python-oslo.i18n >= 2.1.0
BuildRequires: python-oslo.log >= 3.22.0
BuildRequires: python-oslo.messaging >= 5.24.2
BuildRequires: python-oslo.policy >= 1.23.0
BuildRequires: python-oslo.service >= 1.10.0
BuildRequires: python-oslo.utils >= 3.20.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-pep8
BuildRequires: python-python-subunit >= 0.0.18
BuildRequires: python-setuptools >= 16.0
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testresources >= 0.2.4
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-SQLAlchemy >= 1.0.10
Requires: python-debtcollector >= 1.2.0
Requires: python-oslo.concurrency >= 3.8.0
Requires: python-oslo.config >= 4.0.0
Requires: python-oslo.context >= 2.14.0
Requires: python-oslo.db >= 4.23.0
Requires: python-oslo.i18n >= 2.1.0
Requires: python-oslo.log >= 3.22.0
Requires: python-oslo.messaging >= 5.24.2
Requires: python-oslo.policy >= 1.23.0
Requires: python-oslo.service >= 1.10.0
Requires: python-oslo.utils >= 3.20.0
BuildArch: noarch
%description
OpenStack Neutron library shared by all Neutron sub-projects.
%package doc
Summary: OpenStack Neutron library documentation
Group: Documentation
BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme >= 1.11.0
BuildRequires: python-reno >= 1.8.0
%description doc
OpenStack Neutron library shared by all Neutron sub-projects.
%prep
%autosetup -n neutron-lib-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{py2_build}
%install
%{py2_install}
# Build HTML docs and man page
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{__python2} setup.py testr
%files
%license LICENSE
%doc ChangeLog README.rst
%{python2_sitelib}/neutron_lib
%{python2_sitelib}/neutron_lib*egg-info
%files doc
%doc doc/build/html
%license LICENSE
%changelog