From f81b796ad12bd41618c1e3ff98716c5fdaed30bb39af7fd1121bedbf4e6515ab Mon Sep 17 00:00:00 2001 From: Luciano Santos Date: Thu, 3 Feb 2022 21:20:21 +0000 Subject: [PATCH] Accepting request 950790 from GNOME:Next Mesonfix and tiny tweak OBS-URL: https://build.opensuse.org/request/show/950790 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gtranslator?expand=0&rev=79 --- ...72cc8c8c37ca3826ecf0d395edd3c38e8e22.patch | 36 +++++++++++++++++++ gtranslator.changes | 8 +++++ gtranslator.spec | 11 +++--- 3 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch diff --git a/7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch b/7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch new file mode 100644 index 0000000..f55aecc --- /dev/null +++ b/7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch @@ -0,0 +1,36 @@ +From 7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22 Mon Sep 17 00:00:00 2001 +From: Jan Beich +Date: Mon, 24 Jan 2022 11:57:43 +0000 +Subject: [PATCH] meson: drop unused argument for i18n.merge_file() + +Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0. + +data/meson.build:15:0: ERROR: Function does not take positional arguments. +data/meson.build:37:0: ERROR: Function does not take positional arguments. +--- + data/meson.build | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/data/meson.build b/data/meson.build +index 2ca0be0b..2ebbfb12 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -13,7 +13,6 @@ desktop_in = configure_file( + ) + + i18n.merge_file( +- desktop, + type: 'desktop', + input: desktop_in, + output: '@0@.desktop'.format(gtr_app_id), +@@ -35,7 +34,6 @@ appdata_in = configure_file( + ) + + i18n.merge_file( +- appdata, + input: appdata_in, + output: appdata, + po_dir: po_dir, +-- +GitLab + diff --git a/gtranslator.changes b/gtranslator.changes index 478244e..1da8543 100644 --- a/gtranslator.changes +++ b/gtranslator.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 2 17:08:41 UTC 2022 - Bjørn Lie + +- Add 7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch: Fix build + with meson 0.61 and newer. +- Drop update-desktop-files BuildRequires and macro, no longer + needed. + ------------------------------------------------------------------- Mon Apr 5 11:50:38 UTC 2021 - Callum Farmer diff --git a/gtranslator.spec b/gtranslator.spec index d9b04eb..c0e8d0f 100644 --- a/gtranslator.spec +++ b/gtranslator.spec @@ -1,7 +1,7 @@ # # spec file for package gtranslator # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,13 +27,15 @@ Source0: https://download.gnome.org/sources/gtranslator/40/%{name}-%{vers Source99: gtranslator-rpmlintrc # PATCH-FIX-UPSTREAM libgda-6.patch gmbr3@opensuse.org -- Require and support GDA 6 Patch0: libgda-6.patch +# PATCH-FIX-UPSTREAM 7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch -- Fix build with meson 0.61 and newer +Patch1: https://gitlab.gnome.org/GNOME/gtranslator/-/commit/7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch + BuildRequires: fdupes BuildRequires: gettext-tools BuildRequires: intltool BuildRequires: itstool BuildRequires: meson >= 0.46.0 BuildRequires: pkgconfig -BuildRequires: update-desktop-files BuildRequires: yelp-tools BuildRequires: pkgconfig(gio-2.0) >= 2.36.0 BuildRequires: pkgconfig(glib-2.0) >= 2.36.0 @@ -46,9 +48,9 @@ BuildRequires: pkgconfig(iso-codes) BuildRequires: pkgconfig(json-glib-1.0) >= 1.2.0 BuildRequires: pkgconfig(libdazzle-1.0) >= 3.33.90 BuildRequires: pkgconfig(libgda-6.0) >= 6.0.0 +BuildRequires: pkgconfig(libhandy-1) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libxml-2.0) >= 2.4.12 -BuildRequires: pkgconfig(libhandy-1) Requires: gsettings-desktop-schemas Requires: iso-codes Requires: libgda-sqlite >= 6.0.0 @@ -79,9 +81,8 @@ This package contains documentation for %{name}. %install %meson_install find %{buildroot} -type f -name "gtr-marshal.h" -delete -print -%suse_update_desktop_file -r org.gnome.Gtranslator GNOME GTK Development Translation %find_lang %{name} -%fdupes %{buildroot}/%{_prefix} +%fdupes %{buildroot}%{_prefix} %files %license COPYING