%global bzrtag 83 Name: python-novaclient Version: 2.6.1 Release: 0.3.%{bzrtag}bzr%{?dist} Summary: Python API and CLI for OpenStack Nova Group: Development/Languages License: ASL 2.0 URL: http://pypi.python.org/pypi/python-novaclient Source0: http://nova.openstack.org/tarballs/python-novaclient-%{version}~bzr%{bzrtag}.tar.gz Patch1: novaclient-remove-argparse-from-egg-requires.patch BuildArch: noarch BuildRequires: python-setuptools Requires: python-argparse Requires: python-simplejson Requires: python-httplib2 Requires: python-prettytable %description This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. %package doc Summary: Documentation for OpenStack Nova API Client Group: Documentation Requires: %{name} = %{version}-%{release} BuildRequires: python-sphinx %description doc This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. This package contains auto-generated documentation. %prep %setup -q -n python-novaclient-%{version} %patch1 -p1 %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Delete tests rm -fr %{buildroot}%{python_sitelib}/tests export PYTHONPATH="$( pwd ):$PYTHONPATH" sphinx-build -b html docs html # Fix hidden-file-or-dir warnings rm -fr html/.doctrees html/.buildinfo %files %doc README.rst %{_bindir}/nova %{python_sitelib}/novaclient %{python_sitelib}/*.egg-info %files doc %doc html %changelog * Mon Aug 22 2011 Mark McLoughlin - 2.6.1-0.3.83bzr - Remove python-devel BR - Remove the openstack-novaclient sub-package * Fri Aug 19 2011 Mark McLoughlin - 2.6.1-0.2.83bzr - Remove argparse from egg requires.txt; no egg info for argparse available * Wed Aug 17 2011 Mark McLoughlin - 2.6.1-0.1.83bz - Update to latest upstream * Wed Aug 10 2011 Mark McLoughlin - 2.6.1-0.1.74bzr - Update to latest upstream * Mon Aug 8 2011 Mark McLoughlin - 2.5.1-1 - Initial package from Alexander Sakhnov with cleanups by Mark McLoughlin