From 08eb1a1afa0a3a2e34dd804eb02babd60e45ca19 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 1 Mar 2020 21:10:45 +0100 Subject: [PATCH 1/1] - new --- nuspell.spec | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 nuspell.spec diff --git a/nuspell.spec b/nuspell.spec new file mode 100644 index 0000000..b857512 --- /dev/null +++ b/nuspell.spec @@ -0,0 +1,122 @@ +# TODO: catch2 for tests, https://github.com/catchorg/Catch2.git +Summary: Nuspell spell checking library +Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell +Name: nuspell +Version: 3.0.0 +Release: 1 +License: LGPL v3+ +Group: Libraries +#Source0Download: https://github.com/nuspell/nuspell/releases +Source0: https://github.com/nuspell/nuspell/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 4d8bd5582fd3d467267bdea31bdc1767 +URL: https://nuspell.github.io/ +BuildRequires: boost-devel >= 1.62 +BuildRequires: cmake >= 3.8 +BuildRequires: libicu-devel +# -std=c++17 +BuildRequires: libstdc++-devel >= 6:7 +BuildRequires: ronn +Requires: %{name}-libs = %{version}-%{release} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Nuspell is a 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 and German) +- 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. + +%description -l pl.UTF-8 +Nuspell to biblioteka i narzędzie linii poleceń do sprawdzania +pisowni, zaprojektowane dla języków o bogatej morfologii i złożonym +łączeniu słów. Nuspell jest reimplementacją Hunspella w czystym C++. + +Główne cechy Nuspella: +- pełna obsługa Unicode oparta o ICU +- wsteczna zgodność z formatem plików słówników Hunspella +- dwukrotne usuwanie formantów (dla języków aglutynacyjnych, jak + azerski, baskijski, estoński, fiński, węgierski, turecki...) +- obsługa złożonego łączenia (języki np. węgierski, niemiecki) +- obsługa cech specyficznych dla języków (np. specjalne przypadki + azerskiego i tureckiego "i" z kropkami czy niemieckiego ß) +- obsługa formantów warunkowych, okołorostków, fogemorfemów, słów + zakazanych, pseudordzeni i homonimów +- oprogramowanie wolnodostępne, na licencji GNU LGPL v3 + +%package libs +Summary: Nuspell spell checking library +Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell +Group: Libraries + +%description libs +Nuspell spell checking library. + +%description libs -l pl.UTF-8 +Biblioteka sprawdzania pisowni Nuspell. + +%package devel +Summary: Header files for Nuspell library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Nuspell +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +Requires: libicu-devel +Requires: libstdc++-devel >= 6:7 + +%description devel +Header files for Nuspell library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Nuspell. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake .. + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +# packaged as %doc +%{__rm} $RPM_BUILD_ROOT%{_docdir}/README.md + +%clean +rm -rf $RPM_BUILD_ROOT + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS CHANGELOG.md README.md docs/Third-party_licenses +%attr(755,root,root) %{_bindir}/nuspell +%{_mandir}/man1/nuspell.1* + +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnuspell.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libnuspell.so.3 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libnuspell.so +%{_includedir}/nuspell +%{_pkgconfigdir}/nuspell.pc +%{_libdir}/cmake/nuspell -- 2.44.0