Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package parlatype for openSUSE:Factory 
checked in at 2021-11-04 16:09:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/parlatype (Old)
 and      /work/SRC/openSUSE:Factory/.parlatype.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "parlatype"

Thu Nov  4 16:09:34 2021 rev:5 rq:929150 version:3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/parlatype/parlatype.changes      2020-06-22 
17:46:22.545935446 +0200
+++ /work/SRC/openSUSE:Factory/.parlatype.new.1890/parlatype.changes    
2021-11-04 16:10:28.973078837 +0100
@@ -1,0 +2,41 @@
+Thu Nov  4 09:58:54 UTC 2021 - Dominique Leuenberger <[email protected]>
+
+- Move translated help to -lang package.
+  + Using the find_lang macros, properly tag the translations and
+    avoid conflicts with system base directories.
+
+-------------------------------------------------------------------
+Wed Nov  3 19:32:04 UTC 2021 - Michael Vetter <[email protected]>
+
+- Add parlatype-asr.patch:
+  Don't install asr files if built without asr
+  See https://github.com/gkarsay/parlatype/issues/88
+
+-------------------------------------------------------------------
+Wed Nov  3 10:06:45 UTC 2021 - Michael Vetter <[email protected]>
+
+- Update to 3.0:
+  * New: ASR plugin for Mozilla DeepSpeech (needs DeepSpeech at compile time)
+  * New: Removed possibility to output ASR results to random applications using
+         assistive technologies and removed internal textpad. ASR results are
+         emitted through D-Bus only and applications like Parlatype LibreOffice
+         Extension can listen to them. Removed (now unnecessary option)
+         --with-asr.
+  * New: Rewritten ASR preferences page with Configs per model.
+  * New: Internal GStreamer plugins are now private to the lib, which should
+         eliminate all errors related to GStreamer registry.
+  * New: Flatpak builds Mozilla DeepSpeech 0.9.
+  * New: New App Icon by Tobias Bernard
+  * New: Many preparations for GTK 4, maintenance work, modularizing and
+         refactoring code, increased test coverage, fixed memory leaks.
+  * New: Main development branch is now called "main".
+  * New: Version string includes git commit if applicable
+  * Fix: Don't mirror waveform in RTL layouts, they expect it to be like in 
LTR.
+  * Changed dependencies:
+    - Removed atspi-2
+    - Added iso-codes
+    - Raised glib-2.0 to 2.58
+    - Added optional deepspeech
+  * Updated translations
+
+-------------------------------------------------------------------

Old:
----
  parlatype-2.1.tar.gz

New:
----
  parlatype-3.0.tar.gz
  parlatype-asr.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ parlatype.spec ++++++
--- /var/tmp/diff_new_pack.0cgrPq/_old  2021-11-04 16:10:29.417079096 +0100
+++ /var/tmp/diff_new_pack.0cgrPq/_new  2021-11-04 16:10:29.421079099 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package parlatype
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,23 @@
 #
 
 
-%define c_lib   libparlatype3
+%define c_lib   libparlatype5
 Name:           parlatype
-Version:        2.1
+Version:        3.0
 Release:        0
 Summary:        GNOME audio player for transcriptions
 License:        GPL-3.0-or-later
 Group:          Productivity/Multimedia/Sound/Utilities
 URL:            https://gkarsay.github.io/parlatype/
 Source:         
https://github.com/gkarsay/parlatype/releases/download/v%{version}/parlatype-%{version}.tar.gz
+Patch0:         parlatype-asr.patch
 BuildRequires:  AppStream-devel
 BuildRequires:  automake
+BuildRequires:  glib2-devel >= 2.58
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  gtk3-devel
 BuildRequires:  intltool
+BuildRequires:  iso-codes-devel
 BuildRequires:  libtool
 BuildRequires:  meson >= 0.47.2
 BuildRequires:  pkgconfig
@@ -64,16 +67,18 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-%meson -Dasr=false
+%meson -Ddeepspeech=false -Dpocketsphinx=false
 %meson_build
 
 %install
 %meson_install
 
 %find_lang %{name}
-%find_lang libparlatype3
+%find_lang org.parlatype.Parlatype %{no_lang_C} %{name}.lang
+%find_lang libparlatype5
 
 %post -n %{c_lib} -p /sbin/ldconfig
 %postun -n %{c_lib} -p /sbin/ldconfig
@@ -83,7 +88,7 @@
 %doc NEWS README.md
 %{_bindir}/parlatype
 %{_mandir}/man1/parlatype.1%{?ext_man}
-%{_datadir}/help/
+%{_datadir}/help/C/org.parlatype.Parlatype/
 %{_datadir}/icons/hicolor/
 %{_datadir}/applications/org.parlatype.Parlatype.desktop
 %{_datadir}/dbus-1/services/org.parlatype.Parlatype.service
@@ -100,6 +105,6 @@
 
 %files lang -f %{name}.lang
 
-%files lang -f libparlatype3.lang
+%files lang -f libparlatype5.lang
 
 %changelog

++++++ parlatype-2.1.tar.gz -> parlatype-3.0.tar.gz ++++++
++++ 58958 lines of diff (skipped)

++++++ parlatype-asr.patch ++++++
>From 9c07002d60d8e6a38889af4c7d704b555e22620f Mon Sep 17 00:00:00 2001
From: Gabor Karsay <[email protected]>
Date: Wed, 3 Nov 2021 19:54:59 +0100
Subject: [PATCH] Adapt to builds without ASR

Builds with pocketsphinx=false and deepspeech=false should not install
ASR files.

Install less help screenshots: ASR help pages were already skipped and
help screenshots not shown, so don't install them in the first place.

Don't show the ASR tab in the Preferenes dialog because it gives the
wrong impression that ASR is available.

Fix #88
---
 data/meson.build     | 12 +++++++-----
 help/meson.build     | 12 +++++++-----
 meson.build          |  2 ++
 src/pt-preferences.c |  7 ++++---
 4 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/data/meson.build b/data/meson.build
index 86d345b..12e3c6c 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,9 +1,11 @@
 subdir('icons')
 
-install_subdir(
-       'asr',
-       install_dir: join_paths(datadir, meson.project_name())
-)
+if with_asr
+       install_subdir(
+               'asr',
+               install_dir: join_paths(datadir, meson.project_name())
+       )
+endif
 
 desktop_file = app_id + '.desktop'
 i18n.merge_file(
@@ -57,4 +59,4 @@ configure_file(
        install_dir: join_paths(datadir, 'dbus-1', 'services')
 )
 
-meson.add_install_script('meson_post_install.py')
\ No newline at end of file
+meson.add_install_script('meson_post_install.py')
diff --git a/help/meson.build b/help/meson.build
index 197bd2c..c5ee62a 100644
--- a/help/meson.build
+++ b/help/meson.build
@@ -1,8 +1,4 @@
 media = [
-       'figures/asr-setup-initial.png',
-       'figures/asr-setup-downloadable.png',
-       'figures/asr-setup-details.png',
-       'figures/asr-switch-to-asr.png',
        'figures/parlatype-icon.png',
        'figures/parlatype-prefs-asr.png',
        'figures/parlatype-prefs-controls.png',
@@ -31,7 +27,13 @@ sources = [
        'timestamps.page',
 ]
 
-if with_pocketsphinx or with_deepspeech
+if with_asr
+       media += [
+               'figures/asr-setup-initial.png',
+               'figures/asr-setup-downloadable.png',
+               'figures/asr-setup-details.png',
+               'figures/asr-switch-to-asr.png',
+       ]
        sources += [
                'asr.page',
                'asr-setup.page',
diff --git a/meson.build b/meson.build
index 24f1a08..1a0c4b1 100644
--- a/meson.build
+++ b/meson.build
@@ -18,6 +18,7 @@ endif
 
 with_pocketsphinx = get_option('pocketsphinx')
 with_deepspeech   = get_option('deepspeech')
+with_asr = with_pocketsphinx or with_deepspeech
 
 prefix     = get_option('prefix')
 bindir     = join_paths(prefix, get_option('bindir'))
@@ -36,6 +37,7 @@ conf.set_quoted('PACKAGE_NAME', meson.project_name())
 conf.set_quoted('PACKAGE_URL', 'https://www.parlatype.org')
 conf.set_quoted('APP_ID', app_id)
 conf.set_quoted('ASR_DIR', join_paths(datadir, meson.project_name(), 'asr'))
+conf.set('HAVE_ASR', with_asr)
 conf_input = configure_file(output: 'config.h.in', configuration: conf)
 conf_inc = include_directories('.', 'libparlatype/src')
 
diff --git a/src/pt-preferences.c b/src/pt-preferences.c
index f4bc399..f7b7402 100644
--- a/src/pt-preferences.c
+++ b/src/pt-preferences.c
@@ -179,9 +179,6 @@ setup_non_wayland_env (PtPreferencesDialog *dlg)
 static void
 pt_preferences_dialog_init (PtPreferencesDialog *dlg)
 {
-       GtkWidget *asr_page;
-       GtkWidget *asr_label;
-
        dlg->priv = pt_preferences_dialog_get_instance_private (dlg);
        dlg->priv->editor = g_settings_new (APP_ID);
        dlg->priv->player = pt_player_new ();
@@ -301,10 +298,14 @@ pt_preferences_dialog_init (PtPreferencesDialog *dlg)
        g_free (delimiter);
        g_free (sep);
 
+#ifdef HAVE_ASR
+       GtkWidget *asr_page;
+       GtkWidget *asr_label;
        asr_page  = pt_prefs_asr_new (dlg->priv->editor, dlg->priv->player);
        asr_label = gtk_label_new (_("Speech recognition"));
        gtk_notebook_insert_page (GTK_NOTEBOOK (dlg->priv->notebook),
                                  asr_page, asr_label, 3);
+#endif
 }
 
 static void

Reply via email to