From d794e59ac837c43ee7f2e2d5cc7b4c97fa365c9d Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Wed, 10 Feb 2016 17:23:08 +0300 Subject: [PATCH] Add initial spec file for python-ceilometerclient Change-Id: I57ad2eca9e64b9cf3f4df9f50e7eaa8e04475ac0 --- .../python-ceilometerclient.spec.j2 | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 openstack/python-ceilometerclient/python-ceilometerclient.spec.j2 diff --git a/openstack/python-ceilometerclient/python-ceilometerclient.spec.j2 b/openstack/python-ceilometerclient/python-ceilometerclient.spec.j2 new file mode 100644 index 000000000..e80d74f97 --- /dev/null +++ b/openstack/python-ceilometerclient/python-ceilometerclient.spec.j2 @@ -0,0 +1,84 @@ +%global sname python-ceilometerclient +Name: {{ py2name('ceilometerclient') }} +Version: 2.4.0 +Release: 0 +Summary: Python API and CLI for OpenStack Ceilometer +License: {{ license('Apache-2.0') }} +Group: Development/Languages +Url: https://github.com/openstack/%{name} +Source0: https://pypi.io/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz +BuildRequires: {{ py2pkg('PrettyTable') }} +BuildRequires: {{ py2pkg('devel') }} +BuildRequires: {{ py2pkg('python-keystoneclient') }} +BuildRequires: {{ py2pkg('mock') }} +BuildRequires: {{ py2pkg('oslo.i18n') }} +BuildRequires: {{ py2pkg('oslo.serialization') }} +BuildRequires: {{ py2pkg('oslo.utils') }} +BuildRequires: {{ py2pkg('pbr') }} +BuildRequires: {{ py2pkg('requests') }} +BuildRequires: {{ py2pkg('requests-mock') }} +BuildRequires: {{ py2pkg('setuptools') }} +BuildRequires: {{ py2pkg('six') }} +BuildRequires: {{ py2pkg('stevedore') }} +BuildRequires: {{ py2pkg('testrepository') }} +BuildRequires: {{ py2pkg('testscenarios') }} +BuildRequires: {{ py2pkg('testtools') }} +Requires: {{ py2pkg('PrettyTable') }} +Requires: {{ py2pkg('iso8601') }} +Requires: {{ py2pkg('keystoneauth1') }} +Requires: {{ py2pkg('python-keystoneclient') }} +Requires: {{ py2pkg('oslo.i18n') }} +Requires: {{ py2pkg('oslo.serialization') }} +Requires: {{ py2pkg('oslo.utils') }} +Requires: {{ py2pkg('pbr') }} +Requires: {{ py2pkg('requests') }} +Requires: {{ py2pkg('six') }} +Requires: {{ py2pkg('stevedore') }} +BuildArch: noarch + +%description +This is a client library for Ceilometer built on the Ceilometer API. It +provides a Python API (the ceilometerclient module) and a command-line tool +(ceilometer). + +%package doc +Summary: Documentation for OpenStack Ceilometer API Client +Group: Documentation +BuildRequires: {{ py2pkg('Sphinx') }} +BuildRequires: {{ py2pkg('oslosphinx') }} + +%description doc +This is a client library for Ceilometer built on the Ceilometer API. It +provides a Python API (the ceilometerclient module) and a command-line tool +(ceilometer). + +This package contains auto-generated documentation. + +%prep +%setup -q -n %{name}-%{version} + +%build +%{py2_build} + +sphinx-build -b html doc/source html +# Fix hidden-file-or-dir warnings +rm -rf html/.doctrees html/.buildinfo + +%install +%{py2_install} + +%check +%{__python2} setup.py testr + +%files +%doc README.rst +%license LICENSE +%{_bindir}/ceilometer +%{python2_sitelib}/ceilometerclient +%{python2_sitelib}/*.egg-info + +%files doc +%license LICENSE +%doc html + +%changelog