[os-net-config] Initial import (#1177019)

slagle slagle at fedoraproject.org
Mon Feb 16 20:01:18 UTC 2015


commit 0c234112ba5e94cebf58366db2a6902fff40629b
Author: James Slagle <jslagle at redhat.com>
Date:   Mon Feb 16 15:01:06 2015 -0500

    Initial import (#1177019)

 .gitignore                                     |    1 +
 0001-PATCH-Remove-pbr-runtime-dependency.patch |   39 ++++++++++++++
 os-net-config.spec                             |   68 ++++++++++++++++++++++++
 sources                                        |    1 +
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1f358f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/os-net-config-0.1.1.tar.gz
diff --git a/0001-PATCH-Remove-pbr-runtime-dependency.patch b/0001-PATCH-Remove-pbr-runtime-dependency.patch
new file mode 100644
index 0000000..330f4e1
--- /dev/null
+++ b/0001-PATCH-Remove-pbr-runtime-dependency.patch
@@ -0,0 +1,39 @@
+From 34203a32a6119ffb421dcc614300fb173c1b57a8 Mon Sep 17 00:00:00 2001
+From: Dan Prince <dprince at redhat.com>
+Date: Mon, 29 Sep 2014 09:53:21 -0400
+Subject: [PATCH] [PATCH] Remove pbr runtime dependency
+
+Requires some sed operation on REDHATOSAPPLYCONFIGVERSION and
+REDHATOSAPPLYCONFIGRELEASE to runtime modify the package.
+
+Change-Id: I9722e56b84b341ba7b53cf8a9eafe368699b5cea
+---
+ os_net_config/version.py | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/os_net_config/version.py b/os_net_config/version.py
+index 2af627c..3359280 100644
+--- a/os_net_config/version.py
++++ b/os_net_config/version.py
+@@ -14,6 +14,16 @@
+ # License for the specific language governing permissions and limitations
+ # under the License.
+ 
+-import pbr.version
+ 
+-version_info = pbr.version.VersionInfo('os-net-config')
++class VersionInfo(object):
++    release = "REDHATOSNETCONFIGRELEASE"
++    version = "REDHATOSNETCONFIGVERSION"
++
++    def version_string(self):
++        return self.version
++
++    def release_string(self):
++        return self.release
++
++version_info = VersionInfo()
++version_string = version_info.version_string
+-- 
+1.9.3
+
diff --git a/os-net-config.spec b/os-net-config.spec
new file mode 100644
index 0000000..ce676ce
--- /dev/null
+++ b/os-net-config.spec
@@ -0,0 +1,68 @@
+Name:			os-net-config
+Version:		0.1.1
+Release:		3%{?dist}
+Summary:		Host network configuration tool
+
+License:		ASL 2.0
+URL:			http://pypi.python.org/pypi/%{name}
+Source0:		http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
+
+Patch0001: 0001-PATCH-Remove-pbr-runtime-dependency.patch
+
+BuildArch:	noarch
+BuildRequires:	python-setuptools
+BuildRequires:	python2-devel
+BuildRequires:	python-pbr
+BuildRequires:	python-sphinx
+BuildRequires:	python-oslo-sphinx
+
+Requires:	python-setuptools
+Requires:	python-argparse
+Requires:	python-anyjson
+Requires:	python-babel
+Requires:	python-eventlet
+Requires:	python-oslo-config
+Requires:	python-netaddr
+Requires:	python-iso8601
+Requires:	python-six >= 1.5.0
+Requires:	PyYAML
+
+%description
+Host network configuration tool for OpenStack.
+
+%prep
+
+%setup -q -n %{name}-%{version}
+
+%patch0001 -p1
+
+sed -i '/setuptools_git/d' setup.py
+sed -i s/REDHATOSNETCONFIGVERSION/%{version}/ os_net_config/version.py
+sed -i s/REDHATOSNETCONFIGRELEASE/%{release}/ os_net_config/version.py
+# make doc build compatible with python-oslo-sphinx RPM
+sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py
+
+%build
+%{__python} setup.py build
+%{__python} setup.py build_sphinx
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%files
+%doc README.rst
+%doc LICENSE
+%doc doc/build/html
+%{_bindir}/os-net-config
+%{python_sitelib}/os_net_config*
+
+
+%changelog
+* Fri Feb 13 2015 Ben Nemec <bnemec at redhat.com> - 0.1.1-3
+- Fix BuildRequires in the srpm
+
+* Fri Feb 06 2015 Ben Nemec <bnemec at redhat.com> - 0.1.1-2
+- Cleanups from package review
+
+* Mon Dec 22 2014 Ben Nemec <bnemec at redhat.com> - 0.1.1-1
+- Initial Fedora package
diff --git a/sources b/sources
index e69de29..445caaa 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fd774129def9aa5e0f4d3de844de217e  os-net-config-0.1.1.tar.gz


More information about the scm-commits mailing list