From: Kefu Chai Date: Sat, 14 Jul 2018 03:18:42 +0000 (+0800) Subject: rpm: Revert "build/ops: rpm: python3-ceph-argparse only if Python 2 available" X-Git-Tag: v14.0.1~745^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d8099b73e4059c76126f5904c6e64af26b5fa5d;p=ceph.git rpm: Revert "build/ops: rpm: python3-ceph-argparse only if Python 2 available" This reverts commit c0b7aab381c7232eb81eb023c7fe5242ef6517a1. python3-ceph-argparse is required by ceph_volume_client.py. hence we do need it as a dependency of python3-cephfs. Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index 870afdbfea1..1b66c5a453a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -748,7 +748,6 @@ Requires: python%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{relea This package contains Python 3 libraries for interacting with Cephs distributed file system. -%if 0%{with python2} %package -n python%{python3_pkgversion}-ceph-argparse Summary: Python 3 utility libraries for Ceph CLI %if 0%{?suse_version} @@ -759,7 +758,6 @@ This package contains types and routines for Python 3 used by the Ceph CLI as well as the RESTful interface. These have to do with querying the daemons for command-description information, validating user command input against those descriptions, and submitting the command to the appropriate daemon. -%endif %if 0%{with ceph_test_package} %package -n ceph-test @@ -1202,15 +1200,8 @@ fi %config %{_sysconfdir}/bash_completion.d/radosgw-admin %config(noreplace) %{_sysconfdir}/ceph/rbdmap %{_unitdir}/rbdmap.service -%if 0%{with python2} %{python_sitelib}/ceph_argparse.py* %{python_sitelib}/ceph_daemon.py* -%else -%{python3_sitelib}/ceph_argparse.py -%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py* -%{python3_sitelib}/ceph_daemon.py -%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py* -%endif %dir %{_udevrulesdir} %{_udevrulesdir}/50-rbd.rules %attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/ @@ -1735,13 +1726,11 @@ fi %{python3_sitelib}/ceph_volume_client.py %{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py* -%if 0%{with python2} %files -n python%{python3_pkgversion}-ceph-argparse %{python3_sitelib}/ceph_argparse.py %{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py* %{python3_sitelib}/ceph_daemon.py %{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py* -%endif %if 0%{with ceph_test_package} %files -n ceph-test