enchant2/enchant2.spec

138 lines
4.0 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:44:49 +08:00
Name: enchant2
2024-02-21 16:19:01 +08:00
Version: 2.6.7
2024-05-08 10:55:48 +08:00
Release: 4
2019-11-19 11:44:49 +08:00
Summary: Generic spell checking library
License: LGPLv2+
URL: https://github.com/AbiWord/enchant
Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
2024-04-02 16:46:24 +08:00
Patch0: Add-with-hunspell-dir-parameters.patch
Patch1: Parameter-h-correction.patch
2024-05-08 10:55:48 +08:00
Patch2: Fix-a-leak-in-the-tests.patch
2019-11-19 11:44:49 +08:00
BuildRequires: automake autoconf libtool gcc-c++ glib2-devel aspell-devel hunspell-devel libvoikko-devel
Provides: bundled(gnulib)
2019-11-19 11:44:49 +08:00
%description
Enchant aims to provide a simple but comprehensive abstraction for dealing
with different spell checking libraries in a consistent way. A client, such
as a text editor or word processor, need not know anything about a specific
spell-checker, and since all back-ends are plugins, new spell-checkers can
be added without needing any change to the program using Enchant.
%package devel
Summary: Development package for %{name}
Requires: %{name} = %{version}-%{release} glib2-devel
%description devel
This package contains some libraries and header files for
development of %{name}.
%package aspell
Summary: Aspell is integrated for libenchant
Requires: %{name} = %{version}-%{release}
Provides: %{name}-aspell = %{version}-%{release}
Obsoletes: %{name}-aspell < %{version}-%{release}
%description aspell
Applications need libraries integrated by using libenchant with aspell.
%package voikko
Summary: voikko is integrated for libenchant
Requires: %{name} = %{version}-%{release}
Provides: %{name}-voikko = %{version}-%{release}
Obsoletes: %{name}-voikko < %{version}-%{release}
%description voikko
Applications need libraries integrated by using libenchant with voikko.
2019-11-19 11:44:49 +08:00
%package help
Summary: Help package for %{name}
Requires: %{name} = %{version}-%{release}
%description help
This package contains some man help files for %{name}.
%prep
%autosetup -p1 -n enchant-%{version}
autoreconf -ifv
%build
2023-06-16 16:03:18 +08:00
%configure --with-aspell --with-hunspell-dir=%{_datadir}/myspell --disable-static --docdir=%{_defaultdocdir}/%{name}
2019-11-19 11:44:49 +08:00
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g;
s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build pkgdatadir=%{_datadir}/enchant-2
%install
%make_install pkgdatadir=%{_datadir}/enchant-2
%{delete_la}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS NEWS README
%license COPYING.LIB
%{_bindir}/{enchant-2,enchant-lsmod-2}
%{_libdir}/libenchant-2.so.*
%{_libdir}/enchant-2/enchant_hunspell.so
2024-02-21 16:19:01 +08:00
%{_datadir}/enchant-2-2
2019-11-19 11:44:49 +08:00
%files aspell
%{_libdir}/enchant-2/enchant_aspell.so*
%files voikko
%{_libdir}/enchant-2/enchant_voikko.so*
2019-11-19 11:44:49 +08:00
%files devel
%{_libdir}/libenchant-2.so
%{_libdir}/pkgconfig/enchant-2.pc
%{_includedir}/enchant-2
%files help
%{_mandir}/man1/*
2023-06-16 16:03:18 +08:00
%{_mandir}/man5/enchant.5*
%doc %{_defaultdocdir}/%{name}/enchant.html
%doc %{_defaultdocdir}/%{name}/enchant-2.html
%doc %{_defaultdocdir}/%{name}/enchant-lsmod-2.html
2019-11-19 11:44:49 +08:00
%changelog
2024-05-08 10:55:48 +08:00
* Thu May 9 2024 dongjiao <dongjiao@kylinos.cn> - 2.6.7-4
- Fix a leak in the tests
* Wed Apr 3 2024 zhangxianting <zhangxianting@uniontech.com> - 2.6.7-3
- parament -h reture value be 0
2024-04-02 16:46:24 +08:00
* Tue Apr 2 2024 liyanan <liyanan61@h-partners.com> - 2.6.7-2
- Add -with-hunspell-dir parameters
2024-02-21 16:19:01 +08:00
* Wed Feb 21 2024 liyanan <liyanan61@h-partners.com> - 2.6.7-1
- Update to 2.6.7
2023-06-16 16:03:18 +08:00
* Fri Jun 16 2023 wangkai <13474090681@163.com> - 2.5.0-1
- Update to 2.5.0
2022-09-28 17:33:35 +08:00
* Thu Sep 15 2022 lutcunpeng <lutkunpeng@163.com> - 2.3.3-1
- DESC: update to 2.3.3
* Thu Apr 29 2021 zhaoyuxing <zhaoyuxing2@huawei.com> - 2.2.15-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC: split aspell and voikko subpackage & backport patch that enchant2 use hunspell
* Mon Feb 1 2021 chengguipeng1 <chengguipeng1@huawei.com> - 2.2.15-1
- DESC: update to 2.2.15
2020-01-19 17:31:33 +08:00
* Sun Jan 19 2020 wutao <wutao61@huawei.com> - 2.2.3-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: modify spec
2019-11-19 11:44:49 +08:00
* Mon Nov 04 2019 huzhiyu <huzhiyu1@huawei.com> - 2.2.3-6
- Package init