From a4ba35e1d8535b169b1545a186f7936feb7a85a441f58f94473eb44125fc2ad7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= <bjorn.lie@gmail.com>
Date: Wed, 2 Feb 2022 15:09:03 +0000
Subject: [PATCH] Accepting request 950682 from
 home:iznogood:branches:GNOME:Factory

- Add 9a168cc23962ce9fa106dc8a40407d381a3db403.patch: Fix build
  with meson 0.61.0 and newer.

OBS-URL: https://build.opensuse.org/request/show/950682
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-terminal?expand=0&rev=248
---
 ...8cc23962ce9fa106dc8a40407d381a3db403.patch | 47 +++++++++++++++++++
 gnome-terminal.changes                        |  6 +++
 gnome-terminal.spec                           |  8 ++--
 3 files changed, 58 insertions(+), 3 deletions(-)
 create mode 100644 9a168cc23962ce9fa106dc8a40407d381a3db403.patch

diff --git a/9a168cc23962ce9fa106dc8a40407d381a3db403.patch b/9a168cc23962ce9fa106dc8a40407d381a3db403.patch
new file mode 100644
index 0000000..8f0e21f
--- /dev/null
+++ b/9a168cc23962ce9fa106dc8a40407d381a3db403.patch
@@ -0,0 +1,47 @@
+From 9a168cc23962ce9fa106dc8a40407d381a3db403 Mon Sep 17 00:00:00 2001
+From: Christian Persch <chpe@src.gnome.org>
+Date: Fri, 14 Jan 2022 11:33:32 +0100
+Subject: [PATCH] build: Fix for newer meson
+
+---
+ data/meson.build | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/data/meson.build b/data/meson.build
+index 79d97e5b..e0bcbb91 100644
+--- a/data/meson.build
++++ b/data/meson.build
+@@ -18,7 +18,6 @@
+ metainfodir = gt_datadir / 'metainfo'
+ 
+ i18n.merge_file(
+-  gt_dns_name + '.metainfo.xml',
+   input: gt_dns_name + '.metainfo.xml.in',
+   output: '@BASENAME@',
+   po_dir: po_dir,
+@@ -27,7 +26,6 @@ i18n.merge_file(
+ )
+ 
+ i18n.merge_file(
+-  gt_dns_name + '.Nautilus.metainfo.xml',
+   input: gt_dns_name + '.Nautilus.metainfo.xml.in',
+   output: '@BASENAME@',
+   po_dir: po_dir,
+@@ -40,7 +38,6 @@ i18n.merge_file(
+ desktopdatadir = gt_datadir / 'applications'
+ 
+ i18n.merge_file(
+-  gt_dns_name + '.desktop',
+   input: gt_dns_name + '.desktop.in',
+   output: '@BASENAME@',
+   type: 'desktop',
+@@ -57,4 +54,4 @@ meson.add_install_script(
+ 
+ # Subdirs
+ 
+-subdir('icons')
+\ No newline at end of file
++subdir('icons')
+-- 
+GitLab
+
diff --git a/gnome-terminal.changes b/gnome-terminal.changes
index 2f020be..c1a0253 100644
--- a/gnome-terminal.changes
+++ b/gnome-terminal.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Feb  2 07:16:22 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
+
+- Add 9a168cc23962ce9fa106dc8a40407d381a3db403.patch: Fix build
+  with meson 0.61.0 and newer.
+
 -------------------------------------------------------------------
 Sat Dec  4 17:36:20 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
 
diff --git a/gnome-terminal.spec b/gnome-terminal.spec
index 367e95b..0734c65 100644
--- a/gnome-terminal.spec
+++ b/gnome-terminal.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package gnome-terminal
 #
-# Copyright (c) 2021 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
@@ -24,13 +24,15 @@ License:        GPL-3.0-or-later AND LGPL-2.1-or-later
 Group:          System/X11/Terminals
 URL:            https://wiki.gnome.org/Apps/Terminal
 Source0:        https://download.gnome.org/sources/gnome-terminal/3.42/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM 9a168cc23962ce9fa106dc8a40407d381a3db403.patch -- Fix build with meson 0.61.0 and newer
+Patch0:         https://gitlab.gnome.org/GNOME/gnome-terminal/-/commit/9a168cc23962ce9fa106dc8a40407d381a3db403.patch
 
+BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  fdupes
+BuildRequires:  gcc-c++
 # Needed for search provider. It should not be needed in my opinion,
 # we have to take this up with upstream, or just provide search
 # provider interface definition file as source.
-BuildRequires:  docbook-xsl-stylesheets
-BuildRequires:  gcc-c++
 BuildRequires:  gnome-shell
 BuildRequires:  meson
 BuildRequires:  pkgconfig