Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tilix for openSUSE:Factory checked in at 2021-02-25 18:29:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tilix (Old) and /work/SRC/openSUSE:Factory/.tilix.new.2378 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tilix" Thu Feb 25 18:29:07 2021 rev:22 rq:874934 version:1.9.4 Changes: -------- --- /work/SRC/openSUSE:Factory/tilix/tilix.changes 2021-02-15 23:17:52.999537669 +0100 +++ /work/SRC/openSUSE:Factory/.tilix.new.2378/tilix.changes 2021-02-25 18:29:12.242249332 +0100 @@ -1,0 +2,8 @@ +Tue Feb 23 19:35:29 UTC 2021 - Antoine Belvire <[email protected]> + +- Generate and install localized man pages: + * Add tilix-1.9.4-localized-man.patch + * Add po4a as build requirement +- Run test in check section. + +------------------------------------------------------------------- New: ---- tilix-1.9.4-localized-man.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tilix.spec ++++++ --- /var/tmp/diff_new_pack.kZz0FL/_old 2021-02-25 18:29:14.810251000 +0100 +++ /var/tmp/diff_new_pack.kZz0FL/_new 2021-02-25 18:29:14.814251002 +0100 @@ -27,6 +27,8 @@ Source0: https://github.com/gnunn1/tilix/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-OPENSUSE gnome-ssh-agent.patch gh#gnunn1/tilix#870 Patch0: gnome-ssh-agent.patch +# PATCH-FIX-UPSTREAM tilix-1.9.4-localized-man.patch -- https://github.com/gnunn1/tilix/pull/2006 +Patch1: tilix-1.9.4-localized-man.patch BuildRequires: AppStream BuildRequires: appstream-glib BuildRequires: desktop-file-utils @@ -34,6 +36,7 @@ BuildRequires: ldc-phobos-devel BuildRequires: meson BuildRequires: pkgconfig +BuildRequires: po4a BuildRequires: update-desktop-files BuildRequires: pkgconfig(dconf) BuildRequires: pkgconfig(gio-2.0) @@ -84,7 +87,16 @@ %install %meson_install -%find_lang %{name} %{?no_lang_C} +%find_lang %{name} %{?no_lang_C} --with-man + +# Some localized man directories are not provided by filesystem package yet +for locale in en_GB hr nb_NO oc pt_PT ro sr tr zh_Hant; do + echo "%%dir %{_mandir}/${locale}" >> %{name}.lang + echo "%%dir %{_mandir}/${locale}/man1" >> %{name}.lang +done + +%check +%meson_test %files %license LICENSE* ++++++ tilix-1.9.4-localized-man.patch ++++++ >From eac94ef9b00ab09db6c31ad112ecff07d8fa3ee1 Mon Sep 17 00:00:00 2001 From: Antoine Belvire <[email protected]> Date: Wed, 24 Feb 2021 18:32:23 +0100 Subject: [PATCH] Add meson target for man page translations Add a new meson custom which allows to generate and install man page translations using `meson build` and `meson install` when po4a is available. This is a naive conversion of install-man-pages.sh. --- data/man/meson.build | 26 +++++++++++++++++++++++++- data/meson.build | 4 +--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/data/man/meson.build b/data/man/meson.build index 1681e5cb..e4462128 100644 --- a/data/man/meson.build +++ b/data/man/meson.build @@ -1 +1,25 @@ -install_man('tilix') \ No newline at end of file +install_man('tilix.1') + +po4a = find_program('po4a-translate', required: false) + +if po4a.found() + + locales = [ 'ca', 'cs', 'de', 'en_GB', 'es', 'fr', 'hr', + 'it', 'nb_NO', 'nl', 'oc', 'pl', 'pt_BR', 'pt', + 'pt_PT', 'ro', 'ru', 'sr', 'tr', 'uk', 'zh_Hant' ] + + foreach locale : locales + custom_target('man_' + locale, + output: locale, + input: [ 'tilix.1', 'po/' + locale + '.man.po' ], + command: [ po4a, '--keep', '0', + '--format', 'man', + '--master', '@INPUT0@', + '--po', '@INPUT1@', + '--localized', '@OUTPUT@/man1/tilix.1'], + install: true, + install_dir: get_option('mandir') + ) + endforeach + +endif diff --git a/data/meson.build b/data/meson.build index 81e9b410..4a8d1710 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,3 +1,4 @@ +subdir('man') # install the icons install_data( @@ -20,9 +21,6 @@ desktop_file = i18n.merge_file( install_dir: appdir ) -# Install manual page -install_man(['man/tilix.1']) - # Validate desktop file desktop_file_validate = find_program('desktop-file-validate', required: false) if desktop_file_validate.found() -- 2.30.1
