hunspell/hunspell.spec
2024-03-30 17:18:20 +08:00

128 lines
3.3 KiB
RPMSpec

Name: hunspell
Summary: A spell checker and morphological analyzer library
Version: 1.7.0
Release: 11
URL: https://github.com/hunspell/hunspell
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
Patch1: backport-CVE-2019-16707.patch
Patch2: 0001-Add-format-literal-string-to-resolve-g-issue-for-for.patch
License: LGPLv2+ or GPLv2+ or MPLv1.1
BuildRequires: gcc-c++ autoconf automake libtool ncurses-devel gettext-devel
BuildRequires: perl-generators words
%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"
%configure $configureflags
%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)
%doc AUTHORS
%license COPYING COPYING.LESSER COPYING.MPL license.hunspell license.myspell
%{_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
* Sat Jul 30 2022 yaoxin <yaoxin30@h-partners.com> - 1.7.0-11
- Remove self dependency which is temporary used to resolve compatiable during upgrade.
* Mon Apr 25 2022 caodongxia<caodongxia@h-partners.com> -1.7.0-10
- Add format literal string to resolve g++ issue for format-security.
* Fri Jan 07 2022 xingxing <xingxing9@huawei.com> - 1.7.0-9
- resolve compile fail
* Wed Jul 21 2021 yushaogui <yushaogui@huawei.com> - 1.7.0-8
- delete a buildrequires for gdb
* Wed Jan 13 2021 jinzhimin <jinzhimin2@huawei.com> - 1.7.0-7
- fix CVE-2019-16707
* Tue Sep 08 2020 zhanzhimin <zhanzhimin@huawei.com> - 1.7.0-6
- update source
* Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 1.7.0.5
- bugfix about make check
* 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.
* 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