diff --git a/debian/control b/debian/control index 9c3c729c..322bd568 100644 --- a/debian/control +++ b/debian/control @@ -27,6 +27,7 @@ Build-Depends: debhelper (>= 9.0.0), Package: guh Architecture: any Section: metapackages +Multi-Arch: same Depends: guhd (= ${binary:Version}), guh-plugins (= ${binary:Version}), ${misc:Depends} @@ -44,6 +45,7 @@ Description: An open source IoT server - meta package Package: guhd Architecture: any Section: net +Multi-Arch: same Depends: libqt5network5, libqt5gui5, libqt5sql5, @@ -74,6 +76,7 @@ Package: guh-dbg Priority: extra Architecture: any Section: debug +Multi-Arch: same Depends: guh (= ${binary:Version}), ${misc:Depends} Description: An open source IoT server - debug symbols @@ -119,6 +122,7 @@ Description: Translation files for guhd and plugins - translations Package: guh-tests Section: misc Architecture: any +Multi-Arch: same Depends: guh (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} @@ -135,6 +139,7 @@ Description: Tests and mock plugin for the guh daemon - tests Package: libguh1 Section: libs Architecture: any +Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends}, libqt5bluetooth5, @@ -153,6 +158,7 @@ Description: An open source IoT server - core library Package: libguh1-dev Section: libdevel Architecture: any +Multi-Arch: same Depends: libguh1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, @@ -176,6 +182,7 @@ Description: An open source IoT server - development files Package: guh-plugins Section: libs Architecture: any +Multi-Arch: same Depends: libguh1 (= ${binary:Version}), guhd (= ${binary:Version}), nmap, @@ -195,6 +202,7 @@ Description:Plugins for guh IoT server Package: guh-plugins-merkur Section: libs Architecture: any +Multi-Arch: same Depends: libguh1 (= ${binary:Version}), guhd (= ${binary:Version}), ${shlibs:Depends}, @@ -212,6 +220,7 @@ Description: Plugins for guh IoT server - 6LoWPAN Merkur boards Package: guh-plugins-maker Section: libs Architecture: any +Multi-Arch: same Depends: libguh1 (= ${binary:Version}), guhd (= ${binary:Version}), ${shlibs:Depends}, diff --git a/debian/rules b/debian/rules index 59489b85..e9b57384 100755 --- a/debian/rules +++ b/debian/rules @@ -14,10 +14,14 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -PREPROCESS_FILES := $(wildcard debian/*.in) -$(PREPROCESS_FILES:.in=): %: %.in - sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@ + +debian/%.dirs: debian/%.dirs.in + sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ + + +debian/%.install: debian/%.install.in + sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ override_dh_auto_build: