]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: provide python2-<modname> 30981/head
authorKefu Chai <kchai@redhat.com>
Thu, 10 Oct 2019 02:11:27 +0000 (10:11 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 18 Oct 2019 04:10:36 +0000 (12:10 +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>
(cherry picked from commit fb6290b1fab0bd8a73043f2d68210c010e2fb425)

ceph.spec.in

index a2f75623bb5f4b0d533728800eea16df304c9b0d..f8bb35610ea68b82a7e9d9bdcb5763189c29b992 100644 (file)
@@ -499,6 +499,7 @@ Group:              Development/Languages/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
@@ -522,6 +523,7 @@ Summary:    Python 2 libraries for the RADOS object store
 Group:         Development/Languages/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
@@ -603,6 +605,7 @@ Group:              Development/Languages/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
@@ -657,6 +660,7 @@ Group:              Development/Languages/Python
 %endif
 Requires:      libcephfs2 = %{_epoch_prefix}%{version}-%{release}
 Requires:      python-rados = %{_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