[python-gbpclient] Initial import (#1168009).
Robert A. Kukura
rkukura at fedoraproject.org
Thu Dec 4 18:34:43 UTC 2014
commit a60f35e31951d5f5f474753fecedd09d771c8d0d
Author: Robert Kukura <kukura at noironetworks.com>
Date: Thu Dec 4 13:32:32 2014 -0500
Initial import (#1168009).
.gitignore | 1 +
python-gbpclient.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..489f153 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-group-based-policy-client-7821534.tar.gz
diff --git a/python-gbpclient.spec b/python-gbpclient.spec
new file mode 100644
index 0000000..63a7c52
--- /dev/null
+++ b/python-gbpclient.spec
@@ -0,0 +1,68 @@
+%global commit 7821534cd0a32ab55d6631d928908cdc592ed6da
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+# REVISIT: Using 0.1 for Version until upstream decides on a proper version.
+
+Name: python-gbpclient
+Version: 0.1
+Release: 0.2.%{shortcommit}git%{?dist}
+Summary: Python API and CLI for OpenStack Neutron Group Based Policy
+
+Group: Development/Languages
+License: ASL 2.0
+URL: https://launchpad.net/group-based-policy-client
+
+# The source tarball is created as follows:
+# git clone http://git.openstack.org/cgit/stackforge/python-group-based-policy-client
+# cd python-group-based-policy-client/
+# git checkout %%{commit}
+# python setup.py sdist
+Source0: python-group-based-policy-client-%{shortcommit}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-pbr
+BuildRequires: python-setuptools
+
+Requires: python-neutronclient = 2.3.9
+Requires: python-heatclient >= 0.2.9
+
+
+%description
+Client library and command line tool for interacting with OpenStack
+Neutron's Group Based Policy (GBP) extension API.
+
+
+%prep
+%setup -qn python-group-based-policy-client-%{shortcommit}
+
+# Unused pbr dependency
+rm gbpclient/version.py
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Remove unused files
+rm -rf %{buildroot}%{python_sitelib}/gbpclient/tests
+
+
+%files
+%doc LICENSE
+%doc README.rst
+%{_bindir}/gbp
+%{python_sitelib}/gbpclient
+%{python_sitelib}/python_group_based_policy_client-*.egg-info
+
+
+%changelog
+* Thu Dec 4 2014 Robert Kukura <rk at theep.net> - 0.1-0.2.7821534git
+- Update to commit with renamed resources
+
+* Wed Nov 19 2014 Robert Kukura <rk at theep.net> - 2.3.9-0.1.f269444git
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..d6bfaa3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+da81fa8dc6979f6cc878e6e6877e34fe python-group-based-policy-client-7821534.tar.gz
More information about the scm-commits
mailing list