59c0ca
Name:          enchant2
59c0ca
Version:       2.2.15
59c0ca
Release:       6%{?snap}%{?dist}
59c0ca
Summary:       An Enchanting Spell Checking Library
59c0ca
59c0ca
License:       LGPLv2+
59c0ca
URL:           https://github.com/AbiWord/enchant
59c0ca
Source0:       https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
59c0ca
59c0ca
# Look for aspell using pkg-config, instead of AC_CHECK_LIB which adds -laspell
59c0ca
# to the global LIBS and over-links libenchant (#1574893)
59c0ca
Patch0:        enchant_aspell.patch
59c0ca
59c0ca
BuildRequires: automake autoconf libtool
59c0ca
59c0ca
BuildRequires: gcc-c++
59c0ca
BuildRequires: glib2-devel
59c0ca
BuildRequires: aspell-devel
59c0ca
BuildRequires: hunspell-devel
59c0ca
BuildRequires: libvoikko-devel
59c0ca
%if !0%{?rhel}
59c0ca
BuildRequires: nuspell-devel >= 4.1.0
59c0ca
%endif
59c0ca
BuildRequires: make
59c0ca
59c0ca
Provides:      bundled(gnulib)
59c0ca
59c0ca
59c0ca
%description
59c0ca
A library that wraps other spell checking backends.
59c0ca
59c0ca
59c0ca
%package aspell
59c0ca
Summary:       Integration with aspell for libenchant
59c0ca
Requires:      enchant2%{?_isa} = %{version}-%{release}
59c0ca
59c0ca
%description aspell
59c0ca
Libraries necessary to integrate applications using libenchant with aspell.
59c0ca
59c0ca
%if !0%{?rhel}
59c0ca
%package nuspell
59c0ca
Summary:       Integration with Nuspell for libenchant
59c0ca
Requires:      enchant2%{?_isa} = %{version}-%{release}
59c0ca
Supplements:   (enchant2 and nuspell)
59c0ca
59c0ca
%description nuspell
59c0ca
Libraries necessary to integrate applications using libenchant with Nuspell.
59c0ca
%endif
59c0ca
59c0ca
%package voikko
59c0ca
Summary:       Integration with voikko for libenchant
59c0ca
Requires:      enchant2%{?_isa} = %{version}-%{release}
59c0ca
Supplements:   (enchant2 and langpacks-fi)
59c0ca
59c0ca
%description voikko
59c0ca
Libraries necessary to integrate applications using libenchant with voikko.
59c0ca
59c0ca
59c0ca
%package devel
59c0ca
Summary:       Development files for %{name}
59c0ca
Requires:      enchant2%{?_isa} = %{version}-%{release}
59c0ca
Requires:      glib2-devel
59c0ca
59c0ca
%description devel
59c0ca
The %{name}-devel package contains libraries and header files for
59c0ca
developing applications that use %{name}.
59c0ca
59c0ca
59c0ca
%prep
59c0ca
%autosetup -p1 -n enchant-%{version}
59c0ca
59c0ca
# Needed for Patch0
59c0ca
autoreconf -ifv
59c0ca
59c0ca
59c0ca
%build
59c0ca
%configure \
59c0ca
    --with-aspell \
59c0ca
    --with-hunspell-dir=%{_datadir}/myspell \
59c0ca
%if !0%{?rhel}
59c0ca
    --with-nuspell \
59c0ca
%endif
59c0ca
    --without-hspell \
59c0ca
    --disable-static
59c0ca
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
59c0ca
        s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
59c0ca
%make_build pkgdatadir=%{_datadir}/enchant-2
59c0ca
59c0ca
59c0ca
%install
59c0ca
%make_install pkgdatadir=%{_datadir}/enchant-2
59c0ca
find %{buildroot} -name '*.la' -delete
59c0ca
59c0ca
59c0ca
%ldconfig_scriptlets
59c0ca
59c0ca
59c0ca
%files
59c0ca
%doc AUTHORS NEWS README
59c0ca
%license COPYING.LIB
59c0ca
%{_bindir}/enchant-2
59c0ca
%{_bindir}/enchant-lsmod-2
59c0ca
%{_libdir}/libenchant-2.so.*
59c0ca
%dir %{_libdir}/enchant-2
59c0ca
%{_libdir}/enchant-2/enchant_hunspell.so
59c0ca
%{_mandir}/man1/*
59c0ca
%{_datadir}/enchant-2
59c0ca
59c0ca
%files aspell
59c0ca
%{_libdir}/enchant-2/enchant_aspell.so*
59c0ca
59c0ca
%if !0%{?rhel}
59c0ca
%files nuspell
59c0ca
%{_libdir}/enchant-2/enchant_nuspell.so*
59c0ca
%endif
59c0ca
59c0ca
%files voikko
59c0ca
%{_libdir}/enchant-2/enchant_voikko.so*
59c0ca
59c0ca
%files devel
59c0ca
%{_libdir}/libenchant-2.so
59c0ca
%{_libdir}/pkgconfig/enchant-2.pc
59c0ca
%{_includedir}/enchant-2
59c0ca
59c0ca
59c0ca
%changelog
59c0ca
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.2.15-6
59c0ca
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
59c0ca
  Related: rhbz#1991688
59c0ca
59c0ca
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.2.15-5
59c0ca
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
59c0ca
59c0ca
* Mon Feb 08 2021 Kalev Lember <klember@redhat.com> - 2.2.15-4
59c0ca
- Disable nuspell support for RHEL (#1925839)
59c0ca
59c0ca
* Tue Feb  2 2021 Peter Oliver <rpm@mavit.org.uk> - 2.2.15-3
59c0ca
- Include support for Nuspell.
59c0ca
59c0ca
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.15-2
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
59c0ca
59c0ca
* Wed Dec 23 2020 Sandro Mani <manisandro@gmail.com> - 2.2.15-1
59c0ca
- Update to 2.2.15
59c0ca
59c0ca
* Mon Dec 14 2020 Sandro Mani <manisandro@gmail.com> - 2.2.14-1
59c0ca
- Update to 2.2.14
59c0ca
59c0ca
* Tue Nov 03 2020 Sandro Mani <manisandro@gmail.com> - 2.2.13-1
59c0ca
- Update to 2.2.13
59c0ca
59c0ca
* Sat Oct 17 2020 Sandro Mani <manisandro@gmail.com> - 2.2.12-1
59c0ca
- Update to 2.2.12
59c0ca
59c0ca
* Tue Sep 08 2020 Sandro Mani <manisandro@gmail.com> - 2.2.11-1
59c0ca
- Update to 2.2.11
59c0ca
59c0ca
* Wed Sep 02 2020 Sandro Mani <manisandro@gmail.com> - 2.2.10-1
59c0ca
- Update to 2.2.10
59c0ca
59c0ca
* Mon Aug 24 2020 Sandro Mani <manisandro@gmail.com> - 2.2.9-1
59c0ca
- Update to 2.2.9
59c0ca
59c0ca
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.8-2
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
59c0ca
59c0ca
* Mon Mar 02 2020 Sandro Mani <manisandro@gmail.com> - 2.2.8-1
59c0ca
- Update to 2.2.8
59c0ca
59c0ca
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.7-2
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
59c0ca
59c0ca
* Sun Sep 15 2019 Sandro Mani <manisandro@gmail.com> - 2.2.7-1
59c0ca
- Update to 2.2.7
59c0ca
59c0ca
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
59c0ca
59c0ca
* Mon Jul 01 2019 Sandro Mani <manisandro@gmail.com> - 2.2.5-1
59c0ca
- Update to 2.2.5
59c0ca
59c0ca
* Fri Jun 28 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-2
59c0ca
- Add patch to fix memory leaks (#1718084)
59c0ca
- Pass --without-hspell
59c0ca
59c0ca
* Tue Jun 18 2019 Sandro Mani <manisandro@gmail.com> - 2.2.4-1
59c0ca
- Update to 2.2.4
59c0ca
59c0ca
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-6
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
59c0ca
59c0ca
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-5
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
59c0ca
59c0ca
* Fri Jun 15 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-4
59c0ca
- Add patch to avoid unnecessary linking of libenchant against libaspell (#1574893)
59c0ca
59c0ca
* Wed May 16 2018 Parag Nemade <pnemade AT redhat DOT com> - 2.2.3-3
59c0ca
- Make enchant2-voikko installed by langpacks-fi package (#1578352)
59c0ca
59c0ca
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
59c0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
59c0ca
59c0ca
* Mon Feb 05 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-1
59c0ca
- Update to 2.2.3
59c0ca
59c0ca
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 2.2.1-1
59c0ca
- Update to 2.2.1
59c0ca
59c0ca
* Thu Dec 14 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-2
59c0ca
- Add patch to fix FSF addresses
59c0ca
- Kill rpath
59c0ca
59c0ca
* Wed Dec 13 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-1
59c0ca
- Initial package