From 63c1ba52ba561afd9098b4dac598109940508ac60c80d4e32c10271147ed6555 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 6 Oct 2020 11:43:58 +0000 Subject: [PATCH] Accepting request 839777 from GNOME:Factory Revert, aspell will stay OBS-URL: https://build.opensuse.org/request/show/839777 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/enchant?expand=0&rev=52 --- enchant.changes | 6 ------ enchant.spec | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/enchant.changes b/enchant.changes index 8e4a8a4..513ce50 100644 --- a/enchant.changes +++ b/enchant.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Fri Oct 2 15:04:45 UTC 2020 - pgajdos@suse.com - -- remove aspell backand again, aspell is going to be removed from - tumbleweed - ------------------------------------------------------------------- Tue Aug 18 05:57:28 UTC 2020 - Atri Bhattacharya diff --git a/enchant.spec b/enchant.spec index ff55817..f699c50 100644 --- a/enchant.spec +++ b/enchant.spec @@ -29,6 +29,7 @@ License: LGPL-2.1-or-later URL: https://abiword.github.io/enchant/ Source: https://github.com/AbiWord/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: baselibs.conf +BuildRequires: aspell-devel BuildRequires: dbus-1-glib-devel BuildRequires: gcc-c++ BuildRequires: glib2-devel @@ -63,6 +64,16 @@ with different spell checking libraries. This package provides data/configuration files for libenchant. +%package -n enchant-2-backend-aspell +Summary: Aspell backend for the Enchant spell checking library +Supplements: packageand(libenchant-2-2:%(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libaspell.so)) +Provides: enchant-2-backend + +%description -n enchant-2-backend-aspell +Aspell plugin for enchant, a library providing an efficient +extensible abstraction for dealing with different spell checking +libraries. + %package -n enchant-2-backend-hunspell Summary: Hunspell backend for the Enchant spell checking library Supplements: packageand(libenchant-2-2:%(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libhunspell.so)) @@ -119,7 +130,8 @@ to develop applications that require these. %build %configure \ - --disable-static + --disable-static \ + --with-aspell %make_build %install @@ -141,6 +153,10 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_libdir}/*.so.* %dir %{_libdir}/enchant-2 +%files -n enchant-2-backend-aspell +%dir %{_libdir}/enchant-2 +%{_libdir}/enchant-2/enchant_aspell.so + %files -n enchant-2-backend-hunspell %dir %{_libdir}/enchant-2 %{_libdir}/enchant-2/enchant_hunspell.so