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