diff -Nru nautilus-share-0.7.5/debian/changelog nautilus-share-0.7.5/debian/changelog --- nautilus-share-0.7.5/debian/changelog 2022-09-24 16:02:03.000000000 +0000 +++ nautilus-share-0.7.5/debian/changelog 2023-01-13 12:57:38.000000000 +0000 @@ -1,3 +1,22 @@ +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 + - patch forwarded upstream + * Bump Standards-Version to 4.6.2 + + -- Gunnar Hjalmarsson Fri, 13 Jan 2023 13:57:38 +0100 + +nautilus-share (0.7.5-0.2) unstable; urgency=medium + + * Non-maintainer upload + * Add po/LINGUAS file (patch from upstream) + - So also the translations are installed + + -- Gunnar Hjalmarsson Fri, 13 Jan 2023 05:11:23 +0100 + nautilus-share (0.7.5-0.1) unstable; urgency=high * Non-maintainer upload diff -Nru nautilus-share-0.7.5/debian/control nautilus-share-0.7.5/debian/control --- nautilus-share-0.7.5/debian/control 2022-09-24 16:02:03.000000000 +0000 +++ nautilus-share-0.7.5/debian/control 2023-01-13 10:34:37.000000000 +0000 @@ -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/debian/patches/Add-LINGUAS-file.patch nautilus-share-0.7.5/debian/patches/Add-LINGUAS-file.patch --- nautilus-share-0.7.5/debian/patches/Add-LINGUAS-file.patch 1970-01-01 00:00:00.000000000 +0000 +++ nautilus-share-0.7.5/debian/patches/Add-LINGUAS-file.patch 2023-01-13 03:58:03.000000000 +0000 @@ -0,0 +1,73 @@ +From: Corey Berla +Date: Sat, 1 Oct 2022 20:05:50 -0700 +Subject: Add LINGUAS file + +Fixes: https://gitlab.gnome.org/coreyberla/nautilus-share/-/issues/2 +Origin: https://gitlab.gnome.org/coreyberla/nautilus-share/-/commit/abf29e42 +--- + po/LINGUAS | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 56 insertions(+) + create mode 100644 po/LINGUAS + +diff --git a/po/LINGUAS b/po/LINGUAS +new file mode 100644 +index 0000000..25dd9cf +--- /dev/null ++++ b/po/LINGUAS +@@ -0,0 +1,56 @@ ++# please keep this list sorted alphabetically ++# ++ar ++as ++ast ++bn_IN ++bs ++ca ++ca@valencia ++cs ++da ++de ++dz ++el ++en_GB ++eo ++es ++et ++eu ++fi ++fr ++gl ++gu ++he ++hr ++hu ++id ++it ++ja ++kn ++ko ++lt ++lv ++ml ++mr ++nb ++oc ++or ++pa ++pl ++pt ++pt_BR ++ro ++ru ++sk ++sl ++sr ++sr@latin ++sv ++ta ++te ++uk ++vi ++zh_CN ++zh_HK ++zh_TW diff -Nru nautilus-share-0.7.5/debian/patches/series nautilus-share-0.7.5/debian/patches/series --- nautilus-share-0.7.5/debian/patches/series 2022-09-24 16:02:03.000000000 +0000 +++ nautilus-share-0.7.5/debian/patches/series 2023-01-13 10:55:54.000000000 +0000 @@ -0,0 +1,2 @@ +Add-LINGUAS-file.patch +Update-po-POTFILES.in-due-to-new-build-system.patch diff -Nru nautilus-share-0.7.5/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/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch 1970-01-01 00:00:00.000000000 +0000 +++ nautilus-share-0.7.5/debian/patches/Update-po-POTFILES.in-due-to-new-build-system.patch 2023-01-13 11:14:06.000000000 +0000 @@ -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/debian/rules nautilus-share-0.7.5/debian/rules --- nautilus-share-0.7.5/debian/rules 2022-09-24 16:02:03.000000000 +0000 +++ nautilus-share-0.7.5/debian/rules 2023-01-13 10:19:35.000000000 +0000 @@ -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)