]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec: add pybind rgwfile 11847/head
authorHaomai Wang <haomai@xsky.com>
Wed, 9 Nov 2016 10:49:48 +0000 (18:49 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 9 Nov 2016 10:49:48 +0000 (18:49 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
ceph.spec.in

index c79d67ff98e6555ff01cf6562ae2018603e699b9..8d57610ce25ae6a7092100da6baf020644d65ee4 100644 (file)
@@ -251,6 +251,7 @@ Requires:   libcephfs2 = %{epoch}:%{version}-%{release}
 Requires:      python-rados = %{epoch}:%{version}-%{release}
 Requires:      python-rbd = %{epoch}:%{version}-%{release}
 Requires:      python-cephfs = %{epoch}:%{version}-%{release}
+Requires:      python-rgw = %{epoch}:%{version}-%{release}
 Requires:      python-requests
 %{?systemd_requires}
 %if 0%{?suse_version}
@@ -426,6 +427,27 @@ Obsoletes: librgw2-devel < %{epoch}:%{version}-%{release}
 This package contains libraries and headers needed to develop programs
 that use RADOS gateway client library.
 
+%package -n python-rgw
+Summary:       Python 2 libraries for the RADOS gateway
+Group:         System Environment/Libraries
+License:       LGPL-2.0
+Requires:      librgw2 = %{epoch}:%{version}-%{release}
+Requires:      python-rados = %{epoch}:%{version}-%{release}
+Obsoletes:     python-ceph < %{epoch}:%{version}-%{release}
+%description -n python-rgw
+This package contains Python 2 libraries for interacting with Cephs RADOS
+gateway.
+
+%package -n python%{python3_pkgversion}-rgw
+Summary:       Python 3 libraries for the RADOS gateway
+Group:         System Environment/Libraries
+License:       LGPL-2.0
+Requires:      librgw2 = %{epoch}:%{version}-%{release}
+Requires:      python%{python3_pkgversion}-rados = %{epoch}:%{version}-%{release}
+%description -n python%{python3_pkgversion}-rgw
+This package contains Python 3 libraries for interacting with Cephs RADOS
+gateway.
+
 %package -n python-rados
 Summary:       Python 2 libraries for the RADOS object store
 Group:         System Environment/Libraries
@@ -648,12 +670,13 @@ Obsoletes:        python-ceph
 Requires:      python-rados = %{epoch}:%{version}-%{release}
 Requires:      python-rbd = %{epoch}:%{version}-%{release}
 Requires:      python-cephfs = %{epoch}:%{version}-%{release}
+Requires:      python-rgw = %{epoch}:%{version}-%{release}
 Provides:      python-ceph
 %description -n python-ceph-compat
 This is a compatibility package to accommodate python-ceph split into
-python-rados, python-rbd and python-cephfs. Packages still depending on
-python-ceph should be fixed to depend on python-rados, python-rbd or
-python-cephfs instead.
+python-rados, python-rbd, python-rgw and python-cephfs. Packages still
+depending on python-ceph should be fixed to depend on python-rados,
+python-rbd, python-rgw or python-cephfs instead.
 
 #################################################################################
 # common
@@ -1418,6 +1441,16 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
 %{_includedir}/rados/rgw_file.h
 %{_libdir}/librgw.so
 
+%files -n python-rgw
+%defattr(-,root,root,-)
+%{python_sitearch}/rgw.so
+%{python_sitearch}/rgw-*.egg-info
+
+%files -n python%{python3_pkgversion}-rgw
+%defattr(-,root,root,-)
+%{python3_sitearch}/rgw.cpython*.so
+%{python3_sitearch}/rgw-*.egg-info
+
 %files -n python-rbd
 %defattr(-,root,root,-)
 %{python_sitearch}/rbd.so