This will make it easier to stop making d/control a generated file.
Section: libs
Priority: optional
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
-Uploaders: Simon McVittie <smcv@debian.org>, Amin Bandali <bandali@ubuntu.com>, Jeremy Bícha <jbicha@ubuntu.com>, Marco Trevisan (Treviño) <marco@ubuntu.com>
+Uploaders: Simon McVittie <smcv@debian.org>, Amin Bandali <bandali@ubuntu.com>, Jeremy Bícha <jbicha@ubuntu.com>
Build-Depends: adwaita-icon-theme <!nocheck>,
at-spi2-core <!nocheck>,
dbus-daemon <!nocheck>,
${misc:Depends},
${shlibs:Depends},
libgtk-4-common (>= ${source:Version})
-Provides: gtk4-binver-4.0.0
+Provides: ${gtk:Provides}
Recommends: libgtk-4-bin,
iso-codes,
librsvg2-common (>= 2.52.0),
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends}
-Provides: gtk4-binver-4.0.0
+Provides: ${gtk:Provides}
Description: GTK graphical user interface library - minimal runtime
This is a udeb, or a microdeb, for the debian-installer.
.
${misc:Depends},
${shlibs:Depends},
@COMMON_PKG@ (>= ${source:Version})
-Provides: @GTK_BINVER_DEP@
+Provides: ${gtk:Provides}
Recommends: @BIN_PKG@,
iso-codes,
librsvg2-common (>= 2.52.0),
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends}
-Provides: @GTK_BINVER_DEP@
+Provides: ${gtk:Provides}
Description: GTK graphical user interface library - minimal runtime
This is a udeb, or a microdeb, for the debian-installer.
.
# earliest version that this release has backwards binary compatibility for
export GTK_BINARY_VERSION := 4.0.0
-# Gtk binary version virtual Provide
-export GTK_BINVER_DEP := gtk$(APIVER)-binver-$(GTK_BINARY_VERSION)
-
# relative base directory for configuration
export CONFDIR := etc/gtk-4.0
sed \
-e "s#@SONAME@#$(SONAME)#g" \
-e "s#@APIVER@#$(APIVER)#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" \
override_dh_makeshlibs:
dh_makeshlibs -p$(SHARED_PKG) -V --add-udeb=$(UDEB_PKG) -X$(MODULES_BASE_PATH) -- -c4
dh_makeshlibs --remaining-packages -X$(MODULES_BASE_PATH)
+
+override_dh_gencontrol-arch:
+ dh_gencontrol -p$(SHARED_PKG) -- \
+ -Vgtk:Provides=gtk$(APIVER)-binver-$(GTK_BINARY_VERSION)
+ifneq ($(filter %-udeb,$(built_binaries)),)
+ dh_gencontrol -p$(UDEB_PKG) -- \
+ -Vgtk:Provides=gtk$(APIVER)-binver-$(GTK_BINARY_VERSION)
+endif
+ dh_gencontrol --remaining-packages