diff -Nru nautilus-share-0.7.5.orig/debian/changelog nautilus-share-0.7.5/debian/changelog --- nautilus-share-0.7.5.orig/debian/changelog 2023-01-13 05:11:30.634726871 +0100 +++ nautilus-share-0.7.5/debian/changelog 2023-01-13 12:01:15.247882388 +0100 @@ -1,3 +1,13 @@ +nautilus-share (0.7.5-0.3) unstable; urgency=medium + + * Non-maintainer upload + * Add support for language packs when building for Ubuntu + (LP: #2002680) + * Update po/POTFILES.in due to new build system + * Bump Standards-Version to 4.6.2 + + -- Gunnar Hjalmarsson Fri, 13 Jan 2023 11:35:11 +0100 + nautilus-share (0.7.5-0.2) unstable; urgency=medium * Non-maintainer upload diff -Nru nautilus-share-0.7.5.orig/debian/control nautilus-share-0.7.5/debian/control --- nautilus-share-0.7.5.orig/debian/control 2022-09-24 18:02:03.000000000 +0200 +++ nautilus-share-0.7.5/debian/control 2023-01-13 11:34:37.761184187 +0100 @@ -3,11 +3,14 @@ Priority: optional Maintainer: Chow Loong Jin Build-Depends: debhelper-compat (= 13), +# gnome-pkg-tools pulls dh-translations on Ubuntu + gnome-pkg-tools, libgtk-4-dev (>= 4.6.0), libnautilus-extension-dev (>= 43~rc), meson -Standards-Version: 4.6.1 +Standards-Version: 4.6.2 Rules-Requires-Root: no +X-Ubuntu-Use-Langpack: yes Package: nautilus-share Architecture: any diff -Nru nautilus-share-0.7.5.orig/debian/patches/series nautilus-share-0.7.5/debian/patches/series --- nautilus-share-0.7.5.orig/debian/patches/series 2023-01-13 04:59:04.070709441 +0100 +++ nautilus-share-0.7.5/debian/patches/series 2023-01-13 11:55:54.289596581 +0100 @@ -1 +1,2 @@ Add-LINGUAS-file.patch +Update-po-POTFILES.in-due-to-new-build-system.patch diff -Nru nautilus-share-0.7.5.orig/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch nautilus-share-0.7.5/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch --- nautilus-share-0.7.5.orig/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch 1970-01-01 01:00:00.000000000 +0100 +++ nautilus-share-0.7.5/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch 2023-01-13 12:14:06.312086055 +0100 @@ -0,0 +1,18 @@ +From: Gunnar Hjalmarsson +Date: Fri, 13 Jan 2023 10:47:40 +0000 +Subject: Update po/POTFILES.in due to new build system + +Forwarded: https://gitlab.gnome.org/coreyberla/nautilus-share/-/merge_requests/4 +--- + po/POTFILES.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/po/POTFILES.in b/po/POTFILES.in +index 83b49e2..3a0e185 100644 +--- a/po/POTFILES.in ++++ b/po/POTFILES.in +@@ -1,3 +1,3 @@ + src/nautilus-share.c + src/shares.c +-[type: gettext/glade]interfaces/share-dialog.ui ++interfaces/share-dialog.ui diff -Nru nautilus-share-0.7.5.orig/debian/rules nautilus-share-0.7.5/debian/rules --- nautilus-share-0.7.5.orig/debian/rules 2022-09-24 18:02:03.000000000 +0200 +++ nautilus-share-0.7.5/debian/rules 2023-01-13 11:19:35.754933859 +0100 @@ -1,11 +1,17 @@ #!/usr/bin/make -f - export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs +DH_FLAGS = + +# Ubuntu language pack support (dh_translations) +ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes) +DH_FLAGS += --with translations +endif + override_dh_makeshlibs: # disable shlibs %: - dh $@ + dh $@ $(DH_FLAGS)