SHA256
1
0
forked from pool/nuspell

Accepting request 795414 from home:andythe_great

- Fix share lib naming.
- Fix ruby required dependency

OBS-URL: https://build.opensuse.org/request/show/795414
OBS-URL: https://build.opensuse.org/package/show/M17N/nuspell?expand=0&rev=2
This commit is contained in:
andy great 2020-04-19 04:18:31 +00:00 committed by Git OBS Bridge
parent c8d6f4cda1
commit b8c55971b7
2 changed files with 31 additions and 13 deletions

View File

@ -2,6 +2,7 @@
<service mode="disabled" name="obs_scm">
<param name="url">git://github.com/nuspell/nuspell.git</param>
<param name="scm">git</param>
<param name="submodules">enable</param>
<param name="revision">d811a91</param>
<param name="versionprefix">3.1.0</param>
<param name="versionformat">%ct.%h</param>

View File

@ -15,7 +15,8 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sonum 3
%define libname libnuspell
Name: nuspell
Version: 3.1.0.1586261062.d811a91
Release: 0
@ -29,17 +30,30 @@ BuildRequires: gcc-c++
BuildRequires: libboost_locale-devel
BuildRequires: libicu-devel
Requires: hunspell
%if 0%{?suse_version} > 1500
BuildRequires: ruby2.6-rubygem-ronn
%endif
%if 0%{?suse_version} <= 1500
BuildRequires: ruby2.5-rubygem-ronn
%endif
BuildRequires: rubygem(%{rb_default_ruby_abi}:ronn)
%description
Nuspell is a free and open source spell checker that is written in modern C++.
It is designed for languages with rich morphology and complex word compounding.
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
%description -n %{libname}%{sonum}
Nuspell is a free and open source spell checker that is written in modern C++.
It is designed for languages with rich morphology and complex word compounding.
Main features are:
- Full unicode support backed by ICU
- Backward compatibility with Hunspell dictionary file format
@ -72,20 +86,23 @@ Includes and definitions for developing with Nuspell
%install
%cmake_install
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%post -n %{libname}%{sonum} -p /sbin/ldconfig
%postun -n %{libname}%{sonum} -p /sbin/ldconfig
%files
%files -n %{name}
%{_bindir}/nuspell
%files -n %{libname}%{sonum}
%doc README.md CHANGELOG.md AUTHORS
%license COPYING.LESSER
%{_libdir}/*.so.*
%{_bindir}/nuspell
%{_libdir}/%{libname}.so.*
%{_mandir}/man1/nuspell.1%{?ext_man}
%exclude %{_datadir}/doc/nuspell/README.md
%files devel
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/nuspell.pc
%{_libdir}/cmake/%{name}