6d26e6
Name:          enchant2
6d26e6
Version:       2.2.3
6d26e6
Release:       3%{?snap}%{?dist}
6d26e6
Summary:       An Enchanting Spell Checking Library
6d26e6
6d26e6
License:       LGPLv2+
6d26e6
URL:           https://github.com/AbiWord/enchant
6d26e6
Source0:       https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
6d26e6
6d26e6
BuildRequires: glib2-devel
6d26e6
BuildRequires: aspell-devel
6d26e6
BuildRequires: hunspell-devel
6d26e6
BuildRequires: libvoikko-devel
6d26e6
6d26e6
Provides:      bundled(gnulib)
6d26e6
6d26e6
6d26e6
%description
6d26e6
A library that wraps other spell checking backends.
6d26e6
6d26e6
6d26e6
%package aspell
6d26e6
Summary:       Integration with aspell for libenchant
6d26e6
Requires:      enchant2%{?_isa} = %{version}-%{release}
6d26e6
6d26e6
%description aspell
6d26e6
Libraries necessary to integrate applications using libenchant with aspell.
6d26e6
6d26e6
%package voikko
6d26e6
Summary:       Integration with voikko for libenchant
6d26e6
Requires:      enchant2%{?_isa} = %{version}-%{release}
6d26e6
6d26e6
%description voikko
6d26e6
Libraries necessary to integrate applications using libenchant with voikko.
6d26e6
6d26e6
6d26e6
%package devel
6d26e6
Summary:       Development files for %{name}
6d26e6
Requires:      enchant2%{?_isa} = %{version}-%{release}
6d26e6
Requires:      glib2-devel
6d26e6
6d26e6
%description devel
6d26e6
The %{name}-devel package contains libraries and header files for
6d26e6
developing applications that use %{name}.
6d26e6
6d26e6
6d26e6
%prep
6d26e6
%autosetup -p1 -n enchant-%{version}
6d26e6
6d26e6
6d26e6
%build
6d26e6
%configure \
6d26e6
    --with-aspell \
6d26e6
    --with-hunspell-dir=%{_datadir}/myspell \
6d26e6
    --disable-static
6d26e6
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
6d26e6
        s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
6d26e6
%make_build pkgdatadir=%{_datadir}/enchant-2
6d26e6
6d26e6
6d26e6
%install
6d26e6
%make_install pkgdatadir=%{_datadir}/enchant-2
6d26e6
find %{buildroot} -name '*.la' -delete
6d26e6
6d26e6
6d26e6
%post -p /sbin/ldconfig
6d26e6
6d26e6
%postun -p /sbin/ldconfig
6d26e6
6d26e6
6d26e6
%files
6d26e6
%doc AUTHORS NEWS README
6d26e6
%license COPYING.LIB
6d26e6
%{_bindir}/enchant-2
6d26e6
%{_bindir}/enchant-lsmod-2
6d26e6
%{_libdir}/libenchant-2.so.*
6d26e6
%dir %{_libdir}/enchant-2
6d26e6
%{_libdir}/enchant-2/enchant_hunspell.so
6d26e6
%{_mandir}/man1/*
6d26e6
%{_datadir}/enchant-2
6d26e6
6d26e6
%files aspell
6d26e6
%{_libdir}/enchant-2/enchant_aspell.so*
6d26e6
6d26e6
%files voikko
6d26e6
%{_libdir}/enchant-2/enchant_voikko.so*
6d26e6
6d26e6
%files devel
6d26e6
%{_libdir}/libenchant-2.so
6d26e6
%{_libdir}/pkgconfig/enchant-2.pc
6d26e6
%{_includedir}/enchant-2
6d26e6
6d26e6
6d26e6
%changelog
6d26e6
* Tue Oct 13 2020 Tomas Popela <tpopela@redhat.com> - 2.2.3-3
6d26e6
- Rebuild for the annobin fixes
6d26e6
- Resolves: rhbz#1703990
6d26e6
6d26e6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
6d26e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6d26e6
6d26e6
* Mon Feb 05 2018 Sandro Mani <manisandro@gmail.com> - 2.2.3-1
6d26e6
- Update to 2.2.3
6d26e6
6d26e6
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 2.2.1-1
6d26e6
- Update to 2.2.1
6d26e6
6d26e6
* Thu Dec 14 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-2
6d26e6
- Add patch to fix FSF addresses
6d26e6
- Kill rpath
6d26e6
6d26e6
* Wed Dec 13 2017 Sandro Mani <manisandro@gmail.com> - 2.2.0-1
6d26e6
- Initial package