File python-infoblox-client.spec of Package python-infoblox-client

# spec file for package python-infoblox-client
# 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

Name:           python-infoblox-client
Version:        0.4.20
Release:        0
Summary:        Client for interacting with Infoblox NIOS over WAPI
License:        Apache-2.0
Group:          Development/Languages/Python
Source1:        %{name}-rpmlintrc
BuildRequires:  python-devel
BuildRequires:  python-oslo.log >= 1.8.0
BuildRequires:  python-oslo.serialization >= 1.4.0
BuildRequires:  python-requests >= 2.5.2
BuildRequires:  python-setuptools >= 17.1
# test requirements
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-pbr
Requires:       python-oslo.log >= 1.8.0
Requires:       python-oslo.serialization >= 1.4.0
Requires:       python-requests >= 2.5.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%package doc
Summary:        Documentation for python-infoblox-client
Group:          Documentation/HTML
BuildRequires:  python-Sphinx
Requires:       %{name} = %{version}

Client for interacting with an Infoblox NIOS appliance through its API

%description doc
This package contains extra documentation for python-infoblox-client

%setup -q -n infoblox-client-%{version}

python build
python build_sphinx
rm build/sphinx/html/.buildinfo


python install --prefix=%{_prefix} --root=%{buildroot}


%files doc
%doc build/sphinx/html