summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-06-08 15:28:42 (GMT)
committerPádraig Brady <P@draigBrady.com>2012-06-08 15:28:42 (GMT)
commit2e5cd5730f152198d647168be61dc57c799583dc (patch)
tree1734e993bd689500332646c1401b01739ac3c92d
parent2177871126d57bd2c8e9295a75ea5c78e6ef957d (diff)
downloadpython-glanceclient-2e5cd57.zip
python-glanceclient-2e5cd57.tar.gz
python-glanceclient-2e5cd57.tar.xz
Initial import (#829301).
-rw-r--r--.gitignore1
-rw-r--r--glanceclient-remove-argparse-from-egg-requires.patch11
-rw-r--r--python-glanceclient.spec50
-rw-r--r--sources1
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@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