[python-glanceclient] Initial import (#829301).

Pádraig Brady pbrady at fedoraproject.org
Fri Jun 8 15:31:51 UTC 2012


commit 2e5cd5730f152198d647168be61dc57c799583dc
Author: Pádraig Brady <P at draigBrady.com>
Date:   Fri Jun 8 16:28:42 2012 +0100

    Initial import (#829301).

 .gitignore                                         |    1 +
 ...eclient-remove-argparse-from-egg-requires.patch |   11 ++++
 python-glanceclient.spec                           |   50 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9fd67d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-glanceclient-2012.2~f1.tar.gz
diff --git a/glanceclient-remove-argparse-from-egg-requires.patch b/glanceclient-remove-argparse-from-egg-requires.patch
new file mode 100644
index 0000000..b526cd2
--- /dev/null
+++ b/glanceclient-remove-argparse-from-egg-requires.patch
@@ -0,0 +1,11 @@
+There is no egg info available for argparse on
+Fedora so the requirement can't be satisfied.
+
+diff -Naur python-glanceclient-2012.2.orig/tools/pip-requires python-glanceclient-2012.2/tools/pip-requires
+--- python-glanceclient-2012.2.orig/tools/pip-requires	2012-05-24 12:22:17.000000000 +0000
++++ python-glanceclient-2012.2/tools/pip-requires	2012-06-06 12:13:23.258482709 +0000
+@@ -1,4 +1,3 @@
+-argparse
+ httplib2
+ prettytable
+ 
diff --git a/python-glanceclient.spec b/python-glanceclient.spec
new file mode 100644
index 0000000..82fd9d2
--- /dev/null
+++ b/python-glanceclient.spec
@@ -0,0 +1,50 @@
+Name:             python-glanceclient
+Version:          2012.2
+Release:          0.1.f1%{?dist}
+Summary:          Python API and CLI for OpenStack Glance
+
+Group:            Development/Languages
+License:          ASL 2.0
+URL:              http://github.com/openstack/python-glanceclient
+Source0:          http://launchpad.net/glance/folsom/folsom-1/+download/python-glanceclient-2012.2~f1.tar.gz
+
+Patch0:           glanceclient-remove-argparse-from-egg-requires.patch
+
+BuildArch:        noarch
+BuildRequires:    python-setuptools
+
+Requires:         python-argparse
+Requires:         python-httplib2
+Requires:         python-prettytable
+Requires:         python-keystoneclient
+
+Conflicts:        openstack-glance < 2012.2
+
+%description
+This is a client for the OpenStack Glance API. There's a Python API (the
+glanceclient module), and a command-line script (glance). Each implements
+100% of the OpenStack Glance API.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Delete tests
+rm -fr %{buildroot}%{python_sitelib}/tests
+
+%files
+%doc README.rst
+%doc LICENSE
+%{_bindir}/glance
+%{python_sitelib}/glanceclient
+%{python_sitelib}/*.egg-info
+
+%changelog
+* Wed Jun 06 2012 Pádraig Brady <P at draigBrady.com> 2012.2-0.1.f1
+- Initial (folsom-1) release
diff --git a/sources b/sources
index e69de29..8da2f20 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+63d3ab81fb7e249ee906eb3fec9aa4a6  python-glanceclient-2012.2~f1.tar.gz


More information about the scm-commits mailing list