From d35a95eee6f3dbd8c389cecebd485d11c3cb3bbe5f2f9a2d4bcc0cc619614836 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 7 Sep 2020 07:49:01 +0000 Subject: [PATCH] Accepting request 832584 from GNOME:Next - Enable nuspell backend where it is available (openSUSE >= 1550): + Introduce BuildRequires: nuspell-devel and libboost_headers-devel. + Split out new package enchant-2-backend-nuspell providing the nuspell backend. OBS-URL: https://build.opensuse.org/request/show/832584 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/enchant?expand=0&rev=49 --- enchant.changes | 9 +++++++++ enchant.spec | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/enchant.changes b/enchant.changes index 462697b..513ce50 100644 --- a/enchant.changes +++ b/enchant.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Aug 18 05:57:28 UTC 2020 - Atri Bhattacharya + +- Enable nuspell backend where it is available (openSUSE >= 1550): + + Introduce BuildRequires: nuspell-devel and + libboost_headers-devel. + + Split out new package enchant-2-backend-nuspell providing the + nuspell backend. + ------------------------------------------------------------------- Wed Aug 5 21:50:14 UTC 2020 - Matthias Eliasson diff --git a/enchant.spec b/enchant.spec index 42fb775..f699c50 100644 --- a/enchant.spec +++ b/enchant.spec @@ -16,6 +16,11 @@ # +%if 0%{?suse_version} >= 1550 +%bcond_without nuspell +%else +%bcond_with nuspell +%endif Name: enchant Version: 2.2.8 Release: 0 @@ -30,6 +35,10 @@ BuildRequires: gcc-c++ BuildRequires: glib2-devel BuildRequires: hunspell-devel BuildRequires: libvoikko-devel +%if %{with nuspell} +BuildRequires: libboost_headers-devel +BuildRequires: nuspell-devel +%endif %description A library providing an efficient extensible abstraction for dealing @@ -75,6 +84,16 @@ Hunspell plugin for enchant, a library providing an efficient extensible abstraction for dealing with different spell checking libraries. +%package -n enchant-2-backend-nuspell +Summary: Nuspell backend for the Enchant spell checking library +Supplements: packageand(libenchant-2-2:%(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libnuspell.so)) +Provides: enchant-2-backend + +%description -n enchant-2-backend-nuspell +Nuspell plugin for enchant, a library providing an efficient +extensible abstraction for dealing with different spell checking +libraries. + %package -n enchant-2-backend-voikko Summary: Voikko backend for the Enchant spell checking library Supplements: packageand(libenchant-2-2:%(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libvoikko.so)) @@ -142,6 +161,12 @@ find %{buildroot} -type f -name "*.la" -delete -print %dir %{_libdir}/enchant-2 %{_libdir}/enchant-2/enchant_hunspell.so +%if %{with nuspell} +%files -n enchant-2-backend-nuspell +%dir %{_libdir}/enchant-2 +%{_libdir}/enchant-2/enchant_nuspell.so +%endif + %files -n enchant-2-backend-voikko %dir %{_libdir}/enchant-2 %{_libdir}/enchant-2/enchant_voikko.so