Tony Asleson
2014-07-09 22:11:57 UTC
This was found when doing mock builds for EL6.
Signed-off-by: Tony Asleson <***@redhat.com>
---
configure.ac | 1 +
packaging/libstoragemgmt.spec.in | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 66e1a4a..b200078 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,7 @@ dnl ==========================================================================
AM_PATH_PYTHON([2.6], [], AC_MSG_ERROR([Python interpreter 2.6 or later required]) )
AC_PYTHON_MODULE([pywbem], [Required])
AC_PYTHON_MODULE([M2Crypto], [Required])
+AC_PYTHON_MODULE([argparse], [Required])
if test "x${with_paramiko}" = "xyes"; then
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index ca745ad..2048da8 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -81,6 +81,10 @@ Summary: Python client libraries and plug-in support for %{name}
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
+%if 0%{?rhel} <= 6
+Requires: python-argparse
+BuildRequires: python-argparse
+%endif
%description python
The %{name}-python package contains python client libraries as
Signed-off-by: Tony Asleson <***@redhat.com>
---
configure.ac | 1 +
packaging/libstoragemgmt.spec.in | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 66e1a4a..b200078 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,7 @@ dnl ==========================================================================
AM_PATH_PYTHON([2.6], [], AC_MSG_ERROR([Python interpreter 2.6 or later required]) )
AC_PYTHON_MODULE([pywbem], [Required])
AC_PYTHON_MODULE([M2Crypto], [Required])
+AC_PYTHON_MODULE([argparse], [Required])
if test "x${with_paramiko}" = "xyes"; then
diff --git a/packaging/libstoragemgmt.spec.in b/packaging/libstoragemgmt.spec.in
index ca745ad..2048da8 100644
--- a/packaging/libstoragemgmt.spec.in
+++ b/packaging/libstoragemgmt.spec.in
@@ -81,6 +81,10 @@ Summary: Python client libraries and plug-in support for %{name}
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
+%if 0%{?rhel} <= 6
+Requires: python-argparse
+BuildRequires: python-argparse
+%endif
%description python
The %{name}-python package contains python client libraries as
--
1.8.2.1
1.8.2.1