[python-neutronclient] Upstream version 2.2.4.

Jakub Ruzicka jruzicka at fedoraproject.org
Tue Jul 23 17:08:18 UTC 2013


commit 39c9a4db79228db7dfc20b7ffebc4f5e1aa63c08
Author: Jakub Ruzicka <jruzicka at redhat.com>
Date:   Tue Jul 23 18:41:02 2013 +0200

    Upstream version 2.2.4.
    
    Removed runtime dependency on python-pbr.

 .gitignore                                         |    1 +
 0001-Remove-runtime-dependency-on-python-pbr.patch |   22 ++++++
 python-neutronclient.spec                          |   71 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dc82382 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-neutronclient-2.2.4.tar.gz
diff --git a/0001-Remove-runtime-dependency-on-python-pbr.patch b/0001-Remove-runtime-dependency-on-python-pbr.patch
new file mode 100644
index 0000000..375969e
--- /dev/null
+++ b/0001-Remove-runtime-dependency-on-python-pbr.patch
@@ -0,0 +1,22 @@
+From c17f0b042d32c970afae6884a05c3df05642501f Mon Sep 17 00:00:00 2001
+From: Jakub Ruzicka <jruzicka at redhat.com>
+Date: Tue, 23 Jul 2013 18:35:38 +0200
+Subject: [PATCH] Remove runtime dependency on python-pbr.
+
+---
+ neutronclient/version.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/neutronclient/version.py b/neutronclient/version.py
+index 9315671..f0b6efc 100644
+--- a/neutronclient/version.py
++++ b/neutronclient/version.py
+@@ -16,7 +16,4 @@
+ # vim: tabstop=4 shiftwidth=4 softtabstop=4
+ # @author: Carl Baldwin, Hewlett-Packard
+ 
+-import pbr.version
+-
+-
+-__version__ = pbr.version.VersionInfo('python-neutronclient').version_string()
++__version__ = "REDHATNEUTRONCLIENTVERSION"
diff --git a/python-neutronclient.spec b/python-neutronclient.spec
new file mode 100644
index 0000000..eb521ab
--- /dev/null
+++ b/python-neutronclient.spec
@@ -0,0 +1,71 @@
+Name:       python-neutronclient
+Version:    2.2.4
+Release:    1%{?dist}
+Summary:    Python API and CLI for OpenStack Neutron
+
+Group:      Development/Languages
+License:    ASL 2.0
+URL:        http://launchpad.net/python-neutronclient/
+Source0:    https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+
+#
+# patches_base=2.2.4
+#
+Patch0001: 0001-Remove-runtime-dependency-on-python-pbr.patch
+
+Obsoletes:  python-quantumclient < 2:2.2.4
+
+BuildArch:  noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+BuildRequires: python-pbr
+BuildRequires: python-d2to1
+
+Requires: pyparsing
+Requires: python-cliff >= 1.0
+Requires: python-prettytable >= 0.6
+Requires: python-setuptools
+Requires: python-simplejson
+
+%description
+Client library and command line utility for interacting with Openstack
+Neutron's API.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%patch0001 -p1
+
+# We provide version like this in order to remove runtime dep on pbr.
+sed -i s/REDHATNEUTRONCLIENTVERSION/%{version}/ neutronclient/version.py
+
+# let RPM handle dependencies
+: > requirements.txt
+: > test-requirements.txt
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Install other needed files
+install -p -D -m 644 tools/neutron.bash_completion \
+    %{buildroot}%{_sysconfdir}/bash_completion.d/neutron.bash_completion
+
+# Remove unused files
+rm -rf %{buildroot}%{python_sitelib}/neutronclient/tests
+
+%files
+%doc LICENSE
+%doc README.rst
+%{_bindir}/neutron
+%{python_sitelib}/neutronclient
+%{python_sitelib}/*.egg-info
+%{_sysconfdir}/bash_completion.d
+
+%changelog
+* Tue Jul 23 2013 Jakub Ruzicka <jruzicka at redhat.com> - 1:2.2.4-1
+- Initial package based on python-quantumclient.
+- Removed runtime dependency on python-pbr.
diff --git a/sources b/sources
index e69de29..2779aa1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8b66f1ea60435c5f1ad36a779fbaad11  python-neutronclient-2.2.4.tar.gz


More information about the scm-commits mailing list