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:
commit
6f08460b14
@ -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>
|
Fri Jan 7 13:32:12 UTC 2022 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
16
enchant.spec
16
enchant.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package enchant
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,6 +21,8 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with nuspell
|
%bcond_with nuspell
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without aspell
|
||||||
|
|
||||||
Name: enchant
|
Name: enchant
|
||||||
Version: 2.2.15
|
Version: 2.2.15
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -29,7 +31,9 @@ License: LGPL-2.1-or-later
|
|||||||
URL: https://abiword.github.io/enchant/
|
URL: https://abiword.github.io/enchant/
|
||||||
Source: https://github.com/AbiWord/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/AbiWord/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
%if %{with aspell}
|
||||||
BuildRequires: aspell-devel
|
BuildRequires: aspell-devel
|
||||||
|
%endif
|
||||||
BuildRequires: dbus-1-glib-devel
|
BuildRequires: dbus-1-glib-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
@ -64,6 +68,7 @@ with different spell checking libraries.
|
|||||||
|
|
||||||
This package provides data/configuration files for libenchant.
|
This package provides data/configuration files for libenchant.
|
||||||
|
|
||||||
|
%if %{with aspell}
|
||||||
%package -n enchant-2-backend-aspell
|
%package -n enchant-2-backend-aspell
|
||||||
Summary: Aspell backend for the Enchant spell checking library
|
Summary: Aspell backend for the Enchant spell checking library
|
||||||
Supplements: packageand(libenchant-2-2:%(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libaspell.so)))
|
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
|
Aspell plugin for enchant, a library providing an efficient
|
||||||
extensible abstraction for dealing with different spell checking
|
extensible abstraction for dealing with different spell checking
|
||||||
libraries.
|
libraries.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n enchant-2-backend-hunspell
|
%package -n enchant-2-backend-hunspell
|
||||||
Summary: Hunspell backend for the Enchant spell checking library
|
Summary: Hunspell backend for the Enchant spell checking library
|
||||||
@ -130,8 +136,10 @@ to develop applications that require these.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
%if %{with aspell}
|
||||||
--with-aspell
|
--with-aspell \
|
||||||
|
%endif
|
||||||
|
--disable-static
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -153,9 +161,11 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%dir %{_libdir}/enchant-2
|
%dir %{_libdir}/enchant-2
|
||||||
|
|
||||||
|
%if %{with aspell}
|
||||||
%files -n enchant-2-backend-aspell
|
%files -n enchant-2-backend-aspell
|
||||||
%dir %{_libdir}/enchant-2
|
%dir %{_libdir}/enchant-2
|
||||||
%{_libdir}/enchant-2/enchant_aspell.so
|
%{_libdir}/enchant-2/enchant_aspell.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n enchant-2-backend-hunspell
|
%files -n enchant-2-backend-hunspell
|
||||||
%dir %{_libdir}/enchant-2
|
%dir %{_libdir}/enchant-2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user