2019-09-30 10:52:51 -04:00
|
|
|
Name: hunspell
|
|
|
|
|
Summary: A spell checker and morphological analyzer library
|
|
|
|
|
Version: 1.7.0
|
2022-07-30 15:09:19 +08:00
|
|
|
Release: 10
|
2019-09-30 10:52:51 -04:00
|
|
|
URL: https://github.com/hunspell/hunspell
|
2020-09-08 14:56:40 +08:00
|
|
|
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
|
2021-01-13 14:35:35 +08:00
|
|
|
|
|
|
|
|
Patch1: backport-CVE-2019-16707.patch
|
2022-04-25 17:14:45 +08:00
|
|
|
Patch2: 0001-Add-format-literal-string-to-resolve-g-issue-for-for.patch
|
2021-01-13 14:35:35 +08:00
|
|
|
|
2019-09-30 10:52:51 -04:00
|
|
|
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
2022-04-25 17:14:45 +08:00
|
|
|
BuildRequires: gcc-c++ autoconf automake libtool ncurses-devel gettext-devel
|
2022-07-30 15:09:19 +08:00
|
|
|
BuildRequires: perl-generators words
|
2019-09-30 10:52:51 -04:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
BuildRequires: valgrind
|
|
|
|
|
%endif
|
|
|
|
|
Requires: hunspell-en-US
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Hunspell is a free spell checker and morphological analyzer library and
|
|
|
|
|
command-line tool, licensed under LGPL/GPL/MPL tri-license.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Requires: hunspell = %{version}-%{release} pkgconfig
|
|
|
|
|
Summary: Files for developing with hunspell
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Includes and definitions for developing with hunspell
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -vfi
|
|
|
|
|
configureflags="--disable-rpath --with-ui --with-readline"
|
|
|
|
|
|
|
|
|
|
%define profilegenerate \
|
|
|
|
|
CFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"\
|
|
|
|
|
CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"
|
|
|
|
|
%define profileuse \
|
|
|
|
|
CFLAGS="${RPM_OPT_FLAGS} -fprofile-use"\
|
|
|
|
|
CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-use"
|
|
|
|
|
|
2020-03-21 20:03:38 +08:00
|
|
|
%configure $configureflags
|
2019-09-30 10:52:51 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
cd po && make %{?_smp_mflags} update-gmo && cd ..
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
make check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%delete_la_and_a
|
|
|
|
|
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(-,root,root)
|
2019-11-06 19:33:05 +08:00
|
|
|
%doc AUTHORS
|
|
|
|
|
%license COPYING COPYING.LESSER COPYING.MPL license.hunspell license.myspell
|
2019-09-30 10:52:51 -04:00
|
|
|
%{_bindir}/hunspell
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_datadir}/myspell
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_includedir}/hunspell
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/hunspell.pc
|
|
|
|
|
%exclude %{_bindir}/hunspell
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc THANKS README
|
|
|
|
|
%{_mandir}/man*/*.gz
|
|
|
|
|
%lang(hu) %{_mandir}/hu/man1/hunspell.1.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-07-30 15:09:19 +08:00
|
|
|
* Sat Jul 30 2022 yaoxin <yaoxin30@h-partners.com> - 1.7.0-10
|
|
|
|
|
- Remove self dependency which is temporary used to resolve compatiable during upgrade.
|
|
|
|
|
|
2022-04-25 17:14:45 +08:00
|
|
|
* Mon Apr 25 2022 caodongxia<caodongxia@h-partners.com> -1.7.0-9
|
|
|
|
|
- Add format literal string to resolve g++ issue for format-security.
|
|
|
|
|
|
2021-07-21 14:22:04 +08:00
|
|
|
* Wed Jul 21 2021 yushaogui <yushaogui@huawei.com> - 1.7.0-8
|
|
|
|
|
- delete a buildrequires for gdb
|
|
|
|
|
|
2021-01-13 14:35:35 +08:00
|
|
|
* Wed Jan 13 2021 jinzhimin <jinzhimin2@huawei.com> - 1.7.0-7
|
|
|
|
|
- fix CVE-2019-16707
|
|
|
|
|
|
2020-09-08 14:56:40 +08:00
|
|
|
* Tue Sep 08 2020 zhanzhimin <zhanzhimin@huawei.com> - 1.7.0-6
|
|
|
|
|
- update source
|
|
|
|
|
|
2020-03-21 20:03:38 +08:00
|
|
|
* Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 1.7.0.5
|
|
|
|
|
- bugfix about make check
|
|
|
|
|
|
2019-11-06 19:33:05 +08:00
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0.4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove the copying files to license root.
|
|
|
|
|
|
2019-09-30 10:52:51 -04:00
|
|
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add previous ABI version for temporary binary compatibility
|
|
|
|
|
|
|
|
|
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add previous ABI version for temporary binary compatibility
|
|
|
|
|
|
|
|
|
|
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-1
|
|
|
|
|
- Package init
|