build/ops: deb: add python dependencies where needed

this reverts 48f4576 and f140a8c

Fixes: http://tracker.ceph.com/issues/17579
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Nathan Cutler 2016-10-15 10:54:52 +02:00
parent fcdef1e9a8
commit 26f0ebd1d4
2 changed files with 9 additions and 3 deletions

7
debian/control vendored
View File

@ -148,6 +148,7 @@ Package: ceph-mgr
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}),
${misc:Depends},
${python:Depends},
${shlibs:Depends}
Replaces: ceph (<< 0.93-417)
Breaks: ceph (<< 0.93-417)
@ -664,6 +665,7 @@ Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
@ -680,6 +682,7 @@ Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph librados library
Ceph is a massively scalable, open-source, distributed
@ -694,6 +697,7 @@ Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
@ -710,6 +714,7 @@ Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph librbd library
Ceph is a massively scalable, open-source, distributed
@ -724,6 +729,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
@ -740,6 +746,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python3:Depends}
Description: Python 3 libraries for the Ceph libcephfs library
Ceph is a massively scalable, open-source, distributed

5
debian/rules vendored
View File

@ -139,9 +139,7 @@ override_dh_strip:
dh_strip -pceph-test --dbg-package=ceph-test-dbg
override_dh_shlibdeps:
dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor \
--exclude=python-rados --exclude=python-cephfs --exclude=python-rbd \
--exclude=python3-rados --exclude=python3-cephfs --exclude=python3-rbd \
dh_shlibdeps -a --exclude=erasure-code --exclude=rados-classes --exclude=compressor
override_dh_python2:
for binding in rados cephfs rbd; do \
@ -150,6 +148,7 @@ override_dh_python2:
dh_python2 -p ceph-common
dh_python2 -p ceph-base
dh_python2 -p ceph-osd
dh_python2 -p ceph-mgr
override_dh_python3:
for binding in rados cephfs rbd; do \