|
|
|
|
@ -2,36 +2,49 @@
|
|
|
|
|
|
|
|
|
|
Name: hunspell
|
|
|
|
|
Summary: A spell checker and morphological analyzer library
|
|
|
|
|
Version: 1.6.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Source: https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Version: 1.7.2
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Source: https://github.com/hunspell/hunspell/releases/download/v%{version}/hunspell-%{version}.tar.gz
|
|
|
|
|
URL: https://github.com/hunspell/hunspell
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
|
|
|
|
BuildRequires: autoconf, automake, libtool, ncurses-devel, gettext
|
|
|
|
|
License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: autoconf, automake, libtool, ncurses-devel, gettext-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
BuildRequires: valgrind
|
|
|
|
|
%endif
|
|
|
|
|
%if %{double_profiling_build}
|
|
|
|
|
BuildRequires: words
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
Requires: hunspell-en-US
|
|
|
|
|
Requires: hunspell-filesystem = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Patch0: 0001-Resolves-rhbz-2158548-allow-longer-words-for-hunspel.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Hunspell is a spell checker and morphological analyzer library and program
|
|
|
|
|
designed for languages with rich morphology and complex word compounding or
|
|
|
|
|
character encoding. Hunspell interfaces: Ispell-like terminal interface using
|
|
|
|
|
Hunspell is a spell checker and morphological analyzer library and program
|
|
|
|
|
designed for languages with rich morphology and complex word compounding or
|
|
|
|
|
character encoding. Hunspell interfaces: Ispell-like terminal interface using
|
|
|
|
|
Curses library, Ispell pipe interface, LibreOffice UNO module.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Requires: hunspell = %{version}-%{release}, pkgconfig
|
|
|
|
|
Summary: Files for developing with hunspell
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Includes and definitions for developing with hunspell
|
|
|
|
|
|
|
|
|
|
%package filesystem
|
|
|
|
|
Summary: Hunspell filesystem layout
|
|
|
|
|
|
|
|
|
|
%description filesystem
|
|
|
|
|
Provides a directory in which to store dictionaries provided by other
|
|
|
|
|
packages.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .rhbz2158548
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -vfi
|
|
|
|
|
@ -46,7 +59,7 @@ configureflags="--disable-rpath --disable-static --with-ui --with-readline"
|
|
|
|
|
|
|
|
|
|
%if !%{double_profiling_build}
|
|
|
|
|
%configure $configureflags
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
%else
|
|
|
|
|
#Generate a word list to use for profiling, take half of it to ensure
|
|
|
|
|
#that the original word list is then considered to contain correctly
|
|
|
|
|
@ -56,7 +69,7 @@ head -n $((`cat /usr/share/dict/words | wc -l`/2)) /usr/share/dict/words |\
|
|
|
|
|
|
|
|
|
|
#generate profiling
|
|
|
|
|
%{profilegenerate} %configure $configureflags
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
./src/tools/affixcompress words > /dev/null 2>&1
|
|
|
|
|
./src/tools/hunspell -d words -l /usr/share/dict/words > /dev/null
|
|
|
|
|
make check
|
|
|
|
|
@ -64,39 +77,34 @@ make distclean
|
|
|
|
|
|
|
|
|
|
#use profiling
|
|
|
|
|
%{profileuse} %configure $configureflags
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
%endif
|
|
|
|
|
cd po && make %{?_smp_mflags} update-gmo && cd ..
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
VALGRIND=memcheck make check
|
|
|
|
|
make check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
|
|
|
mkdir $RPM_BUILD_ROOT/%{_datadir}/hunspell
|
|
|
|
|
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README README.myspell COPYING COPYING.LESSER COPYING.MPL AUTHORS AUTHORS.myspell license.hunspell license.myspell THANKS
|
|
|
|
|
%doc README COPYING COPYING.LESSER COPYING.MPL AUTHORS license.hunspell license.myspell THANKS
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
%{_datadir}/myspell
|
|
|
|
|
%{_bindir}/hunspell
|
|
|
|
|
%{_mandir}/man1/hunspell.1.gz
|
|
|
|
|
%lang(hu) %{_mandir}/hu/man1/hunspell.1.gz
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_bindir}/affixcompress
|
|
|
|
|
@ -116,7 +124,120 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_mandir}/man3/hunspell.3.gz
|
|
|
|
|
%{_mandir}/man5/hunspell.5.gz
|
|
|
|
|
|
|
|
|
|
%files filesystem
|
|
|
|
|
%{_datadir}/hunspell
|
|
|
|
|
%{_datadir}/myspell
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.7.2-9
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.7.2-8
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 1.7.2-4
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 06 2023 Caolán McNamara <caolanm@redhat.com> - 1.7.2-2
|
|
|
|
|
- Resolves: rhbz#2158548 get hunspell-ko working again
|
|
|
|
|
|
|
|
|
|
* Fri Dec 30 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.2-1
|
|
|
|
|
- Resolves: rhbz#2157049 latest release
|
|
|
|
|
|
|
|
|
|
* Mon Aug 22 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.1-1
|
|
|
|
|
- latest release
|
|
|
|
|
|
|
|
|
|
* Tue Aug 02 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.0-21
|
|
|
|
|
- Resolves: rhbz#2113444 FTBFS
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-20
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Mar 16 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-19
|
|
|
|
|
- rework the new hunspell dictionary directory (#2064189)
|
|
|
|
|
- drop the myspell/ compatibility symlink
|
|
|
|
|
- keep myspell/ as directory and also the new hunspell/ dir
|
|
|
|
|
- because of this drop the duplicate directory patch for #2060751
|
|
|
|
|
- filesystem scriptlets are no more
|
|
|
|
|
|
|
|
|
|
* Mon Mar 07 2022 Caolán McNamara <caolanm@redhat.com> - 1.7.0-18
|
|
|
|
|
- Resolves: rhbz#2060751 - “hunspell -D” lists dictionaries twice
|
|
|
|
|
|
|
|
|
|
* Thu Feb 10 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-17
|
|
|
|
|
- revert post script from lua back to shell to unbreak rpm-ostree compose
|
|
|
|
|
|
|
|
|
|
* Mon Feb 7 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-16
|
|
|
|
|
- pretrans and post scriptlets should be for filesystem!
|
|
|
|
|
(fixes #2051360 regression reported by Mike Fabian)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 26 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-15
|
|
|
|
|
- improve the filesystem pretrans and post scripts:
|
|
|
|
|
- pretrans now checks if /usr/share/hunspell exists first
|
|
|
|
|
- post checks that /usr/share/myspell does not exist
|
|
|
|
|
|
|
|
|
|
* Wed Jan 26 2022 Jens Petersen <petersen@redhat.com> - 1.7.0-14
|
|
|
|
|
- requires coreutils for post script (#2045568)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1.7.0-13
|
|
|
|
|
- Rename install dir from myspell to hunspell & create symlink myspell
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Mar 25 2021 Caolán McNamara <caolanm@redhat.com> - 1.7.0-10
|
|
|
|
|
- Resolves: rhbz#1943087 require gettext-devel for autopoint
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2021 Peter Oliver <rpm@mavit.org.uk> - 1.7.0-9
|
|
|
|
|
- Accomodate Nuspell by putting the dictionary dir in its own subpackage.
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.7.0-6
|
|
|
|
|
- Use make macros
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 12 2019 Caolán McNamara <caolanm@redhat.com> - 1.7.0-4
|
|
|
|
|
- Resolves: rhbz#1771027 CVE-2019-16707
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 13 2018 Caolán McNamara <caolanm@redhat.com> - 1.7.0-1
|
|
|
|
|
- latest release
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 24 2017 Caolán McNamara <caolanm@redhat.com> - 1.6.2-1
|
|
|
|
|
- latest release
|
|
|
|
|
|
|
|
|
|
@ -314,7 +435,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
- sort as per "C" locale
|
|
|
|
|
|
|
|
|
|
* Fri Oct 17 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-4
|
|
|
|
|
- make wordlist2hunspell remove blank lines
|
|
|
|
|
- make wordlist2hunspell remove blank lines
|
|
|
|
|
|
|
|
|
|
* Mon Sep 15 2008 Caolán McNamara <caolanm@redhat.com> - 1.2.7-3
|
|
|
|
|
- Workaround rhbz#462184 uniq/sort problems with viramas
|