[python-openstackclient] Fix version info
Jakub Ruzicka
jruzicka at fedoraproject.org
Tue Apr 8 15:49:43 UTC 2014
commit 3f3ed8e67a7fdb3712b91db4979d9e4b12596a37
Author: Jakub Ruzicka <jruzicka at redhat.com>
Date: Tue Apr 8 17:42:58 2014 +0200
Fix version info
python-openstackclient.spec | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/python-openstackclient.spec b/python-openstackclient.spec
index f6b919e..2c6780c 100644
--- a/python-openstackclient.spec
+++ b/python-openstackclient.spec
@@ -1,6 +1,6 @@
Name: python-openstackclient
Version: 0.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: OpenStack Command-line Client
Group: Development/Languages
@@ -58,12 +58,15 @@ This package contains auto-generated documentation.
%patch0001 -p1
-# Remove bundled egg-info
-rm -rf python_openstackclient.egg-info
+# We provide version like this in order to remove runtime dep on pbr
+sed -i s/REDHATOPENSTACKCLIENTVERSION/%{version}/ openstackclient/__init__.py
# We handle requirements ourselves, pkg_resources only bring pain
rm -rf requirements.txt test-requirements.txt
+# Remove bundled egg-info
+rm -rf python_openstackclient.egg-info
+
%build
%{__python2} setup.py build
@@ -93,6 +96,9 @@ rm -fr html/.doctrees html/.buildinfo
%doc html
%changelog
+* Tue Apr 08 2014 Jakub Ruzicka <jruzicka at redhat.com> 0.3.1-2
+- Fix version info
+
* Tue Apr 08 2014 Jakub Ruzicka <jruzicka at redhat.com> 0.3.1-1
- Update to upstream 0.3.1
- Remove runtime dependency on python-pbr
More information about the scm-commits
mailing list