From a3c7671b97ab0de6de9b08aac00e20c439fb631f054d092bab17a1e2fe4287d3 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 30 Sep 2024 13:01:49 +0000 Subject: [PATCH 1/3] OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libspelling?expand=0&rev=1 From 0f789b1c738ce66a927714af7fe7be8a9ac786a044ec4b0f478ea4ca63cf5dac Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 30 Sep 2024 13:03:36 +0000 Subject: [PATCH 2/3] Forward update from G:A to G:Factory - moving devel prj there - Update to version 0.4.1: + Fixes an important issue tracking weak pointers from a GtkTextBuffer. + Fixes an important issue where we could get invalid text iters from GtkTextBuffer::delete-range() after the deletion occurred when other signal handlers are in play. - Update to version 0.4.0: + This is a stable release for GNOME 47.0. + Protect the SpellingEngine from systems with misconfigured dictionaries. + Protect the SpellingTextBufferAdapter from NULL language codes. + Protect the SpellingJob from uncooperative break chars which could result in zero length runs. + Fix some incorrect licenses. - Changes from version 0.3.1: + Immediately clear tags for invalidated regions without round-tripping to the checker thread. + Bump soname for ABI changes in 0.3 + Fix licenses to be LGPLv2.1+ + Add sysprof profiler marks for performance profiling + Update example so people know to copy the button-press work to update the menu immediately. + Fix pkg-config fields + Fix libspelling usage from subproject + Make introspection building optional + Documentation improvements - Pass sysprof=false to meson configure, do not build the profiler support at this time. - Add so_ver and api_ver define, and set them to 1-2 and 1 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libspelling?expand=0&rev=2 --- libspelling-0.2.1.tar.xz | 3 -- libspelling-0.4.1.tar.xz | 3 ++ libspelling.changes | 66 ++++++++++++++++++++++++++++++++++++++++ libspelling.spec | 49 ++++++++++++++++------------- 4 files changed, 97 insertions(+), 24 deletions(-) delete mode 100644 libspelling-0.2.1.tar.xz create mode 100644 libspelling-0.4.1.tar.xz diff --git a/libspelling-0.2.1.tar.xz b/libspelling-0.2.1.tar.xz deleted file mode 100644 index df96fea..0000000 --- a/libspelling-0.2.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a787b467bd493f6baffb44138dbc4bef78aaab60efb76a7db88b243bf0f6343 -size 46136 diff --git a/libspelling-0.4.1.tar.xz b/libspelling-0.4.1.tar.xz new file mode 100644 index 0000000..adc0211 --- /dev/null +++ b/libspelling-0.4.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2285e5e6e102f8e32c7aaaed3352a76138c8e8696551e9d1bc19651a0aa5eac7 +size 62500 diff --git a/libspelling.changes b/libspelling.changes index 43cb593..9e3bd04 100644 --- a/libspelling.changes +++ b/libspelling.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Fri Sep 27 12:57:18 UTC 2024 - Dominique Leuenberger + +- Update to version 0.4.1: + + Fixes an important issue tracking weak pointers from a + GtkTextBuffer. + + Fixes an important issue where we could get invalid text iters + from GtkTextBuffer::delete-range() after the deletion occurred + when other signal handlers are in play. + +------------------------------------------------------------------- +Tue Sep 10 10:30:12 UTC 2024 - Bjørn Lie + +- Update to version 0.4.0: + + This is a stable release for GNOME 47.0. + + Protect the SpellingEngine from systems with misconfigured + dictionaries. + + Protect the SpellingTextBufferAdapter from NULL language codes. + + Protect the SpellingJob from uncooperative break chars which + could result in zero length runs. + + Fix some incorrect licenses. +- Changes from version 0.3.1: + + Immediately clear tags for invalidated regions without + round-tripping to the checker thread. + + Bump soname for ABI changes in 0.3 + + Fix licenses to be LGPLv2.1+ + + Add sysprof profiler marks for performance profiling + + Update example so people know to copy the button-press work to + update the menu immediately. + + Fix pkg-config fields + + Fix libspelling usage from subproject + + Make introspection building optional + + Documentation improvements +- Pass sysprof=false to meson configure, do not build the profiler + support at this time. +- Add so_ver and api_ver define, and set them to 1-2 and 1 + respectivly. +- Add myspell-en_US BuildRequires: Needed for tests. + +------------------------------------------------------------------- +Thu Aug 8 19:54:43 UTC 2024 - Bjørn Lie + +- Update to version 0.3.0: + + This is an unstable release for GNOME 47.beta. + + The highlight for this release is a new threaded spellchecking + engine. It performs text analysis and dictionary lookups in + bulk off the UI thread. Care is taken to catch collisions in + the face of user editing while spellchecking operations are in + flight. + + I expect a significant reduction in initial spellchecking time + after opening a document. Opening `gtktextbuffer.c` in Text + Editor was more than 8x faster. + + Currently, libspelling relies on GTK main until 4.15.5 is + released so do keep this in mind if you are a distributor. + + Some API has changed, though that is unlikely to affect any + known applications using libspelling. + + Many new unit tests are part of the testsuite + + SpellingLanguage was renamed to SpellingDictionary + + SpellingLanguageInfo was renamed to SpellingLanguage + + Various helpers were added to SpellingTextBufferAdapter so + that they can update spelling menus. Applications that update + the cursor position on clicks before showing menus may want to + force the menu updating before `menu.popup`. + + SpellingTextBufferAdapter now uses the new + GtkTextBufferCommitNotify API in GTK 4.15.5 and newer. + ------------------------------------------------------------------- Mon Mar 4 08:46:51 UTC 2024 - Dominique Leuenberger diff --git a/libspelling.spec b/libspelling.spec index 32c4383..515a2d8 100644 --- a/libspelling.spec +++ b/libspelling.spec @@ -16,13 +16,16 @@ # +%define so_ver 1-2 +%define api_ver 1 + Name: libspelling -Version: 0.2.1 +Version: 0.4.1 Release: 0 Summary: A spellcheck library for GTK 4 License: LGPL-2.1-or-later URL: https://gitlab.gnome.org/chergert/libspelling -Source: https://download.gnome.org/sources/libspelling/0.2/%{name}-%{version}.tar.xz +Source: https://download.gnome.org/sources/libspelling/0.4/%{name}-%{version}.tar.xz BuildRequires: c_compiler BuildRequires: meson @@ -31,10 +34,12 @@ BuildRequires: pkgconfig(enchant-2) BuildRequires: pkgconfig(gi-docgen) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) -BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(gtk4) >= 4.15.5 BuildRequires: pkgconfig(gtksourceview-5) BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(vapigen) +# For tests +BuildRequires: myspell-en_US %description A spellcheck library for GTK 4. @@ -42,13 +47,13 @@ This library is heavily based upon GNOME Text Editor and GNOME Builder's spellcheck implementation. However, it is licensed LGPL-2.1-or-later -%package -n libspelling1-1 +%package -n libspelling%{so_ver} Summary: Shared libraries for %{name} -%description -n libspelling1-1 +%description -n libspelling%{so_ver} Shared libraries for %{name}. -%package -n typelib-1_0-Spelling-1 +%package -n typelib-1_0-Spelling-%{api_ver} Summary: Introspection file for %{name} %description -n typelib-1_0-Spelling-1 @@ -56,8 +61,8 @@ Introspection file for %{name}. %package devel Summary: Development files for %{name} -Requires: libspelling1-1 = %{version} -Requires: typelib-1_0-Spelling-1 = %{version} +Requires: libspelling%{so_ver} = %{version} +Requires: typelib-1_0-Spelling-%{api_ver} = %{version} %description devel The %{name}-devel package contains libraries and header files for @@ -67,7 +72,9 @@ developing applications that use %{name}. %autosetup -p1 %build -%meson +%meson \ + -D sysprof=false \ + %{nil} %meson_build %install @@ -76,25 +83,25 @@ developing applications that use %{name}. %check %meson_test -%ldconfig_scriptlets -n libspelling1-1 +%ldconfig_scriptlets -n libspelling%{so_ver} -%files -n libspelling1-1 +%files -n libspelling%{so_ver} %license COPYING %doc NEWS README.md -%{_libdir}/libspelling-1.so.1* +%{_libdir}/libspelling-%{api_ver}.so.* -%files -n typelib-1_0-Spelling-1 -%{_libdir}/girepository-1.0/Spelling-1.typelib +%files -n typelib-1_0-Spelling-%{api_ver} +%{_libdir}/girepository-1.0/Spelling-%{api_ver}.typelib %files devel -%doc %{_datadir}/doc/libspelling-1/ -%{_includedir}/libspelling-1 -%{_libdir}/libspelling-1.so -%{_libdir}/pkgconfig/libspelling-1.pc -%{_datadir}/gir-1.0/Spelling-1.gir +%doc %{_datadir}/doc/libspelling-%{api_ver}/ +%{_includedir}/libspelling-%{api_ver} +%{_libdir}/libspelling-%{api_ver}.so +%{_libdir}/pkgconfig/libspelling-%{api_ver}.pc +%{_datadir}/gir-1.0/Spelling-%{api_ver}.gir %dir %{_datadir}/vala %dir %{_datadir}/vala/vapi -%{_datadir}/vala/vapi/libspelling-1.deps -%{_datadir}/vala/vapi/libspelling-1.vapi +%{_datadir}/vala/vapi/libspelling-%{api_ver}.deps +%{_datadir}/vala/vapi/libspelling-%{api_ver}.vapi %changelog From fd877878f7eb1ccb7bd284bf50327935b37f8bdd8762c426fe6fbcbeb0ff5c7b Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sat, 5 Oct 2024 09:02:50 +0000 Subject: [PATCH 3/3] New upstream release OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libspelling?expand=0&rev=3 --- _service | 18 ++++++++++++++++++ libspelling-0.4.1.tar.xz | 3 --- libspelling-0.4.2.obscpio | 3 +++ libspelling.changes | 10 ++++++++++ libspelling.obsinfo | 4 ++++ libspelling.spec | 4 ++-- 6 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 _service delete mode 100644 libspelling-0.4.1.tar.xz create mode 100644 libspelling-0.4.2.obscpio create mode 100644 libspelling.obsinfo diff --git a/_service b/_service new file mode 100644 index 0000000..6e5f718 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + git + https://gitlab.gnome.org/GNOME/libspelling.git + 0.4.2 + @PARENT_TAG@+@TAG_OFFSET@ + v?(.*)\+0 + \1 + + + + + *.tar + zst + + + diff --git a/libspelling-0.4.1.tar.xz b/libspelling-0.4.1.tar.xz deleted file mode 100644 index adc0211..0000000 --- a/libspelling-0.4.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2285e5e6e102f8e32c7aaaed3352a76138c8e8696551e9d1bc19651a0aa5eac7 -size 62500 diff --git a/libspelling-0.4.2.obscpio b/libspelling-0.4.2.obscpio new file mode 100644 index 0000000..53cc3f8 --- /dev/null +++ b/libspelling-0.4.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a03855903acdd73f5bc17ad958d6bda00d80fcaf4e259ab5c18ae611e76900df +size 418315 diff --git a/libspelling.changes b/libspelling.changes index 9e3bd04..e85f136 100644 --- a/libspelling.changes +++ b/libspelling.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Oct 4 19:02:50 UTC 2024 - Bjørn Lie + +- Update to version 0.4.2: + + Limit the number of corrections to 10 in enchant backend to + help with dictionary configurations which produce many results. + + Hide add/ignore menu items when disabled. + + Don't show word corrections when spellcheck is disabled. +- Switch to source service for tarball. + ------------------------------------------------------------------- Fri Sep 27 12:57:18 UTC 2024 - Dominique Leuenberger diff --git a/libspelling.obsinfo b/libspelling.obsinfo new file mode 100644 index 0000000..a02b83e --- /dev/null +++ b/libspelling.obsinfo @@ -0,0 +1,4 @@ +name: libspelling +version: 0.4.2 +mtime: 1728067540 +commit: 0569383a7cc2d90686d70f2cb28fb077d5a91047 diff --git a/libspelling.spec b/libspelling.spec index 515a2d8..caa8420 100644 --- a/libspelling.spec +++ b/libspelling.spec @@ -20,12 +20,12 @@ %define api_ver 1 Name: libspelling -Version: 0.4.1 +Version: 0.4.2 Release: 0 Summary: A spellcheck library for GTK 4 License: LGPL-2.1-or-later URL: https://gitlab.gnome.org/chergert/libspelling -Source: https://download.gnome.org/sources/libspelling/0.4/%{name}-%{version}.tar.xz +Source: %{name}-%{version}.tar.zst BuildRequires: c_compiler BuildRequires: meson