[elbe-devel] [PATCH] debian: fix building debian packages for stretch
Manuel Traut
manut at linutronix.de
Wed May 10 21:53:13 CEST 2017
python-pyme was renamed to python-gpg in stretch, but there is no
transitional package. This adds a gencontrol hook to the rules file
that uses lsb_release to check the debian release and adds the correct
package as runtime dependency for elbe-common
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
debian/control | 6 +++---
debian/rules | 9 +++++++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index 891e049b..c5e804c1 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,8 @@ Build-Depends: dh-python,
xmlto,
lintian,
source-highlight,
- git
+ git,
+ lsb-release
Standards-Version: 3.9.6
Homepage: http://elbe-rfs.org
@@ -27,12 +28,11 @@ Description: man-pages, examples and documentation
Package: elbe-common
Architecture: all
-Depends: ${misc:Depends},
+Depends: ${misc:Depends}, ${dist:Depends},
python (>= 2.7~),
python-lxml,
python-apt,
python-gpgme,
- python-pyme,
wget,
cpio
Description: common files
diff --git a/debian/rules b/debian/rules
index 25ad63e8..a9c17848 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,14 @@
#!/usr/bin/make -f
+ifeq ($(shell lsb_release -c | awk '{print $2}'),jessie)
+ GPG = -Vdist:Depends="python-pyme"
+else
+ GPG = -Vdist:Depends="python-gpg"
+endif
+
+override_dh_gencontrol:
+ dh_gencontrol -- $(GPG)
+
override_dh_auto_configure:
cd docs && $(MAKE)
--
2.11.0
More information about the elbe-devel
mailing list