[python-quantumclient] Initial commit

Cole Robinson crobinso at fedoraproject.org
Mon Jan 30 19:33:34 UTC 2012


commit 6b07eb8a6e81d50ac4af943fc348912c84a1708d
Author: Cole Robinson <crobinso at redhat.com>
Date:   Mon Jan 30 14:29:32 2012 -0500

    Initial commit

 .gitignore                                      |    1 +
 python-quantumclient-non-executable-files.patch |   27 ++++++++++
 python-quantumclient.spec                       |   64 +++++++++++++++++++++++
 quantum__init__.py                              |   19 +++++++
 sources                                         |    1 +
 5 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8d9a1bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-quantumclient-2012.1~e3.tar.gz
diff --git a/python-quantumclient-non-executable-files.patch b/python-quantumclient-non-executable-files.patch
new file mode 100644
index 0000000..ed88189
--- /dev/null
+++ b/python-quantumclient-non-executable-files.patch
@@ -0,0 +1,27 @@
+diff --git a/quantum/client/cli.py b/quantum/client/cli.py
+index bc06771..0fe4dd6 100755
+--- a/quantum/client/cli.py
++++ b/quantum/client/cli.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
+ 
+ # Copyright 2011 Nicira Networks, Inc.
+diff --git a/quantum/client/cli_lib.py b/quantum/client/cli_lib.py
+index d7d8774..6e202ff 100755
+--- a/quantum/client/cli_lib.py
++++ b/quantum/client/cli_lib.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
+ 
+ # Copyright 2011 Nicira Networks, Inc.
+diff --git a/quantum/common/config.py b/quantum/common/config.py
+index 3788b5c..6bac72d 100644
+--- a/quantum/common/config.py
++++ b/quantum/common/config.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
+ 
+ # Copyright 2011 Nicira Networks, Inc.
diff --git a/python-quantumclient.spec b/python-quantumclient.spec
new file mode 100644
index 0000000..7d2488f
--- /dev/null
+++ b/python-quantumclient.spec
@@ -0,0 +1,64 @@
+#
+# This is 2012.1 essex-3 milestone
+#
+%global release_name essex
+%global release_letter e
+%global milestone 3
+
+Name:       python-quantumclient
+Version:    2012.1
+Release:    0.1.%{release_letter}%{milestone}%{?dist}
+Summary:    Python API and CLI for OpenStack Quantum
+
+Group:      Development/Languages
+License:    ASL 2.0
+URL:        https://github.com/openstack/python-quantumclient
+BuildArch:  noarch
+
+Source0:    http://launchpad.net/quantum/%{release_name}/%{release_name}-%{milestone}/+download/%{name}-%{version}~%{release_letter}%{milestone}.tar.gz
+# Taken from:
+# http://launchpad.net/quantum/essex/essex-3/+download/quantum-2012.1~e3.tar.gz
+# https://bugs.launchpad.net/quantum/+bug/922440
+Source1:    quantum__init__.py
+
+Patch1:     python-quantumclient-non-executable-files.patch
+
+# Previously python-quantum owned /usr/lib/python/site-package/quantum
+# Newer versions will require this package. Users will have to upgrade
+# both simultaneously.
+Conflicts:  python-quantum <= 2011.3
+
+Requires:   python-gflags
+Requires:   python-paste-deploy
+Requires:   python-webob
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%description
+Client library and command line utility for interacting with Openstack
+Quantum's API.
+
+%prep
+%setup -q
+%patch1 -p1
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+install -p -m 644 %{SOURCE1} %{buildroot}%{python_sitelib}/quantum/__init__.py
+
+
+%files
+%doc README
+%{_bindir}/quantum
+%{python_sitelib}/quantum
+%{python_sitelib}/*.egg-info
+
+
+%changelog
+* Thu Jan 26 2012 Cole Robinson <crobinso at redhat.com> - 2012.1-0.1.e3
+- Initial package
diff --git a/quantum__init__.py b/quantum__init__.py
new file mode 100644
index 0000000..d5dcad6
--- /dev/null
+++ b/quantum__init__.py
@@ -0,0 +1,19 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2011 OpenStack LLC
+# All Rights Reserved.
+#
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
+#    not use this file except in compliance with the License. You may obtain
+#    a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+#    License for the specific language governing permissions and limitations
+#    under the License.
+
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
diff --git a/sources b/sources
index e69de29..276cf8c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c999ab8e3de3e3f3f38ed0c2d2ec61be  python-quantumclient-2012.1~e3.tar.gz


More information about the scm-commits mailing list