%global sname python-congressclient Name: {{ py2name('python-congressclient') }} Version: 1.8.1 Release: 0 Summary: Client library for Congress License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: http://launchpad.net/%{name} Source0: https://files.pythonhosted.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz BuildRequires: openstack-macros BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('jsonpatch') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('osc-lib') }} BuildRequires: {{ py2pkg('oslo.log') }} BuildRequires: {{ py2pkg('oslo.serialization') }} BuildRequires: {{ py2pkg('oslo.utils') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('python-subunit') }} BuildRequires: {{ py2pkg('requests-mock') }} BuildRequires: {{ py2pkg('setuptools') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testscenarios') }} BuildRequires: {{ py2pkg('testtools') }} Requires: {{ py2pkg('Babel') }} Requires: {{ py2pkg('cliff') }} Requires: {{ py2pkg('keystoneauth1') }} Requires: {{ py2pkg('oslo.i18n') }} Requires: {{ py2pkg('oslo.log') }} Requires: {{ py2pkg('oslo.serialization') }} Requires: {{ py2pkg('oslo.utils') }} Requires: {{ py2pkg('pbr') }} Requires: {{ py2pkg('requests') }} Requires: {{ py2pkg('six') }} BuildArch: noarch %description This package is client for Congress component. Congress is an open policy framework for the cloud. Congress fetches information about VMs from Nova, and network state from Neutron, etc. Congress then feeds input data from those services into its policy engine where Congress verifies that the cloud's actual state abides by the cloud operator's policies. Congress is designed to work with any policy and any cloud service. %package doc Summary: Documentation for OpenStack Congress API client libary Group: Documentation/HTML BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('openstackdocstheme') }} BuildRequires: {{ py2pkg('reno') }} %description doc This package is client for Congress component. Congress is an open policy framework for the cloud. Congress fetches information about VMs from Nova, and network state from Neutron, etc. Congress then feeds input data from those services into its policy engine where Congress verifies that the cloud's actual state abides by the cloud operator's policies. Congress is designed to work with any policy and any cloud service. This package contains the documentation. %prep %autosetup -n %{name}-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %{py2_build} # Build HTML docs and man page %{__python2} setup.py build_sphinx rm -rf html/.{doctrees,buildinfo} %install %{py2_install} %check %{__python2} setup.py testr %files %doc README.rst %license LICENSE %{python2_sitelib}/congressclient %{python2_sitelib}/*.egg-info %files doc %doc doc/build/html %license LICENSE %changelog