Name: python-ceilometerclient Version: 1.0.10 Release: 3%{?dist} Summary: Python API and CLI for OpenStack Ceilometer Group: Development/Languages License: ASL 2.0 URL: https://github.com/openstack/%{name} Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python-pbr BuildRequires: python-d2to1 Requires: python-setuptools Requires: python-argparse Requires: python-prettytable >= 0.7, python-prettytable < 0.8 Requires: python-iso8601 Requires: python-pbr >= 0.6, python-pbr < 0.7, python-pbr > 0.7, python-pbr < 1.0 Requires: python-keystoneclient Requires: python-six >= 1.5.2 # # patches_base=1.0.10 # Patch0001: 0001-Remove-runtime-dependency-on-python-pbr.patch %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: python-sphinx %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 %patch0001 -p1 # We provide version like this in order to remove runtime dep on pbr. sed -i s/REDHATCEILOMETERCLIENTVERSION/%{version}/ ceilometerclient/__init__.py # Remove bundled egg-info rm -rf python_ceilometerclient.egg-info # Let RPM handle the requirements rm -f {,test-}requirements.txt %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} export PYTHONPATH="$( pwd ):$PYTHONPATH" sphinx-build -b html doc/source html # Fix hidden-file-or-dir warnings rm -rf html/.doctrees html/.buildinfo %files %doc README.rst %doc LICENSE %{_bindir}/ceilometer %{python_sitelib}/ceilometerclient %{python_sitelib}/*.egg-info %files doc %doc html %changelog * Sat Jun 07 2014 Fedora Release Engineering - 1.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Jun 05 2014 Jakub Ruzicka 1.0.10-1 - Update to upstream 1.0.10 - Remove requirements.txt in .spec instead of patch * Mon Feb 17 2014 Pádraig Brady - 1.0.9-3 - Require python-six >= 1.4.1 to ensure update * Mon Feb 17 2014 Alan Pevec 1.0.9-1 - Update to upstream 1.0.9 * Mon Dec 16 2013 Jakub Ruzicka 1.0.8-1 - Update to upstream 1.0.8 - New dependency: python-six * Mon Oct 07 2013 Jakub Ruzicka 1.0.6-1 - Update to upstream 1.0.6. * Mon Sep 09 2013 Jakub Ruzicka 1.0.3-1 - Update to upstream 1.0.3. - README extension changed. - Get rid of pbr deps in the patch instead of this spec file. * Sun Aug 04 2013 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 16 2013 Jakub Ruzicka 1.0.1-2 - New build requires: python-d2to1, python-pbr. * Tue Jul 16 2013 Jakub Ruzicka 1.0.1-1 - Update to upstream version 1.0.1. - Remove new runtime dependency on python-pbr. - Remove requirements file. - Make requires generic instead of requiring specific versions. * Mon Apr 01 2013 Jakub Ruzicka 1.0.0 - Update to upstream version 1.0.0. - Added Requires: python-keystoneclient >= 0.1.2. * Tue Mar 26 2013 Jakub Ruzicka 0.0.10-0.2.gitd84fd99 - Add BuildRequires: python2-devel. * Tue Mar 26 2013 Jakub Ruzicka 0.0.10-0.1.gitd84fd99 - Initial package based on python-novaclient.