]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph.spec.in: python-argparse only in Python 2.6 5216/head
authorNathan Cutler <ncutler@suse.com>
Tue, 16 Jun 2015 16:27:20 +0000 (18:27 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 16 Jul 2015 07:41:20 +0000 (09:41 +0200)
commit8b576bd529d7c1604f0a4cdf97ece64fc5d69447
treeae6aa998d87b641bdfce3300e9246bd17d52f5a0
parentdaf5450765684b0b2ed049320d7463b637321e5a
ceph.spec.in: python-argparse only in Python 2.6

argparse is a widely-used Python module for parsing command-line arguments.
Ceph makes heavy use of Python scripts, both in the build environment and on
cluster nodes and clients.

Until Python 2.6, argparse was distributed separately from Python proper.
As of 2.7 it is part of the Python standard library.

Although the python package in a given distro may or may not Provide:
python-argparse, this cannot be relied upon.

Therefore, this commit puts appropriate conditionals around Requires:
python-argparse and BuildRequires: python-argparse. It does so for Red
Hat/CentOS and SUSE only, because the last Fedora version with Python 2.6
was Fedora 13, which is EOL.

argparse is required by both the ceph and ceph-common packages, but since ceph
requires ceph-common, the argparse Requires and BuildRequires need only appear
once, under ceph-common.

http://tracker.ceph.com/issues/12034 Fixes: #12034

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 23171c952997d104cfa6b5700ec0bb658a8e0915)
ceph.spec.in