2020-04-16 06:37:19 +02:00
|
|
|
#
|
|
|
|
# spec file for package nuspell
|
|
|
|
#
|
2021-01-12 22:09:39 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-04-16 06:37:19 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2020-05-25 22:39:19 +02:00
|
|
|
|
2020-11-26 09:49:16 +01:00
|
|
|
%define sonum 4
|
2020-04-19 06:18:31 +02:00
|
|
|
%define libname libnuspell
|
2020-04-16 06:37:19 +02:00
|
|
|
Name: nuspell
|
2021-01-12 22:09:39 +01:00
|
|
|
Version: 4.2.0
|
2020-07-11 19:50:36 +02:00
|
|
|
Release: 0
|
2020-04-16 06:37:19 +02:00
|
|
|
Summary: A spell checker library and command-line tool
|
|
|
|
License: LGPL-3.0-or-later
|
|
|
|
Group: Productivity/Office/Other
|
|
|
|
URL: https://nuspell.github.io/
|
2020-05-25 22:39:19 +02:00
|
|
|
Source: https://github.com/nuspell/nuspell/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: Catch2-devel
|
2020-04-16 06:37:19 +02:00
|
|
|
BuildRequires: cmake
|
2020-05-30 18:40:07 +02:00
|
|
|
BuildRequires: doxygen
|
2020-04-16 06:37:19 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libboost_locale-devel
|
|
|
|
BuildRequires: libicu-devel
|
2020-04-19 06:18:31 +02:00
|
|
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:ronn)
|
2020-05-25 22:39:19 +02:00
|
|
|
Requires: hunspell
|
2020-04-16 06:37:19 +02:00
|
|
|
|
|
|
|
%description
|
2020-06-05 00:02:17 +02:00
|
|
|
Nuspell is a spell checker written in C++. It supports languages with
|
|
|
|
rich morphology and complex word compounding.
|
2020-04-16 06:37:19 +02:00
|
|
|
|
2020-04-19 06:18:31 +02:00
|
|
|
Main features are:
|
|
|
|
- Full unicode support backed by ICU
|
|
|
|
- Backward compatibility with Hunspell dictionary file format
|
|
|
|
- Twofold affix stripping (for agglutinative languages, like Azeri,
|
|
|
|
Basque, Estonian, Finnish, Hungarian, Turkish, etc.)
|
|
|
|
- Support complex compounds (for example, Hungarian, Germand and Dutch)
|
|
|
|
- Support language specific features (for example, special casing of
|
|
|
|
Azeri and Turkish dotted i, or German sharp s)
|
|
|
|
- Handle conditional affixes, circumfixes, fogemorphemes, forbidden
|
|
|
|
words, pseudoroots and homonyms.
|
|
|
|
|
|
|
|
%package -n %{libname}%{sonum}
|
|
|
|
Summary: A spell checker library and command-line tool
|
2020-06-05 00:02:17 +02:00
|
|
|
Group: System/Libraries
|
2020-04-19 06:18:31 +02:00
|
|
|
|
|
|
|
%description -n %{libname}%{sonum}
|
2020-06-05 00:02:17 +02:00
|
|
|
Nuspell is a spell checker written in C++. It supports languages with
|
|
|
|
rich morphology and complex word compounding.
|
2020-04-19 06:18:31 +02:00
|
|
|
|
2020-04-16 06:37:19 +02:00
|
|
|
Main features are:
|
|
|
|
- Full unicode support backed by ICU
|
|
|
|
- Backward compatibility with Hunspell dictionary file format
|
|
|
|
- Twofold affix stripping (for agglutinative languages, like Azeri,
|
|
|
|
Basque, Estonian, Finnish, Hungarian, Turkish, etc.)
|
|
|
|
- Support complex compounds (for example, Hungarian, Germand and Dutch)
|
|
|
|
- Support language specific features (for example, special casing of
|
|
|
|
Azeri and Turkish dotted i, or German sharp s)
|
|
|
|
- Handle conditional affixes, circumfixes, fogemorphemes, forbidden
|
|
|
|
words, pseudoroots and homonyms.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files for developing with Nuspell
|
2020-06-05 00:02:17 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-04-16 06:37:19 +02:00
|
|
|
Requires: nuspell = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2020-06-05 00:02:17 +02:00
|
|
|
Header files and definitions for developing with Nuspell.
|
2020-04-16 06:37:19 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
2020-05-25 16:39:40 +02:00
|
|
|
%cmake -DBUILD_SHARED_LIBS:BOOL=ON \
|
2020-05-25 22:39:19 +02:00
|
|
|
-DBUILD_TESTING:BOOL=ON \
|
2020-07-11 19:50:36 +02:00
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \
|
2020-04-16 06:37:19 +02:00
|
|
|
..
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
2020-05-30 18:40:07 +02:00
|
|
|
pushd ../
|
|
|
|
doxygen
|
|
|
|
popd
|
|
|
|
|
2020-04-16 06:37:19 +02:00
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2020-04-19 06:18:31 +02:00
|
|
|
%post -n %{libname}%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname}%{sonum} -p /sbin/ldconfig
|
|
|
|
|
2020-05-25 22:39:19 +02:00
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
2020-04-19 06:18:31 +02:00
|
|
|
%files -n %{name}
|
|
|
|
%{_bindir}/nuspell
|
2020-04-16 06:37:19 +02:00
|
|
|
|
2020-04-19 06:18:31 +02:00
|
|
|
%files -n %{libname}%{sonum}
|
2020-04-16 06:37:19 +02:00
|
|
|
%doc README.md CHANGELOG.md AUTHORS
|
2020-04-23 16:27:42 +02:00
|
|
|
%license COPYING.LESSER COPYING
|
2020-11-26 09:51:26 +01:00
|
|
|
%{_libdir}/%{libname}.so.%{sonum}.1.0
|
2020-04-16 06:37:19 +02:00
|
|
|
%exclude %{_datadir}/doc/nuspell/README.md
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}
|
2020-04-19 06:18:31 +02:00
|
|
|
%{_libdir}/%{libname}.so
|
2020-05-25 16:39:40 +02:00
|
|
|
%{_libdir}/%{libname}.so.%{sonum}
|
2020-04-16 06:37:19 +02:00
|
|
|
%{_libdir}/pkgconfig/nuspell.pc
|
|
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
|
|
|
|
%changelog
|