From acbee3d04c562afc748b551f35e87e3f5e1f83cd Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Aug 23 2011 07:08:52 +0000 Subject: Initial import (#731980) --- diff --git a/.gitignore b/.gitignore index e69de29..3791c79 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-novaclient-2.6.1~bzr83.tar.gz diff --git a/novaclient-remove-argparse-from-egg-requires.patch b/novaclient-remove-argparse-from-egg-requires.patch new file mode 100644 index 0000000..5fe74fd --- /dev/null +++ b/novaclient-remove-argparse-from-egg-requires.patch @@ -0,0 +1,25 @@ +From: Mark McLoughlin +Subject: [PATCH] Remove argparse from egg requires.txt + +It looks like there is no egg info available for argparse on +Fedora so the requirement can't be satisfied. +--- + setup.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/setup.py b/setup.py +index b6e6720..66861cf 100644 +--- a/setup.py ++++ b/setup.py +@@ -6,7 +6,7 @@ from setuptools import setup, find_packages + def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + +-requirements = ['httplib2', 'argparse', 'prettytable'] ++requirements = ['httplib2', 'prettytable'] + if sys.version_info < (2, 6): + requirements.append('simplejson') + +-- +1.7.4.4 + diff --git a/python-novaclient.spec b/python-novaclient.spec new file mode 100644 index 0000000..bf7a335 --- /dev/null +++ b/python-novaclient.spec @@ -0,0 +1,88 @@ +%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 diff --git a/sources b/sources index e69de29..b99ce42 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +38a21b448e2d99ed26a872f72742830f python-novaclient-2.6.1~bzr83.tar.gz