%global sname oslo.config Name: {{ py2name('oslo.config') }} Version: 3.17.1 Epoch: {{ epoch('oslo.config') }} Release: 0 Summary: OpenStack common configuration library License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: https://launchpad.net/%{sname} Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz # 0001-Add-defaults-for-config-dir.patch -- backport for master to support default config dirs Patch1: 0001-Add-defaults-for-config-dir.patch BuildRequires: openstack-macros BuildRequires: {{ py2pkg('debtcollector') }} BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('netaddr') }} BuildRequires: {{ py2pkg('oslo.i18n') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('python-subunit') }} BuildRequires: {{ py2pkg('rfc3986') }} BuildRequires: {{ py2pkg('six') }} BuildRequires: {{ py2pkg('stevedore') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testscenarios') }} BuildRequires: {{ py2pkg('testtools') }} Requires: {{ py2pkg('debtcollector') }} Requires: {{ py2pkg('netaddr') }} Requires: {{ py2pkg('oslo.i18n') }} Requires: {{ py2pkg('rfc3986') }} Requires: {{ py2pkg('six') }} Requires: {{ py2pkg('stevedore') }} BuildArch: noarch %description The Oslo project intends to produce a python library containing infrastructure code shared by OpenStack projects. The APIs provided by the project should be high quality, stable, consistent and generally useful. The oslo-config library is a command line and configuration file parsing library from the Oslo project. %package doc Summary: Documentation for OpenStack common configuration library BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('oslosphinx') }} %description doc Documentation for the oslo-config library. %prep %setup -q -n %{sname}-%{version} %patch1 -p1 %build %{py2_build} %{__python2} setup.py build_sphinx # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py2_install} %check %{__python2} setup.py testr %files %doc README.rst %license LICENSE %{_bindir}/oslo-config-generator %{python2_sitelib}/oslo_config %{python2_sitelib}/*.egg-info %files doc %doc doc/build/html %license LICENSE %changelog