From 4759c0bad6cf561c3bc24b24d458778cb6a3829466a4cfd3ed321a566a928a23 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 16 Oct 2024 07:27:39 +0000 Subject: [PATCH] New stable rel OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libspelling?expand=0&rev=5 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 18 +++++++ libspelling-0.4.2.obscpio | 3 ++ libspelling-0.4.3.obscpio | 3 ++ libspelling.changes | 109 ++++++++++++++++++++++++++++++++++++++ libspelling.obsinfo | 4 ++ libspelling.spec | 107 +++++++++++++++++++++++++++++++++++++ 8 files changed, 268 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 libspelling-0.4.2.obscpio create mode 100644 libspelling-0.4.3.obscpio create mode 100644 libspelling.changes create mode 100644 libspelling.obsinfo create mode 100644 libspelling.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..109dfdb --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + git + https://gitlab.gnome.org/GNOME/libspelling.git + 0.4.3 + @PARENT_TAG@+@TAG_OFFSET@ + v?(.*)\+0 + \1 + + + + + *.tar + zst + + + 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-0.4.3.obscpio b/libspelling-0.4.3.obscpio new file mode 100644 index 0000000..32dd0eb --- /dev/null +++ b/libspelling-0.4.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7d4a21ea1e3918d80f914ace5f19607a5b118581d14d63d825b8d4e9f1679f0 +size 419851 diff --git a/libspelling.changes b/libspelling.changes new file mode 100644 index 0000000..a14f675 --- /dev/null +++ b/libspelling.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Wed Oct 16 06:03:32 UTC 2024 - Bjørn Lie + +- Update to version 0.4.3: + + Fix build to disable assertions in release builds + + Fix an off-by-one in assertion + + Add i18n for translations of menu entries + + Ignore empty strings when building job list + +------------------------------------------------------------------- +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 + +- 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 + +- Update to version 0.2.1: + + Fix licenses to all be LGPLv2.1+. + + Fix handling of cursor-moved signal. +- Drop 6d26ffd30c78b7f255b1665fac3fb88960ea01ba.patch: fixed + upstream. + +------------------------------------------------------------------- +Tue Nov 7 08:54:59 UTC 2023 - Dominique Leuenberger + +- Fix build with RPM 4.19: unnumbered patches are no longer + supported. + +------------------------------------------------------------------- +Thu Oct 5 06:51:58 UTC 2023 - Bjørn Lie + +- Add check section, run meson_test macro during build. + +------------------------------------------------------------------- +Sun Sep 17 07:34:45 UTC 2023 - Bjørn Lie + +- Initial packaging for openSUSE. diff --git a/libspelling.obsinfo b/libspelling.obsinfo new file mode 100644 index 0000000..dde9395 --- /dev/null +++ b/libspelling.obsinfo @@ -0,0 +1,4 @@ +name: libspelling +version: 0.4.3 +mtime: 1729051783 +commit: d873853d5308d1adcd5b2d7a0a1adcc01510271a diff --git a/libspelling.spec b/libspelling.spec new file mode 100644 index 0000000..010d377 --- /dev/null +++ b/libspelling.spec @@ -0,0 +1,107 @@ +# +# spec file for package libspelling +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define so_ver 1-2 +%define api_ver 1 + +Name: libspelling +Version: 0.4.3 +Release: 0 +Summary: A spellcheck library for GTK 4 +License: LGPL-2.1-or-later +URL: https://gitlab.gnome.org/chergert/libspelling +Source: %{name}-%{version}.tar.zst + +BuildRequires: c_compiler +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(enchant-2) +BuildRequires: pkgconfig(gi-docgen) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +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. +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 libspelling%{so_ver} +Summary: Shared libraries for %{name} + +%description -n libspelling%{so_ver} +Shared libraries for %{name}. + +%package -n typelib-1_0-Spelling-%{api_ver} +Summary: Introspection file for %{name} + +%description -n typelib-1_0-Spelling-1 +Introspection file for %{name}. + +%package devel +Summary: Development files for %{name} +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 +developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +%meson \ + -D sysprof=false \ + %{nil} +%meson_build + +%install +%meson_install + +%check +%meson_test + +%ldconfig_scriptlets -n libspelling%{so_ver} + +%files -n libspelling%{so_ver} +%license COPYING +%doc NEWS README.md +%{_libdir}/libspelling-%{api_ver}.so.* + +%files -n typelib-1_0-Spelling-%{api_ver} +%{_libdir}/girepository-1.0/Spelling-%{api_ver}.typelib + +%files devel +%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-%{api_ver}.deps +%{_datadir}/vala/vapi/libspelling-%{api_ver}.vapi + +%changelog