From: Simon McVittie Date: Thu, 2 Nov 2023 14:22:54 +0000 (+0000) Subject: Substitute GTK_BINVER_DEP as a substvar rather than using sed X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~50 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=385cee5c5932cede241e88d4d3b0833b060b034f;p=gtk%2B3.0.git Substitute GTK_BINVER_DEP as a substvar rather than using sed This will make it easier to stop making d/control a generated file. --- diff --git a/debian/control b/debian/control index 03d8206fa3..f13181a3f9 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: gtk+3.0 Section: libs Priority: optional Maintainer: Debian GNOME Maintainers -Uploaders: Simon McVittie , Jeremy Bícha +Uploaders: Simon McVittie , Dmitry Shachnev , Jeremy Bícha Build-Depends: adwaita-icon-theme-full , at-spi2-core , dbus-daemon , @@ -74,7 +74,7 @@ Depends: adwaita-icon-theme, ${misc:Depends}, ${shlibs:Depends}, libgtk-3-common (>= ${source:Version}) -Provides: gtk3-binver-3.0.0 +Provides: ${gtk:BinVer} Recommends: libgtk-3-bin, librsvg2-common Suggests: gvfs, @@ -93,7 +93,7 @@ Section: debian-installer Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: gtk3-binver-3.0.0 +Provides: ${gtk:BinVer} Description: GTK graphical user interface library - minimal runtime This is a udeb, or a microdeb, for the debian-installer. . diff --git a/debian/control.in b/debian/control.in index f653f88087..91f2c66228 100644 --- a/debian/control.in +++ b/debian/control.in @@ -74,7 +74,7 @@ Depends: adwaita-icon-theme, ${misc:Depends}, ${shlibs:Depends}, @COMMON_PKG@ (>= ${source:Version}) -Provides: @GTK_BINVER_DEP@ +Provides: ${gtk:BinVer} Recommends: @BIN_PKG@, librsvg2-common Suggests: gvfs, @@ -93,7 +93,7 @@ Section: debian-installer Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} -Provides: @GTK_BINVER_DEP@ +Provides: ${gtk:BinVer} Description: GTK graphical user interface library - minimal runtime This is a udeb, or a microdeb, for the debian-installer. . diff --git a/debian/rules b/debian/rules index bed31c1a84..6a86a4d2e7 100755 --- a/debian/rules +++ b/debian/rules @@ -67,7 +67,6 @@ debian/%: debian/%.in -e "s#@SONAME@#$(SONAME)#g" \ -e "s#@APIVER@#$(APIVER)#g" \ -e "s#@VERSION@#$(DEB_VERSION_UPSTREAM)#g" \ - -e "s#@GTK_BINVER_DEP@#$(GTK_BINVER_DEP)#g" \ -e "s#@SHARED_PKG@#$(SHARED_PKG)#g" \ -e "s#@COMMON_PKG@#$(COMMON_PKG)#g" \ -e "s#@DEV_PKG@#$(DEV_PKG)#g" \ @@ -273,11 +272,11 @@ override_dh_makeshlibs: dh_makeshlibs -plibgail-3-0 -- -c4 dh_makeshlibs --remaining-packages -X$(MODULES_BASE_PATH) +dpkg_gencontrol_args = -Vgtk:BinVer=$(GTK_BINVER_DEP) # libcloudproviders is in Ubuntu "universe" -override_dh_gencontrol: ifneq ($(shell dpkg-vendor --query vendor),Ubuntu) - dh_gencontrol -- \ - -VcloudProvider:Depends='libcloudproviders-dev (>= 0.3.2)' -else - dh_gencontrol +dpkg_gencontrol_args += -VcloudProvider:Depends='libcloudproviders-dev (>= 0.3.2)' endif + +override_dh_gencontrol: + dh_gencontrol -- $(dpkg_gencontrol_args)