[python-cinderclient] initial import (#856719)

Pádraig Brady pbrady at fedoraproject.org
Fri Sep 14 15:11:02 UTC 2012


commit f1f19904a2cd0862be4b60699aef7aacced5e6d4
Author: Pádraig Brady <P at draigBrady.com>
Date:   Fri Sep 14 16:07:23 2012 +0100

    initial import (#856719)

 .gitignore               |    1 +
 python-cinderclient.spec |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..392e503 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-cinderclient-0.2.tar.gz
diff --git a/python-cinderclient.spec b/python-cinderclient.spec
new file mode 100644
index 0000000..055a765
--- /dev/null
+++ b/python-cinderclient.spec
@@ -0,0 +1,54 @@
+Name:             python-cinderclient
+Version:          0.2
+Release:          2%{?dist}
+Summary:          Python API and CLI for OpenStack cinder
+
+Group:            Development/Languages
+License:          ASL 2.0
+URL:              http://github.com/openstack/python-cinderclient
+Source0:          https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
+
+#
+# patches_base=0.2
+#
+
+BuildArch:        noarch
+BuildRequires:    python-setuptools
+
+Requires:         python-httplib2
+Requires:         python-prettytable
+Requires:         python-setuptools
+
+%description
+This is a client for the OpenStack cinder API. There's a Python API (the
+cinderclient module), and a command-line script (cinder). Each implements
+100% of the OpenStack cinder API.
+
+%prep
+%setup -q
+
+# TODO: Have the following handle multi line entries
+sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
+
+# Remove bundled egg-info
+rm -rf python_cinderclient.egg-info
+
+%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}/cinder
+%{python_sitelib}/cinderclient
+%{python_sitelib}/*.egg-info
+
+%changelog
+* Mon Sep  3 2012 Pádraig Brady <P at draigBrady.com> 0.2-2
+- Initial release
diff --git a/sources b/sources
index e69de29..20c4ae6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+01cd4552e5d9e424d849058a5bd4c580  python-cinderclient-0.2.tar.gz


More information about the scm-commits mailing list