]>
Commit | Line | Data |
---|---|---|
c597e3ca | 1 | # TODO: catch2 >= 2.3.0 for tests, https://github.com/catchorg/Catch2.git |
08eb1a1a JB |
2 | Summary: Nuspell spell checking library |
3 | Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell | |
4 | Name: nuspell | |
373de8ef JB |
5 | Version: 5.1.0 |
6 | Release: 1 | |
08eb1a1a JB |
7 | License: LGPL v3+ |
8 | Group: Libraries | |
9 | #Source0Download: https://github.com/nuspell/nuspell/releases | |
10 | Source0: https://github.com/nuspell/nuspell/archive/v%{version}/%{name}-%{version}.tar.gz | |
373de8ef | 11 | # Source0-md5: 0a832f7932a7052e9cd9e27014be36c8 |
08eb1a1a | 12 | URL: https://nuspell.github.io/ |
08eb1a1a JB |
13 | BuildRequires: cmake >= 3.8 |
14 | BuildRequires: libicu-devel | |
373de8ef JB |
15 | # -std=c++17, std::from_chars |
16 | BuildRequires: libstdc++-devel >= 6:8 | |
08eb1a1a JB |
17 | Requires: %{name}-libs = %{version}-%{release} |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Nuspell is a spell checker library and command-line program designed | |
22 | for languages with rich morphology and complex word compounding. | |
23 | Nuspell is a pure C++ re-implementation of Hunspell. | |
24 | ||
25 | Main features of Nuspell spell checker: | |
26 | - Full unicode support backed by ICU | |
27 | - Backward compatibility with Hunspell dictionary file format | |
28 | - Twofold affix stripping (for agglutinative languages, like Azeri, | |
29 | Basque, Estonian, Finnish, Hungarian, Turkish, etc.) | |
30 | - Support complex compounds (for example, Hungarian and German) | |
31 | - Support language specific features (for example, special casing of | |
32 | Azeri and Turkish dotted i, or German sharp s) | |
33 | - Handle conditional affixes, circumfixes, fogemorphemes, forbidden | |
34 | words, pseudoroots and homonyms. | |
35 | - Free software. Licensed under GNU LGPL v3. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Nuspell to biblioteka i narzędzie linii poleceń do sprawdzania | |
39 | pisowni, zaprojektowane dla języków o bogatej morfologii i złożonym | |
40 | łączeniu słów. Nuspell jest reimplementacją Hunspella w czystym C++. | |
41 | ||
42 | Główne cechy Nuspella: | |
43 | - pełna obsługa Unicode oparta o ICU | |
44 | - wsteczna zgodność z formatem plików słówników Hunspella | |
45 | - dwukrotne usuwanie formantów (dla języków aglutynacyjnych, jak | |
46 | azerski, baskijski, estoński, fiński, węgierski, turecki...) | |
47 | - obsługa złożonego łączenia (języki np. węgierski, niemiecki) | |
48 | - obsługa cech specyficznych dla języków (np. specjalne przypadki | |
49 | azerskiego i tureckiego "i" z kropkami czy niemieckiego ß) | |
50 | - obsługa formantów warunkowych, okołorostków, fogemorfemów, słów | |
51 | zakazanych, pseudordzeni i homonimów | |
52 | - oprogramowanie wolnodostępne, na licencji GNU LGPL v3 | |
53 | ||
54 | %package libs | |
55 | Summary: Nuspell spell checking library | |
56 | Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell | |
57 | Group: Libraries | |
58 | ||
59 | %description libs | |
60 | Nuspell spell checking library. | |
61 | ||
62 | %description libs -l pl.UTF-8 | |
63 | Biblioteka sprawdzania pisowni Nuspell. | |
64 | ||
65 | %package devel | |
66 | Summary: Header files for Nuspell library | |
67 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Nuspell | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-libs = %{version}-%{release} | |
70 | Requires: libicu-devel | |
373de8ef | 71 | Requires: libstdc++-devel >= 6:8 |
08eb1a1a JB |
72 | |
73 | %description devel | |
74 | Header files for Nuspell library. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe biblioteki Nuspell. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
81 | ||
373de8ef JB |
82 | %if 0%{_ver_lt "%{cc_version}" "9"} |
83 | %{__sed} -i -e '/target_link_libraries(nuspell/ s/)/ stdc++fs)/' src/nuspell/CMakeLists.txt | |
84 | %endif | |
85 | ||
08eb1a1a JB |
86 | %build |
87 | install -d build | |
88 | cd build | |
89 | %cmake .. | |
90 | ||
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} -C build install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | # packaged as %doc | |
100 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/README.md | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post libs -p /sbin/ldconfig | |
106 | %postun libs -p /sbin/ldconfig | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS CHANGELOG.md README.md docs/Third-party_licenses | |
111 | %attr(755,root,root) %{_bindir}/nuspell | |
08eb1a1a JB |
112 | |
113 | %files libs | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_libdir}/libnuspell.so.*.*.* | |
373de8ef | 116 | %attr(755,root,root) %ghost %{_libdir}/libnuspell.so.5 |
08eb1a1a JB |
117 | |
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) %{_libdir}/libnuspell.so | |
121 | %{_includedir}/nuspell | |
122 | %{_pkgconfigdir}/nuspell.pc | |
123 | %{_libdir}/cmake/nuspell |