Accepting request 951403 from GNOME:Apps

Mesonfix and tiny tweak (forwarded request 950790 from iznogood)

OBS-URL: https://build.opensuse.org/request/show/951403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gtranslator?expand=0&rev=44
This commit is contained in:
Dominique Leuenberger 2022-02-04 20:49:02 +00:00 committed by Git OBS Bridge
commit d63461d12a
3 changed files with 50 additions and 5 deletions

View File

@ -0,0 +1,36 @@
From 7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22 Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 2 17:08:41 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
- 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 <gmbr3@opensuse.org>

View File

@ -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