diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b8f988 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/nuspell*.tar.gz +nuspell-*/ diff --git a/README.md b/README.md index 73a0342..6de5e44 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ -# nuspell +# [Nuspell](https://nuspell.github.io) -The nuspell package \ No newline at end of file +Nuspell is a free and open source spell checker library and command-line +program designed for languages with rich morphology and complex word +compounding. Nuspell is a pure C++ re-implementation of Hunspell. + +Main features of Nuspell spell checker: + + - 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, German 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. + - Free software. Licensed under GNU LGPL v3 or later. diff --git a/nuspell.spec b/nuspell.spec new file mode 100644 index 0000000..1174f01 --- /dev/null +++ b/nuspell.spec @@ -0,0 +1,75 @@ +Name: nuspell +Version: 3.0.0 +Release: 5%{?dist} +Summary: Free and open source C++ spell checking library +License: LGPLv3+ +URL: https://nuspell.github.io +Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: boost-locale +BuildRequires: clang +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: git +BuildRequires: libicu-devel +BuildRequires: rdkit-devel +BuildRequires: rubygem-ronn + +%description +Nuspell is a free and open source spell checker library. +It is designed for languages with rich morphology and complex word compounding. +Nuspell is a pure C++ re-implementation of Hunspell. + +%package devel +Summary: Development tools for nuspell +Requires: libicu-devel +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains the header files and developer docs for \ +%{name}. + +%prep +%autosetup -n %{name}-%{version} + +%build +%cmake . -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} +%make_build + +%install +%make_install + +%files +%{_mandir}/man1/%{name}* +%{_bindir}/%{name} +%{_libdir}/*.so.3* +%license COPYING COPYING.LESSER +%doc AUTHORS CHANGELOG.md README.md + +%files devel +%{_includedir}/%{name}/ +%{_libdir}/cmake/%{name}/ +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/*.so + +%doc %{_docdir}/nuspell/ + +%changelog +* Fri Apr 3 2020 Vishal Vijayraghavan - 3.0.0-5 +- Added license files and doc files + +* Thu Mar 26 2020 Vishal Vijayraghavan - 3.0.0-4 +- renamed archive name +- replaced cmake with %%cmake and make with %%make_build macro + +* Mon Mar 02 2020 Vishal Vijayraghavan - 3.0.0-3 +- Update URL link +- Updated description +- Modified man page files macro + +* Thu Feb 27 2020 Vishal Vijayraghavan - 3.0.0-2 +- Updated files to _libdir/cmake/nuspell/ instead of *.cmake files + +* Tue Feb 25 2020 Vishal Vijayraghavan - 3.0.0-1 +- First release diff --git a/sources b/sources new file mode 100644 index 0000000..90178f4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nuspell-3.0.0.tar.gz) = d9cd7dd276e2bca43dec3abaf11c5206695949b9fda8c9b86f2772cc7e8fa95bf17c685a2ef9ca87fe3c4f0b55f2fcb435bc21c187355f5e3fa35dcafab2c8c2