]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: enable dh_python3 for python3 packages
authorKefu Chai <kchai@redhat.com>
Fri, 19 Aug 2016 02:31:40 +0000 (10:31 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 19 Aug 2016 02:31:43 +0000 (10:31 +0800)
so we can use subvars like ${python3:Depends} in debian/control.
this silences the warnings like:
```
warning: dpkg-gencontrol: Depends field of package python3-cephfs:
unknown substitution variable ${python3:Depends}
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/rules

index 766ece9baa68727ae840dacd3163cd08d83e7a9f..b2120e6bdb4a1fedf7af7d2769d0ad8efb020631 100755 (executable)
@@ -19,7 +19,7 @@ ifeq ($(DEB_HOST_ARCH), armel)
 endif
 
 %:
-       dh $@ --buildsystem=cmake --with javahelper,python2,systemd --parallel
+       dh $@ --buildsystem=cmake --with javahelper,python2,python3,systemd --parallel
 
 override_dh_auto_configure:
        dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS)
@@ -141,6 +141,12 @@ override_dh_python2:
        dh_python2 -p ceph-base
        dh_python2 -p ceph-osd
 
+override_dh_python3:
+       for binding in rados cephfs rbd; do                                \
+         dh_python3 -p python-$$binding; \
+       done
+       dh_python3 -p python3-ceph-argparse
+
 # do not run tests
 override_dh_auto_test: