Disable nuspell support for RHEL (#1925839)

We don't have nuspell in RHEL 9.
This commit is contained in:
Kalev Lember 2021-02-08 12:03:44 +01:00
parent 81f49d0bb6
commit e55ebba837

View File

@ -1,6 +1,6 @@
Name: enchant2 Name: enchant2
Version: 2.2.15 Version: 2.2.15
Release: 3%{?snap}%{?dist} Release: 4%{?snap}%{?dist}
Summary: An Enchanting Spell Checking Library Summary: An Enchanting Spell Checking Library
License: LGPLv2+ License: LGPLv2+
@ -18,7 +18,9 @@ BuildRequires: glib2-devel
BuildRequires: aspell-devel BuildRequires: aspell-devel
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
BuildRequires: libvoikko-devel BuildRequires: libvoikko-devel
%if !0%{?rhel}
BuildRequires: nuspell-devel >= 4.1.0 BuildRequires: nuspell-devel >= 4.1.0
%endif
BuildRequires: make BuildRequires: make
Provides: bundled(gnulib) Provides: bundled(gnulib)
@ -35,6 +37,7 @@ Requires: enchant2%{?_isa} = %{version}-%{release}
%description aspell %description aspell
Libraries necessary to integrate applications using libenchant with aspell. Libraries necessary to integrate applications using libenchant with aspell.
%if !0%{?rhel}
%package nuspell %package nuspell
Summary: Integration with Nuspell for libenchant Summary: Integration with Nuspell for libenchant
Requires: enchant2%{?_isa} = %{version}-%{release} Requires: enchant2%{?_isa} = %{version}-%{release}
@ -42,6 +45,7 @@ Supplements: (enchant2 and nuspell)
%description nuspell %description nuspell
Libraries necessary to integrate applications using libenchant with Nuspell. Libraries necessary to integrate applications using libenchant with Nuspell.
%endif
%package voikko %package voikko
Summary: Integration with voikko for libenchant Summary: Integration with voikko for libenchant
@ -73,7 +77,9 @@ autoreconf -ifv
%configure \ %configure \
--with-aspell \ --with-aspell \
--with-hunspell-dir=%{_datadir}/myspell \ --with-hunspell-dir=%{_datadir}/myspell \
%if !0%{?rhel}
--with-nuspell \ --with-nuspell \
%endif
--without-hspell \ --without-hspell \
--disable-static --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g; sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
@ -103,8 +109,10 @@ find %{buildroot} -name '*.la' -delete
%files aspell %files aspell
%{_libdir}/enchant-2/enchant_aspell.so* %{_libdir}/enchant-2/enchant_aspell.so*
%if !0%{?rhel}
%files nuspell %files nuspell
%{_libdir}/enchant-2/enchant_nuspell.so* %{_libdir}/enchant-2/enchant_nuspell.so*
%endif
%files voikko %files voikko
%{_libdir}/enchant-2/enchant_voikko.so* %{_libdir}/enchant-2/enchant_voikko.so*
@ -116,6 +124,9 @@ find %{buildroot} -name '*.la' -delete
%changelog %changelog
* Mon Feb 08 2021 Kalev Lember <klember@redhat.com> - 2.2.15-4
- Disable nuspell support for RHEL (#1925839)
* Tue Feb 2 2021 Peter Oliver <rpm@mavit.org.uk> - 2.2.15-3 * Tue Feb 2 2021 Peter Oliver <rpm@mavit.org.uk> - 2.2.15-3
- Include support for Nuspell. - Include support for Nuspell.