3 %bcond_without static_libs # static library
5 Summary: libenchant - generic spell checking library
6 Summary(pl.UTF-8): libenchant - ogólna biblioteka sprawdzania pisowni
12 #Source0Download: https://github.com/AbiWord/enchant/releases
13 Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
14 # Source0-md5: 2200119317326bce456a7c831376ca6a
15 Patch0: %{name}-link.patch
16 URL: https://github.com/AbiWord/enchant
17 BuildRequires: aspell-devel >= 2:0.50.0
18 BuildRequires: autoconf >= 2.71
19 BuildRequires: automake
20 BuildRequires: dbus-glib-devel >= 0.62
21 BuildRequires: glib2-devel >= 1:2.12.0
23 BuildRequires: hspell-devel >= 0.9-3
24 BuildRequires: hunspell-devel
25 BuildRequires: libltdl-devel
26 BuildRequires: libstdc++-devel >= 6:4.7
27 BuildRequires: libtool >= 2:2
28 BuildRequires: libvoikko-devel
29 BuildRequires: nuspell-devel >= 5.1.0
30 BuildRequires: pkgconfig
31 BuildRequires: rpm-build >= 4.6
32 Requires: glib2 >= 1:2.12.0
33 Suggests: %{name}-backend
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This project aims to provide an efficient, extensible abstraction for
38 dealing with different spell checking libraries. Enchant is meant to
39 provide a generic interface into various existing spell checking
40 libraries. These include, but are not limited to: Aspell/Pspell,
43 Enchant is also meant to be used in a cross-platform environment. Part
44 of this means that Enchant wants to limit its number of external
45 dependencies to 0, or as close is as humanly possible. Also, any
46 enchant consumer (i.e. a Word Processor) should not need to know about
47 what backend providers Enchant knows about. In fact, Enchant shouldn't
48 even need to know this information itself. To accomplish this, all of
49 Enchant's providers are dynamically loaded modules.
51 Enchant is also meant to be used in a multi-user environment, such as
52 Unix. It is preferable to have both a $USER and a $GLOBAL location for
53 both provider modules and for dictionaries themselves, when possible.
54 Enchant's module location algorithm takes this into account, and gives
55 preference to the $USER resources, when found.
57 %description -l pl.UTF-8
58 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
59 do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
60 ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
61 nie są ograniczone do): Aspella/Pspella, Hunspella, Hspella.
63 Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
64 to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
65 zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
66 enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
67 jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
68 Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
69 wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
71 Enchant ma być także używany w środowisku wieloużytkownikowym, takim
72 jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
73 użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
74 samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
75 Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
79 Summary: Header files for enchant library
80 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant
81 Group: Development/Libraries
82 Requires: %{name} = %{version}-%{release}
83 Requires: glib2-devel >= 1:2.12.0
86 Header files for enchant library.
88 %description devel -l pl.UTF-8
89 Pliki nagłówkowe biblioteki enchant.
92 Summary: Static enchant library
93 Summary(pl.UTF-8): Statyczna biblioteka enchant
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 Static enchant library.
100 %description static -l pl.UTF-8
101 Statyczna biblioteka enchant.
104 Summary: API documentation for Enchant 2 library
105 Summary(pl.UTF-8): Dokumentacja API biblioteki Enchant 2
110 API documentation for Enchant 2 library.
112 %description apidocs -l pl.UTF-8
113 Dokumentacja API biblioteki Enchant 2.
116 Summary: aspell provider module for Enchant
117 Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta
119 Requires: %{name} = %{version}-%{release}
120 Requires: aspell >= 2:0.50.0
121 Provides: %{name}-backend
124 aspell provider module for Enchant.
126 %description aspell -l pl.UTF-8
127 Moduł obsługujący aspella dla Enchanta.
130 Summary: hspell provider module for Enchant
131 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
133 Requires: %{name} = %{version}-%{release}
134 Provides: %{name}-backend
137 hspell provider module for Enchant.
139 %description hspell -l pl.UTF-8
140 Moduł obsługujący hspella dla Enchanta.
143 Summary: hunspell provider module for Enchant
144 Summary(pl.UTF-8): Moduł obsługujący hunspella dla Enchanta
146 Requires: %{name} = %{version}-%{release}
147 Provides: %{name}-backend
149 %description hunspell
150 hunspell provider module for Enchant.
152 %description hunspell -l pl.UTF-8
153 Moduł obsługujący hunspella dla Enchanta.
156 Summary: nuspell provider module for Enchant
157 Summary(pl.UTF-8): Moduł obsługujący nuspella dla Enchanta
159 Requires: %{name} = %{version}-%{release}
160 Requires: nuspell-libs >= 5.1.0
161 Provides: %{name}-backend
164 nuspell provider module for Enchant.
166 %description nuspell -l pl.UTF-8
167 Moduł obsługujący nuspella dla Enchanta.
170 Summary: Voikko provider module for Enchant
171 Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta
173 Requires: %{name} = %{version}-%{release}
174 Provides: %{name}-backend
177 Voikko (Finnish) provider module for Enchant.
179 %description voikko -l pl.UTF-8
180 Moduł obsługujący backend voikko (fiński) dla Enchanta.
183 Summary: Zemberek provider module for Enchant
184 Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta
186 Requires: %{name} = %{version}-%{release}
187 Requires: dbus-glib >= 0.62
188 Provides: %{name}-backend
190 %description zemberek
191 Zemberek (Turkish) provider module for Enchant.
193 %description zemberek -l pl.UTF-8
194 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
197 %setup -q -n enchant-%{version}
206 %{!?with_static_libs:--disable-static} \
210 --with-hunspell-dir=/usr/share/myspell \
217 rm -rf $RPM_BUILD_ROOT
220 DESTDIR=$RPM_BUILD_ROOT
222 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
224 # useless - modules loaded through libgmodule
225 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.la
226 %if %{with static_libs}
227 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.a
229 # HTML version of man pages
230 %{__rm} $RPM_BUILD_ROOT%{_docdir}/enchant/enchant*.html
233 rm -rf $RPM_BUILD_ROOT
235 %post -p /sbin/ldconfig
236 %postun -p /sbin/ldconfig
239 %defattr(644,root,root,755)
240 %doc AUTHORS HACKING NEWS README
241 %attr(755,root,root) %{_bindir}/enchant-2
242 %attr(755,root,root) %{_bindir}/enchant-lsmod-2
243 %attr(755,root,root) %{_libdir}/libenchant-2.so.*.*.*
244 %attr(755,root,root) %ghost %{_libdir}/libenchant-2.so.2
245 %dir %{_libdir}/enchant-2
246 %{_datadir}/enchant-2
247 %{_mandir}/man1/enchant-2.1*
248 %{_mandir}/man1/enchant-lsmod-2.1*
249 %{_mandir}/man5/enchant.5*
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libenchant-2.so
254 %{_includedir}/enchant-2
255 %{_pkgconfigdir}/enchant-2.pc
257 %if %{with static_libs}
259 %defattr(644,root,root,755)
260 %{_libdir}/libenchant-2.a
264 %defattr(644,root,root,755)
265 %doc doxygen/html/{search,*.css,*.html,*.js,*.png}
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/enchant-2/enchant_aspell.so
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hspell.so
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hunspell.so
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/enchant-2/enchant_nuspell.so
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/enchant-2/enchant_voikko.so
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/enchant-2/enchant_zemberek.so