SHA256
1
0
forked from pool/nuspell

Accepting request 793961 from home:andythe_great

Nuspell is a pure C++ re-implementation of Hunspell.

OBS-URL: https://build.opensuse.org/request/show/793961
OBS-URL: https://build.opensuse.org/package/show/M17N/nuspell?expand=0&rev=1
This commit is contained in:
Marguerite Su 2020-04-16 04:37:19 +00:00 committed by Git OBS Bridge
commit c8d6f4cda1
7 changed files with 143 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">git://github.com/nuspell/nuspell.git</param>
<param name="scm">git</param>
<param name="revision">d811a91</param>
<param name="versionprefix">3.1.0</param>
<param name="versionformat">%ct.%h</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version" />
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8982cd670082795812344a250d32f8ca9e87b3cfbb773152812e4e795b99e625
size 4957196

4
nuspell.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Apr 11 22:50:29 UTC 2020 - andy great <andythe_great@pm.me>
- Initial package release.

5
nuspell.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: nuspell
version: 3.1.0.1586261062.d811a91
mtime: 1586261062
commit: d811a9142e2afb72e1991700840ff2328a3c7276

92
nuspell.spec Normal file
View File

@ -0,0 +1,92 @@
#
# spec file for package nuspell
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
Name: nuspell
Version: 3.1.0.1586261062.d811a91
Release: 0
Summary: A spell checker library and command-line tool
License: LGPL-3.0-or-later
Group: Productivity/Office/Other
URL: https://nuspell.github.io/
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
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
%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 devel
Summary: Files for developing with Nuspell
Requires: nuspell = %{version}-%{release}
Requires: pkgconfig
%description devel
Includes and definitions for developing with Nuspell
%prep
%autosetup
%build
%cmake -DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
..
%cmake_build
%install
%cmake_install
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%doc README.md CHANGELOG.md AUTHORS
%license COPYING.LESSER
%{_libdir}/*.so.*
%{_bindir}/nuspell
%{_mandir}/man1/nuspell.1%{?ext_man}
%exclude %{_datadir}/doc/nuspell/README.md
%files devel
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/nuspell.pc
%{_libdir}/cmake/%{name}
%changelog