[python-saharaclient] Update to upstream 0.7.4

Michael McCune mimccune at fedoraproject.org
Wed Oct 8 18:28:33 UTC 2014


commit 2624cbc9cbdeb538a08222cec90f0c630ffbcfef
Author: Michael McCune <mimccune at redhat.com>
Date:   Wed Oct 8 13:58:14 2014 -0400

    Update to upstream 0.7.4

 .gitignore                                         |    1 +
 ...Removing-runtime-dependency-on-python-pbr.patch |   32 ++++++++++++++++++++
 0001-remove-runtime-dep-on-python-pbr.patch        |   21 -------------
 python-saharaclient.spec                           |   13 +++++--
 sources                                            |    2 +-
 5 files changed, 43 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a11efcd..312aae4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /python-saharaclient-0.7.0.tar.gz
+/python-saharaclient-0.7.4.tar.gz
diff --git a/0001-Removing-runtime-dependency-on-python-pbr.patch b/0001-Removing-runtime-dependency-on-python-pbr.patch
new file mode 100644
index 0000000..61a2a5b
--- /dev/null
+++ b/0001-Removing-runtime-dependency-on-python-pbr.patch
@@ -0,0 +1,32 @@
+From ad3b505f63d76ec0e7e6639e4c5f13ef1db5b9ec Mon Sep 17 00:00:00 2001
+From: Michael McCune <mimccune at redhat.com>
+Date: Wed, 8 Oct 2014 13:00:51 -0400
+Subject: [PATCH] Removing runtime dependency on python pbr
+
+---
+ saharaclient/version.py | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/saharaclient/version.py b/saharaclient/version.py
+index a1a76c5..8b02f86 100644
+--- a/saharaclient/version.py
++++ b/saharaclient/version.py
+@@ -13,6 +13,16 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+ 
+-from pbr import version
+ 
+-version_info = version.VersionInfo('python-saharaclient')
++class VersionInfo(object):
++    release = 'REDHAT_SAHARACLIENT_RELEASE'
++    version = 'REDHAT_SAHARACLIENT_VERSION'
++
++    def version_string(self):
++        return self.version
++
++    def release_string(self):
++        return self.release
++
++
++version_info = VersionInfo()
diff --git a/python-saharaclient.spec b/python-saharaclient.spec
index 07700f2..40f9c50 100644
--- a/python-saharaclient.spec
+++ b/python-saharaclient.spec
@@ -5,15 +5,17 @@
 %endif
 
 Name:             python-saharaclient
-Version:          0.7.0
-Release:          4%{?dist}
+Version:          0.7.4
+Release:          1%{?dist}
 Provides:         python-savannaclient = %{version}-%{release}
 Obsoletes:        python-savannaclient <= 0.5.0-2
 Summary:          Client library for OpenStack Sahara API
 License:          ASL 2.0
 URL:              https://launchpad.net/sahara
 Source0:          http://tarballs.openstack.org/python-saharaclient/python-saharaclient-%{version}.tar.gz
-Patch0001:        0001-remove-runtime-dep-on-python-pbr.patch
+
+Patch0001: 0001-Removing-runtime-dependency-on-python-pbr.patch
+
 BuildArch:        noarch
 
 BuildRequires:    python-setuptools
@@ -37,7 +39,7 @@ Python client library for interacting with OpenStack Sahara API.
 %prep
 %setup -q -n %{name}-%{version}
 
-%patch0001 -p0
+%patch0001 -p1
 
 sed -i s/REDHAT_SAHARACLIENT_VERSION/%{version}/ saharaclient/version.py
 sed -i s/REDHAT_SAHARACLIENT_RELEASE/%{release}/ saharaclient/version.py
@@ -68,6 +70,9 @@ rm -rf test-requirements.txt
 
 
 %changelog
+* Wed Oct 08 2014 Michael McCune <mimccune at redhat.com> 0.7.4-1
+- Update to upstream 0.7.4
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 5a7f3e8..78d631a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2e40b31b145123a8cea48ffeabac9b6e  python-saharaclient-0.7.0.tar.gz
+9c2102d646f4bdfded81d1d434da97d6  python-saharaclient-0.7.4.tar.gz


More information about the scm-commits mailing list