[openstack-neutron-gbp] Initial import (#1168006).

Robert A. Kukura rkukura at fedoraproject.org
Thu Dec 4 16:09:09 UTC 2014


commit eed9c48ab119a07308d86bc9506960820eeb7475
Author: Robert Kukura <kukura at noironetworks.com>
Date:   Thu Dec 4 11:08:50 2014 -0500

    Initial import (#1168006).

 .gitignore                                  |    1 +
 0001-remove-runtime-dependency-on-pbr.patch |   27 ++++++++++
 openstack-neutron-gbp.spec                  |   76 +++++++++++++++++++++++++++
 sources                                     |    1 +
 4 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4c2d506 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/group-based-policy-2014.2.dev62.gacb85f0.tar.gz
diff --git a/0001-remove-runtime-dependency-on-pbr.patch b/0001-remove-runtime-dependency-on-pbr.patch
new file mode 100644
index 0000000..5da9c31
--- /dev/null
+++ b/0001-remove-runtime-dependency-on-pbr.patch
@@ -0,0 +1,27 @@
+From dcb88e7a20e9c6cfa48da9a456d95642011de43b Mon Sep 17 00:00:00 2001
+From: Robert Kukura <kukura at noironetworks.com>
+Date: Sun, 23 Nov 2014 16:38:25 -0500
+Subject: [PATCH] remove runtime dependency on pbr
+
+Change-Id: I29be7a60254d721c39e3d7a4a1b8b0d8f13250d1
+---
+ gbp/__init__.py | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/gbp/__init__.py b/gbp/__init__.py
+index dc4150d..ade10e0 100644
+--- a/gbp/__init__.py
++++ b/gbp/__init__.py
+@@ -12,8 +12,4 @@
+ # License for the specific language governing permissions and limitations
+ # under the License.
+ 
+-import pbr.version
+-
+-
+-__version__ = pbr.version.VersionInfo(
+-    'group-based-policy').version_string()
++__version__ = "RPMVERSION"
+-- 
+1.9.3
+
diff --git a/openstack-neutron-gbp.spec b/openstack-neutron-gbp.spec
new file mode 100644
index 0000000..0b68e0f
--- /dev/null
+++ b/openstack-neutron-gbp.spec
@@ -0,0 +1,76 @@
+%global commit acb85f0fc91084a62fbc927e9079b5403bf8207e
+%global commitseq 62
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:		openstack-neutron-gbp
+Version:	2014.2
+Release:	0.2.%{shortcommit}git%{?dist}
+Summary:	Group Based Policy service plugin for OpenStack Networking Service
+
+Group:		Applications/System
+License:	ASL 2.0
+URL:		https://launchpad.net/group-based-policy
+
+# The source tarball is created as follows:
+#  git clone http://git.openstack.org/cgit/stackforge/group-based-policy
+#  cd group-based-policy
+#  git checkout %%{commit}
+#  python setup.py sdist
+Source0:	group-based-policy-%{version}.dev%{commitseq}.g%{shortcommit}.tar.gz
+
+Patch0:		0001-remove-runtime-dependency-on-pbr.patch
+
+BuildArch:	noarch
+
+BuildRequires:	python2-devel
+BuildRequires:	python-pbr
+BuildRequires:	python-setuptools
+
+Requires:	openstack-neutron = %{version}
+
+
+%description
+Group Based Policy (GBP) provides declarative abstractions for
+achieving scalable intent-based infrastructure automation. GBP
+complements the OpenStack networking model with the notion of policies
+that can be applied between groups of network endpoints.
+
+
+%prep
+%setup -qn group-based-policy-%{version}.dev%{commitseq}.g%{shortcommit}
+
+%patch0 -p1
+
+find gbp -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
+
+sed -i 's/RPMVERSION/%{version}/' gbp/__init__.py
+
+rm -f requirements.txt
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Remove unused files
+rm -rf %{buildroot}%{python_sitelib}/gbp/neutron/tests
+rm -rf %{buildroot}%{python_sitelib}/gbp/tests
+
+
+%files
+%doc LICENSE
+%doc README.rst
+%{_bindir}/gbp-db-manage
+%{python_sitelib}/gbp
+%{python_sitelib}/group_based_policy-%%{version}*.egg-info
+
+
+%changelog
+* Thu Dec  4 2014 Robert Kukura <rk at theep.net> - 2014.2-0.2.acb85f0git
+- Update to commmit with renamed resources
+
+* Mon Nov 17 2014 Robert Kukura <rk at theep.net> - 2014.2-0.1.b3be657git
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..66193dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+57b12bb2173cf52314eef57c731e86bb  group-based-policy-2014.2.dev62.gacb85f0.tar.gz


More information about the scm-commits mailing list