2008-02-19 03:36:30 +00:00
|
|
|
#
|
2011-03-02 12:40:27 +00:00
|
|
|
# spec file for package hunspell
|
2008-02-19 03:36:30 +00:00
|
|
|
#
|
2022-01-06 17:36:08 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2008-02-19 03:36:30 +00:00
|
|
|
#
|
2008-08-15 21:55:25 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-16 08:09:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-02-19 03:36:30 +00:00
|
|
|
#
|
|
|
|
|
2011-12-09 13:56:01 +00:00
|
|
|
|
2018-11-16 08:09:18 +00:00
|
|
|
%define ver 1.7
|
|
|
|
%define libname lib%{name}-1_7-0
|
2014-05-05 07:54:22 +00:00
|
|
|
Name: hunspell
|
2018-11-16 08:09:18 +00:00
|
|
|
Version: 1.7.0
|
2011-12-09 12:02:09 +00:00
|
|
|
Release: 0
|
2014-05-05 07:54:22 +00:00
|
|
|
Summary: A spell checker and morphological analyzer library
|
2018-11-16 08:09:18 +00:00
|
|
|
License: (GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1+) AND LGPL-2.1-or-later
|
2016-05-25 07:54:05 +00:00
|
|
|
Group: Productivity/Office/Other
|
2018-11-16 08:09:18 +00:00
|
|
|
URL: https://hunspell.github.io
|
2016-04-23 10:37:12 +00:00
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2009-12-21 22:19:56 +00:00
|
|
|
Source1: baselibs.conf
|
2020-06-09 07:19:54 +00:00
|
|
|
# CVE-2019-16707 [bsc#1151867], invalid read operation in SuggestMgr:leftcommonsubstring in suggestmgr.cxx
|
|
|
|
Patch0: hunspell-CVE-2019-16707.patch
|
2017-01-02 09:22:49 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2017-06-09 05:24:24 +00:00
|
|
|
BuildRequires: bison
|
2011-03-25 18:34:56 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
2017-01-02 09:22:49 +00:00
|
|
|
BuildRequires: libtool
|
2008-02-19 03:36:30 +00:00
|
|
|
BuildRequires: ncurses-devel >= 5.0
|
2017-01-02 09:22:49 +00:00
|
|
|
BuildRequires: pkgconfig
|
2011-03-25 18:34:56 +00:00
|
|
|
BuildRequires: readline-devel
|
2008-02-19 03:36:30 +00:00
|
|
|
Recommends: %{name}-tools
|
2014-06-24 10:38:45 +00:00
|
|
|
Recommends: unzip
|
2022-01-06 17:36:08 +00:00
|
|
|
# bsc#1193627
|
2022-05-10 12:55:31 +00:00
|
|
|
Requires: myspell-en_US
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%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 Curses library, Ispell pipe interface,
|
2011-09-26 09:16:17 +00:00
|
|
|
LibreOffice or OpenOffice.org UNO module.
|
2008-02-19 03:36:30 +00:00
|
|
|
|
2016-05-05 06:46:03 +00:00
|
|
|
%package -n %{libname}
|
2016-05-25 07:54:05 +00:00
|
|
|
Summary: A spell checker and morphological analyzer library
|
2016-05-12 14:48:19 +00:00
|
|
|
# same libname, support migration
|
2016-11-21 15:54:28 +00:00
|
|
|
Group: System/Libraries
|
2016-05-12 14:48:19 +00:00
|
|
|
Conflicts: hunspell = 1.4.0
|
2016-05-05 06:46:03 +00:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
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 or OpenOffice.org UNO module.
|
|
|
|
|
2016-05-25 07:54:05 +00:00
|
|
|
This package contains the shared library.
|
2016-05-05 06:46:03 +00:00
|
|
|
|
2008-02-19 03:36:30 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Hunspell tools
|
|
|
|
Group: Development/Libraries/Other
|
2008-02-19 13:10:57 +00:00
|
|
|
Requires: %{name} = %{version}
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%description tools
|
2016-05-25 07:54:05 +00:00
|
|
|
This package contains the munch and unmunch programs.
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files for developing with hunspell
|
2016-05-25 07:54:05 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-05-05 06:46:03 +00:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2011-03-25 18:34:56 +00:00
|
|
|
Requires: libstdc++-devel
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Includes and definitions for developing with hunspell.
|
|
|
|
|
|
|
|
%prep
|
2011-03-25 18:34:56 +00:00
|
|
|
%setup -q
|
2020-06-09 07:19:54 +00:00
|
|
|
%patch0 -p1
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%build
|
2017-01-02 09:22:49 +00:00
|
|
|
# latest released tarball does not contain generated configure
|
|
|
|
autoreconf -fiv
|
2008-02-19 03:36:30 +00:00
|
|
|
%configure \
|
2016-04-04 13:09:40 +00:00
|
|
|
--disable-silent-rules \
|
2014-05-05 07:54:22 +00:00
|
|
|
--enable-nls \
|
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
2008-02-19 03:36:30 +00:00
|
|
|
--with-ui \
|
|
|
|
--with-readline
|
2011-03-25 18:34:56 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%install
|
2014-05-05 07:54:22 +00:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-03-25 18:34:56 +00:00
|
|
|
rm -f %{buildroot}%{_bindir}/example
|
2017-01-02 09:22:49 +00:00
|
|
|
install -p -m 644 src/tools/{,un}munch.h %{buildroot}%{_includedir}
|
2017-06-09 05:24:24 +00:00
|
|
|
ln -sf %{_libdir}/libhunspell-%{ver}.so.0.0.1 %{buildroot}%{_libdir}/libhunspell.so
|
2008-02-19 03:36:30 +00:00
|
|
|
|
2010-02-22 14:32:07 +00:00
|
|
|
%check
|
2014-05-05 07:54:22 +00:00
|
|
|
make check %{?_smp_mflags}
|
2010-02-22 14:32:07 +00:00
|
|
|
|
2016-05-05 06:46:03 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2011-03-28 08:16:40 +00:00
|
|
|
|
2016-04-04 13:09:40 +00:00
|
|
|
%files
|
2018-11-16 08:09:18 +00:00
|
|
|
%license COPYING license.hunspell license.myspell
|
|
|
|
%doc README README.md AUTHORS THANKS
|
2008-02-19 03:36:30 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/hunspell
|
|
|
|
%dir %{_mandir}/hu
|
|
|
|
%dir %{_mandir}/hu/man1
|
2018-11-16 08:09:18 +00:00
|
|
|
%{_mandir}/man1/hunspell.1%{?ext_man}
|
2008-02-19 03:36:30 +00:00
|
|
|
%lang(hu) %{_mandir}/hu/man1/hunspell.1*
|
|
|
|
|
2016-05-05 06:46:03 +00:00
|
|
|
%files -n %{libname}
|
2016-11-21 15:54:28 +00:00
|
|
|
%{_libdir}/libhunspell-%{ver}.so.*
|
2016-05-05 06:46:03 +00:00
|
|
|
|
2008-02-19 03:36:30 +00:00
|
|
|
%files tools
|
2016-05-05 06:46:03 +00:00
|
|
|
%{_bindir}/analyze
|
|
|
|
%{_bindir}/chmorph
|
|
|
|
%{_bindir}/munch
|
|
|
|
%{_bindir}/unmunch
|
|
|
|
%{_bindir}/hunzip
|
|
|
|
%{_bindir}/hzip
|
|
|
|
%{_bindir}/affixcompress
|
|
|
|
%{_bindir}/ispellaff2myspell
|
|
|
|
%{_bindir}/makealias
|
|
|
|
%{_bindir}/wordforms
|
|
|
|
%{_bindir}/wordlist2hunspell
|
2018-11-16 08:09:18 +00:00
|
|
|
%{_mandir}/man1/hunzip.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/hzip.1%{?ext_man}
|
2008-02-19 03:36:30 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-11-21 15:54:28 +00:00
|
|
|
%{_libdir}/libhunspell-%{ver}.so
|
2016-05-05 06:46:03 +00:00
|
|
|
%{_libdir}/libhunspell.so
|
2018-11-16 08:09:18 +00:00
|
|
|
%{_mandir}/man3/hunspell.3%{?ext_man}
|
|
|
|
%{_mandir}/man5/hunspell.5%{?ext_man}
|
2008-02-19 03:36:30 +00:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_includedir}/munch.h
|
|
|
|
%{_includedir}/unmunch.h
|
|
|
|
%{_libdir}/pkgconfig/hunspell.pc
|
|
|
|
|
|
|
|
%changelog
|