Fix build with meson 0.61+

This commit is contained in:
Miro Hrončok 2022-06-10 13:57:44 +02:00
parent 292a915d80
commit 39fca55fe3
3 changed files with 67 additions and 2 deletions

32
6da47128e8.patch Normal file
View File

@ -0,0 +1,32 @@
From 6da47128e8da04edccccdfcbc9101940fc15fe3a Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Thu, 20 Jan 2022 14:18:09 -0500
Subject: [PATCH] meson: i18n.merge_file() does not take a positional argument
---
data/meson.build | 2 --
1 file changed, 2 deletions(-)
diff --git a/data/meson.build b/data/meson.build
index 9f244566..bfbc514c 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -2,7 +2,6 @@ desktop_conf = configuration_data()
desktop_conf.set('VERSION', glade_version)
i18n.merge_file(
- 'desktop',
type: 'desktop',
input: configure_file(
input: 'org.gnome.Glade.desktop.in.in',
@@ -18,7 +17,6 @@ i18n.merge_file(
appdata = glade_name + '.appdata.xml'
i18n.merge_file(
- 'appdata',
input: 'org.gnome.Glade.appdata.xml.in',
output: '@BASENAME@',
po_dir: po_dir,
--
GitLab

23
efdd5338b0.patch Normal file
View File

@ -0,0 +1,23 @@
From efdd5338b034a11c5d617684d92d11edc600965e Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Thu, 20 Jan 2022 14:19:03 -0500
Subject: [PATCH] Remove duplicate entry for 'da' from help/LINGUAS
---
help/LINGUAS | 1 -
1 file changed, 1 deletion(-)
diff --git a/help/LINGUAS b/help/LINGUAS
index fc3cd4c3..d67e42c8 100644
--- a/help/LINGUAS
+++ b/help/LINGUAS
@@ -1,6 +1,5 @@
# please keep this list sorted alphabetically
#
-da
bg
ca
cs
--
GitLab

View File

@ -1,6 +1,6 @@
Name: glade
Version: 3.38.2
Release: 5%{?dist}
Release: 6%{?dist}
Summary: User Interface Designer for GTK+
# - /usr/bin/glade is GPLv2+
@ -11,6 +11,12 @@ License: GPLv2+ and LGPLv2+
URL: https://glade.gnome.org/
Source0: https://download.gnome.org/sources/glade/3.38/glade-%{version}.tar.xz
# meson 0.61+: i18n.merge_file() does not take a positional argument
# Remove duplicate entry for 'da' from help/LINGUAS
# Fixes https://bugzilla.redhat.com/2082581
Patch: https://gitlab.gnome.org/GNOME/glade/-/commit/6da47128e8.patch
Patch: https://gitlab.gnome.org/GNOME/glade/-/commit/efdd5338b0.patch
BuildRequires: desktop-file-utils
BuildRequires: docbook-style-xsl
BuildRequires: gcc
@ -56,7 +62,7 @@ developing applications that use Glade widget library.
%prep
%setup -q
%autosetup -p1
%build
@ -115,6 +121,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Glade.de
%changelog
* Fri Jun 10 2022 Miro Hrončok <mhroncok@redhat.com> - 3.38.2-6
- Fix build with meson 0.61+
- Fixes: rhbz#2082581
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.38.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild