]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: provide python2-<modname> 30983/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:18:16 +0000 (12:18 +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 7f39749e2bec6b9779977c1ebb2d5a9afe233edd..0ac4604a5b7196217abfbf56f3b36b32fd996e2f 100644 (file)
@@ -709,6 +709,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
@@ -738,6 +739,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
@@ -829,6 +831,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
@@ -891,6 +894,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