From 03e0636eff57c0bc1d4fc368af29f7a647d11a62d9e67c7359ede32ed7b56f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 3 Feb 2022 21:52:48 +0000 Subject: [PATCH] Accepting request 950772 from GNOME:Next Mesonfix and tweak OBS-URL: https://build.opensuse.org/request/show/950772 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-mahjongg?expand=0&rev=58 --- 26.patch | 37 +++++++++++++++++++++++++++++++++++++ gnome-mahjongg.changes | 6 ++++++ gnome-mahjongg.spec | 6 ++++-- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 26.patch diff --git a/26.patch b/26.patch new file mode 100644 index 0000000..1fb5e58 --- /dev/null +++ b/26.patch @@ -0,0 +1,37 @@ +From 7604f8c8311f1088293596e639fefafdbeb73235 Mon Sep 17 00:00:00 2001 +From: Jan Beich +Date: Mon, 24 Jan 2022 11:22:48 +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:24:0: ERROR: Function does not take positional arguments. +data/meson.build:45:0: ERROR: Function does not take positional arguments. +--- + data/meson.build | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/data/meson.build b/data/meson.build +index 8325c1b..063e839 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -22,7 +22,6 @@ install_data ('smooth.png', install_dir: join_paths (pkgdatadir, 'themes')) + install_data ('edu_kang_xi.png', install_dir: join_paths (pkgdatadir, 'themes')) + + desktop_file = i18n.merge_file ( +- 'desktop-file', + input: 'org.gnome.Mahjongg.desktop.in', + output: 'org.gnome.Mahjongg.desktop', + install: true, +@@ -42,7 +41,7 @@ if desktop_file_validate.found() + ) + endif + +-appdata_file = i18n.merge_file ('appdata-file', ++appdata_file = i18n.merge_file ( + input: 'org.gnome.Mahjongg.appdata.xml.in', + output: 'org.gnome.Mahjongg.appdata.xml', + install: true, +-- +GitLab + diff --git a/gnome-mahjongg.changes b/gnome-mahjongg.changes index f905a43..84dd973 100644 --- a/gnome-mahjongg.changes +++ b/gnome-mahjongg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 2 15:43:11 UTC 2022 - Bjørn Lie + +- Add 26.patch: Fix build with meson 0.60 and newer. +- No longer mark enduser help files as doc. + ------------------------------------------------------------------- Mon Nov 2 11:48:02 UTC 2020 - Bjørn Lie diff --git a/gnome-mahjongg.spec b/gnome-mahjongg.spec index a08a823..350713d 100644 --- a/gnome-mahjongg.spec +++ b/gnome-mahjongg.spec @@ -1,7 +1,7 @@ # # spec file for package gnome-mahjongg # -# 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 @@ -24,6 +24,8 @@ License: GPL-2.0-or-later Group: Amusements/Games/Board/Puzzle URL: https://live.gnome.org/GnomeMahongg Source0: https://download.gnome.org/sources/gnome-mahjongg/3.38/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM 26.patch -- Fix build with meson 0.60 and newer +Patch0: https://gitlab.gnome.org/GNOME/gnome-mahjongg/-/merge_requests/26.patch BuildRequires: fdupes BuildRequires: hicolor-icon-theme @@ -63,12 +65,12 @@ corresponding tiles and taking them out of play. %files %license COPYING %doc NEWS -%doc %{_datadir}/help/C/%{name}/ %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/metainfo/org.gnome.Mahjongg.appdata.xml %{_datadir}/applications/org.gnome.Mahjongg.desktop %{_datadir}/glib-2.0/schemas/org.gnome.Mahjongg.gschema.xml +%{_datadir}/help/C/%{name}/ %{_datadir}/icons/hicolor/*/apps/org.gnome.Mahjongg* %{_mandir}/man6/%{name}.6%{?ext_man}