SHA256
1
0
forked from pool/baobab

Accepting request 625575 from GNOME:Next

- Add baobab-fix-gschema-translations.patch: build: Fix gschema
  translations.

OBS-URL: https://build.opensuse.org/request/show/625575
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/baobab?expand=0&rev=92
This commit is contained in:
Dominique Leuenberger 2018-07-27 10:00:39 +00:00 committed by Git OBS Bridge
parent e756bfe369
commit a6e322317b
3 changed files with 73 additions and 1 deletions

View File

@ -0,0 +1,63 @@
From 80f7e1c144103d52a877f2d42db6a427867591f6 Mon Sep 17 00:00:00 2001
From: Ondrej Holy <oholy@redhat.com>
Date: Thu, 14 Jun 2018 15:22:15 +0200
Subject: [PATCH] build: Fix gschema translations
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
After meson port, translations are merged in gschema file, which doesn't
work:
$ LANG=en_US gsettings describe org.gnome.baobab.preferences excluded-uris
Una lista d'URI t'as particiones que cal excluir de l'anal<61>s.
Translations should not be merged in gschema files and also I don't see any
other gschema file with merged translations in /usr/share/glib-2.0/schemas/.
Let's install gschema file as is. After this change, translations works as
expected.
---
data/meson.build | 7 ++-----
....baobab.gschema.xml.in => org.gnome.baobab.gschema.xml} | 0
po/POTFILES.in | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)
rename data/{org.gnome.baobab.gschema.xml.in => org.gnome.baobab.gschema.xml} (100%)
diff --git a/data/meson.build b/data/meson.build
index 5b1ef00..98d1d69 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -22,11 +22,8 @@ appdata_file = i18n.merge_file(
install_dir: join_paths(get_option('datadir'), 'metainfo'),
)
-gschema_file = i18n.merge_file(
- input: 'org.gnome.baobab.gschema.xml.in',
- output: 'org.gnome.baobab.gschema.xml',
- po_dir: '../po',
- install: true,
+install_data (
+ 'org.gnome.baobab.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)
diff --git a/data/org.gnome.baobab.gschema.xml.in b/data/org.gnome.baobab.gschema.xml
similarity index 100%
rename from data/org.gnome.baobab.gschema.xml.in
rename to data/org.gnome.baobab.gschema.xml
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0c9452a..f3d6521 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,7 +2,7 @@
# Please keep this file sorted alphabetically.
data/org.gnome.baobab.appdata.xml.in
data/org.gnome.baobab.desktop.in
-data/org.gnome.baobab.gschema.xml.in
+data/org.gnome.baobab.gschema.xml
src/baobab-application.vala
src/baobab-cellrenderers.vala
src/baobab-location-list.ui
--
2.17.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 26 22:37:48 UTC 2018 - bjorn.lie@gmail.com
- Add baobab-fix-gschema-translations.patch: build: Fix gschema
translations.
-------------------------------------------------------------------
Thu Mar 22 13:41:31 UTC 2018 - bjorn.lie@gmail.com

View File

@ -29,6 +29,8 @@ URL: https://wiki.gnome.org/Apps/DiskUsageAnalyzer
Source0: https://download.gnome.org/sources/baobab/3.28/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM baobab-fix-linguas-build-issues.patch bgo#794381 bgo#794449 bjorn.lie@gmail.com -- Fix various linguas issues.
Patch0: baobab-fix-linguas-build-issues.patch
# PATCH-FIX-UPSTREAM baobab-fix-gschema-translations.patch -- build: Fix gschema translations
Patch1: baobab-fix-gschema-translations.patch
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig
@ -56,6 +58,7 @@ also provides a full graphical treemap window for each selected folder.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%meson
@ -70,7 +73,7 @@ also provides a full graphical treemap window for each selected folder.
%files
%license COPYING COPYING.docs
%doc AUTHORS NEWS README
%doc %{_datadir}/help/C/%{name}/
%{_datadir}/help/C/%{name}/
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/icons/hicolor/*/apps/%{name}*.*