diff --git a/debian/control b/debian/control index 5251398..bfd5544 100644 --- a/debian/control +++ b/debian/control @@ -7,12 +7,12 @@ Build-Depends: debhelper-compat (= 13), dh-python, python3, - python3-acme-abi-1 (>= 1.21~), - python3-certbot-abi-1 (>= 1.21~), + python3-acme-abi-2 (>= 2.1~), + python3-certbot-abi-2 (>= 2.1~), python3-dnspython, python3-mock, python3-pytest, - python3-setuptools (>= 1.0), + python3-setuptools, python3-sphinx (>= 1.3.1-1~), python3-sphinx-rtd-theme, python3-zope.interface @@ -26,7 +26,7 @@ Package: python3-certbot-dns-rfc2136 Architecture: all Depends: certbot, - python3-certbot-abi-1 (>= 1.21), + python3-certbot-abi-2 (>= ${Abi-major-minor-version}), ${misc:Depends}, ${python3:Depends} Enhances: certbot diff --git a/debian/rules b/debian/rules index 05ae690..94b09a3 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,6 @@ #!/usr/bin/make -f + +include /usr/share/dpkg/pkg-info.mk export PYBUILD_NAME = certbot-dns-rfc2136 @@ -16,3 +18,8 @@ dh_installdocs --doc-main-package=python3-certbot-dns-rfc2136 \ -p python-certbot-dns-rfc2136-doc dh_installdocs -p python3-certbot-dns-rfc2136 + +override_dh_gencontrol: + echo "Abi-major-version=${DEB_VERSION_UPSTREAM}" | cut -d. -f1 >> debian/abi.substvars + echo "Abi-major-minor-version=${DEB_VERSION_UPSTREAM}" | cut -d. -f1,2 >> debian/abi.substvars + dh_gencontrol -- -Tdebian/abi.substvars