From: Zhang Qiang Date: Fri, 22 Feb 2013 23:46:24 +0000 (-0500) Subject: required python-argparse for python 2.6 to support CentOS X-Git-Tag: 0.14~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=147e459c8294b0fa34c934cc2b4ea02ace2c7815;p=tools%2Fgbs.git required python-argparse for python 2.6 to support CentOS Change-Id: Ie84a3324797766b2a35f35b578d8d540e211f2bc --- diff --git a/distfiles/gbs.spec b/distfiles/gbs.spec index d9a9a78..f495e14 100644 --- a/distfiles/gbs.spec +++ b/distfiles/gbs.spec @@ -1,4 +1,5 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_version: %define python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")} Name: gbs Summary: The command line tools for Tizen package developers Version: 0.13 @@ -8,7 +9,7 @@ License: GPLv2 BuildArch: noarch URL: http://www.tizen.org Source0: %{name}_%{version}.tar.gz -Requires: python >= 2.7 +Requires: python >= 2.6 Requires: python-pycurl Requires: git-core Requires: sudo @@ -16,6 +17,9 @@ Requires: osc >= 0.136.0 Requires: tizen-gbp-rpm >= 20130123 Requires: depanneur >= 0.4 Requires: pristine-tar +%if "%{?python_version}" < "2.7" +Requires: python-argparse +%endif %if 0%{?suse_version} >= 1210 || 0%{?fedora} >= 18 Recommends: librpm-tizen >= 4.10.91.tizen20121215 %else