]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: provide python2-<modname>
authorKefu Chai <kchai@redhat.com>
Thu, 10 Oct 2019 02:11:27 +0000 (10:11 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 10 Oct 2019 02:35:59 +0000 (10:35 +0800)
to be consistent with other python2 packages, and their python3
counterparts

the `python_provide` macro is offered by `python-rpm-macros` package,
which is in turn required by python*-devel

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index 2fbed39a1bd43cc71dbf25d13d82bb31f50ab96d..85bc855cb00af537a4fd21e72100498429db23aa 100644 (file)
@@ -777,6 +777,7 @@ Group:              Development/Libraries/Python
 %endif
 Requires:      librgw2 = %{_epoch_prefix}%{version}-%{release}
 Requires:      python-rados = %{_epoch_prefix}%{version}-%{release}
+%{?python_provide:%python_provide python-rgw}
 Obsoletes:     python-ceph < %{_epoch_prefix}%{version}-%{release}
 %description -n python-rgw
 This package contains Python 2 libraries for interacting with Cephs RADOS
@@ -806,6 +807,7 @@ Summary:    Python 2 libraries for the RADOS object store
 Group:         Development/Libraries/Python
 %endif
 Requires:      librados2 = %{_epoch_prefix}%{version}-%{release}
+%{?python_provide:%python_provide python-rados}
 Obsoletes:     python-ceph < %{_epoch_prefix}%{version}-%{release}
 %description -n python-rados
 This package contains Python 2 libraries for interacting with Cephs RADOS
@@ -897,6 +899,7 @@ Group:              Development/Libraries/Python
 %endif
 Requires:      librbd1 = %{_epoch_prefix}%{version}-%{release}
 Requires:      python-rados = %{_epoch_prefix}%{version}-%{release}
+%{?python_provide:%python_provide python-rbd}
 Obsoletes:     python-ceph < %{_epoch_prefix}%{version}-%{release}
 %description -n python-rbd
 This package contains Python 2 libraries for interacting with Cephs RADOS
@@ -958,6 +961,7 @@ Group:              Development/Libraries/Python
 Requires:      libcephfs2 = %{_epoch_prefix}%{version}-%{release}
 Requires:      python-rados = %{_epoch_prefix}%{version}-%{release}
 Requires:      python-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
+%{?python_provide:%python_provide python-cephfs}
 Obsoletes:     python-ceph < %{_epoch_prefix}%{version}-%{release}
 %description -n python-cephfs
 This package contains Python 2 libraries for interacting with Cephs distributed
@@ -987,6 +991,7 @@ Summary:    Python 2 utility libraries for Ceph CLI
 %if 0%{?suse_version}
 Group:         Development/Libraries/Python
 %endif
+%{?python_provide:%python_provide python-ceph-argparse}
 %description -n python-ceph-argparse
 This package contains types and routines for Python 2 used by the Ceph CLI as
 well as the RESTful interface. These have to do with querying the daemons for
@@ -1012,6 +1017,7 @@ Summary:  Python 2 utility libraries for Ceph
 %if 0%{?suse_version}
 Group:         Development/Libraries/Python
 %endif
+%{?python_provide:%python_provide python-ceph-common}
 %description -n python-ceph-common
 This package contains data structures, classes and functions used by Ceph.
 It also contains utilities used for the SSH orchestrator.