Skip to content

Commit

Permalink
Merge pull request #11507 from ceph/wip-17579
Browse files Browse the repository at this point in the history
build/ops: deb: add python dependencies where needed

Reviewed-by: Alfredo Deza <adeza@redhat.com>
  • Loading branch information
alfredodeza committed Oct 19, 2016
2 parents 73c40d1 + 26f0ebd commit bfc90da
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 13 deletions.
45 changes: 35 additions & 10 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ Description: common ceph daemon libraries and management tools

Package: ceph-mds
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Depends: ceph-base (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Recommends: ceph-fuse (= ${binary:Version}),
libcephfs1 (= ${binary:Version})
Replaces: ceph (<< 0.93-417)
Expand All @@ -144,7 +146,10 @@ Description: debugging symbols for ceph-mds

Package: ceph-mgr
Architecture: linux-any
Depends: ceph-base (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Depends: ceph-base (= ${binary:Version}),
${misc:Depends},
${python:Depends},
${shlibs:Depends}
Replaces: ceph (<< 0.93-417)
Breaks: ceph (<< 0.93-417)
Description: metadata server for the ceph distributed file system
Expand Down Expand Up @@ -289,7 +294,8 @@ Package: rbd-mirror
Architecture: linux-any
Depends: ceph-common (= ${binary:Version}),
librados2 (= ${binary:Version}),
${misc:Depends}, ${shlibs:Depends}
${misc:Depends},
${shlibs:Depends}
Description: Ceph daemon for mirroring RBD images
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
Expand All @@ -313,7 +319,8 @@ Description: debugging symbols for rbd-mirror

Package: rbd-nbd
Architecture: linux-any
Depends: ${misc:Depends}, ${shlibs:Depends}
Depends: ${misc:Depends},
${shlibs:Depends}
Description: NBD-based rbd client for the Ceph distributed file system
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
Expand Down Expand Up @@ -656,7 +663,10 @@ Description: Meta-package for python libraries for the Ceph libraries
Package: python-rados
Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${python:Depends}
Depends: librados2 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Description: Python 2 libraries for the Ceph librados library
Expand All @@ -670,7 +680,10 @@ Description: Python 2 libraries for the Ceph librados library
Package: python3-rados
Architecture: linux-any
Section: python
Depends: librados2 (= ${binary:Version}), ${misc:Depends}, ${python3:Depends}
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
storage system that runs on commodity hardware and delivers object,
Expand All @@ -682,7 +695,10 @@ Description: Python 3 libraries for the Ceph librados library
Package: python-rbd
Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}), ${misc:Depends}, ${python:Depends}
Depends: librbd1 (>= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Description: Python 2 libraries for the Ceph librbd library
Expand All @@ -696,7 +712,10 @@ Description: Python 2 libraries for the Ceph librbd library
Package: python3-rbd
Architecture: linux-any
Section: python
Depends: librbd1 (>= ${binary:Version}), ${misc:Depends}, ${python3:Depends}
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
storage system that runs on commodity hardware and delivers object,
Expand All @@ -708,7 +727,10 @@ Description: Python 3 libraries for the Ceph librbd library
Package: python-cephfs
Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}), ${misc:Depends}, ${python:Depends}
Depends: libcephfs1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
${python:Depends}
Replaces: python-ceph (<< 0.92-1223)
Breaks: python-ceph (<< 0.92-1223)
Description: Python 2 libraries for the Ceph libcephfs library
Expand All @@ -722,7 +744,10 @@ Description: Python 2 libraries for the Ceph libcephfs library
Package: python3-cephfs
Architecture: linux-any
Section: python
Depends: libcephfs1 (= ${binary:Version}), ${misc:Depends}, ${python3:Depends}
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
storage system that runs on commodity hardware and delivers object,
Expand Down
5 changes: 2 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit bfc90da

Please sign in to comment.