SHA256
1
0
forked from pool/enchant

Accepting request 1067820 from GNOME:Factory

- Use %bcond_without aspell, ref ALP push for as few mandatory
  dependencies as possible/ability to turn off dependencies.

OBS-URL: https://build.opensuse.org/request/show/1067820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/enchant?expand=0&rev=42
This commit is contained in:
Dominique Leuenberger 2023-02-28 11:47:55 +00:00 committed by Git OBS Bridge
commit 6f08460b14
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 24 12:40:55 UTC 2023 - pgajdos@suse.com
- Use %bcond_without aspell, ref ALP push for as few mandatory
dependencies as possible/ability to turn off dependencies.
-------------------------------------------------------------------
Fri Jan 7 13:32:12 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package enchant
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,6 +21,8 @@
%else
%bcond_with nuspell
%endif
%bcond_without aspell
Name: enchant
Version: 2.2.15
Release: 0
@ -29,7 +31,9 @@ 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
%if %{with aspell}
BuildRequires: aspell-devel
%endif
BuildRequires: dbus-1-glib-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
@ -64,6 +68,7 @@ with different spell checking libraries.
This package provides data/configuration files for libenchant.
%if %{with aspell}
%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)))
@ -73,6 +78,7 @@ Provides: enchant-2-backend
Aspell plugin for enchant, a library providing an efficient
extensible abstraction for dealing with different spell checking
libraries.
%endif
%package -n enchant-2-backend-hunspell
Summary: Hunspell backend for the Enchant spell checking library
@ -130,8 +136,10 @@ to develop applications that require these.
%build
%configure \
--disable-static \
--with-aspell
%if %{with aspell}
--with-aspell \
%endif
--disable-static
%make_build
%install
@ -153,9 +161,11 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/*.so.*
%dir %{_libdir}/enchant-2
%if %{with aspell}
%files -n enchant-2-backend-aspell
%dir %{_libdir}/enchant-2
%{_libdir}/enchant-2/enchant_aspell.so
%endif
%files -n enchant-2-backend-hunspell
%dir %{_libdir}/enchant-2