Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 83d343923794c5e6e20bf5aa5099276e3a68ac11
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 11:25:05 2013 +0200
on el6 add python-argparse to BR
addressing:
+ /usr/bin/python coprcli-setup.py install --root
/builddir/build/BUILDROOT/copr-1.1-1.git.18.4da891b.el6.x86_64
Traceback (most recent call last):
File "coprcli-setup.py", line 12, in <module>
from copr_cli.main import __description__, __version__
File "/builddir/build/BUILD/copr-git-18.4da891b/copr_cli/main.py", line 3,
in <module>
import argparse
ImportError: No module named argparse
---------------------------------------------------------------
copr.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index c94c416..e1d7363 100644
--- a/copr.spec
+++ b/copr.spec
@@ -14,6 +14,9 @@ BuildRequires: libxslt
BuildRequires: util-linux
BuildRequires: python-setuptools
BuildRequires: python-requests
+%if 0%{?rhel} < 7 && 0%{?rhel} > 0
+BuildRequires: python-argparse
+%endif
%description
COPR is lightway Koji. It allows you to create new project in WebUI, and