]> git.pld-linux.org Git - packages/nuspell.git/blame - nuspell.spec
- updated to 5.1.0 (new soname, man page dropped in favour of --help)
[packages/nuspell.git] / nuspell.spec
CommitLineData
c597e3ca 1# TODO: catch2 >= 2.3.0 for tests, https://github.com/catchorg/Catch2.git
08eb1a1a
JB
2Summary: Nuspell spell checking library
3Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell
4Name: nuspell
373de8ef
JB
5Version: 5.1.0
6Release: 1
08eb1a1a
JB
7License: LGPL v3+
8Group: Libraries
9#Source0Download: https://github.com/nuspell/nuspell/releases
10Source0: https://github.com/nuspell/nuspell/archive/v%{version}/%{name}-%{version}.tar.gz
373de8ef 11# Source0-md5: 0a832f7932a7052e9cd9e27014be36c8
08eb1a1a 12URL: https://nuspell.github.io/
08eb1a1a
JB
13BuildRequires: cmake >= 3.8
14BuildRequires: libicu-devel
373de8ef
JB
15# -std=c++17, std::from_chars
16BuildRequires: libstdc++-devel >= 6:8
08eb1a1a
JB
17Requires: %{name}-libs = %{version}-%{release}
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Nuspell is a spell checker library and command-line program designed
22for languages with rich morphology and complex word compounding.
23Nuspell is a pure C++ re-implementation of Hunspell.
24
25Main 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
38Nuspell to biblioteka i narzędzie linii poleceń do sprawdzania
39pisowni, zaprojektowane dla języków o bogatej morfologii i złożonym
40łączeniu słów. Nuspell jest reimplementacją Hunspella w czystym C++.
41
42Głó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
55Summary: Nuspell spell checking library
56Summary(pl.UTF-8): Biblioteka sprawdzania pisowni Nuspell
57Group: Libraries
58
59%description libs
60Nuspell spell checking library.
61
62%description libs -l pl.UTF-8
63Biblioteka sprawdzania pisowni Nuspell.
64
65%package devel
66Summary: Header files for Nuspell library
67Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Nuspell
68Group: Development/Libraries
69Requires: %{name}-libs = %{version}-%{release}
70Requires: libicu-devel
373de8ef 71Requires: libstdc++-devel >= 6:8
08eb1a1a
JB
72
73%description devel
74Header files for Nuspell library.
75
76%description devel -l pl.UTF-8
77Pliki 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
87install -d build
88cd build
89%cmake ..
90
91%{__make}
92
93%install
94rm -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
103rm -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
This page took 0.220458 seconds and 4 git commands to generate.