3 %bcond_without static_libs # don't build 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: 292633e58b1c829fd8705760e9e74718
15 Patch0: %{name}-link.patch
16 URL: https://github.com/AbiWord/enchant
17 BuildRequires: aspell-devel >= 2:0.50.0
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: dbus-glib-devel >= 0.62
21 BuildRequires: glib2-devel >= 1:2.12.0
22 BuildRequires: hspell-devel >= 0.9-3
23 BuildRequires: hunspell-devel
24 BuildRequires: libstdc++-devel >= 6:4.7
25 BuildRequires: libtool >= 2:2
26 BuildRequires: libvoikko-devel
27 BuildRequires: nuspell-devel
28 BuildRequires: pkgconfig
29 Requires: glib2 >= 1:2.12.0
30 Suggests: %{name}-backend
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This project aims to provide an efficient, extensible abstraction for
35 dealing with different spell checking libraries. Enchant is meant to
36 provide a generic interface into various existing spell checking
37 libraries. These include, but are not limited to: Aspell/Pspell,
40 Enchant is also meant to be used in a cross-platform environment. Part
41 of this means that Enchant wants to limit its number of external
42 dependencies to 0, or as close is as humanly possible. Also, any
43 enchant consumer (i.e. a Word Processor) should not need to know about
44 what backend providers Enchant knows about. In fact, Enchant shouldn't
45 even need to know this information itself. To accomplish this, all of
46 Enchant's providers are dynamically loaded modules.
48 Enchant is also meant to be used in a multi-user environment, such as
49 Unix. It is preferable to have both a $USER and a $GLOBAL location for
50 both provider modules and for dictionaries themselves, when possible.
51 Enchant's module location algorithm takes this into account, and gives
52 preference to the $USER resources, when found.
54 %description -l pl.UTF-8
55 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
56 do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
57 ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
58 nie są ograniczone do): Aspella/Pspella, Hunspella, Hspella.
60 Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
61 to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
62 zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
63 enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
64 jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
65 Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
66 wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
68 Enchant ma być także używany w środowisku wieloużytkownikowym, takim
69 jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
70 użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
71 samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
72 Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
76 Summary: Header files for enchant library
77 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
80 Requires: glib2-devel >= 1:2.12.0
83 Header files for enchant library.
85 %description devel -l pl.UTF-8
86 Pliki nagłówkowe biblioteki enchant.
89 Summary: Static enchant library
90 Summary(pl.UTF-8): Statyczna biblioteka enchant
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 Static enchant library.
97 %description static -l pl.UTF-8
98 Statyczna biblioteka enchant.
101 Summary: aspell provider module for Enchant
102 Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta
104 Requires: %{name} = %{version}-%{release}
105 Requires: aspell >= 2:0.50.0
106 Provides: %{name}-backend
109 aspell provider module for Enchant.
111 %description aspell -l pl.UTF-8
112 Moduł obsługujący aspella dla Enchanta.
115 Summary: hspell provider module for Enchant
116 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
118 Requires: %{name} = %{version}-%{release}
119 Provides: %{name}-backend
122 hspell provider module for Enchant.
124 %description hspell -l pl.UTF-8
125 Moduł obsługujący hspella dla Enchanta.
128 Summary: hunspell provider module for Enchant
129 Summary(pl.UTF-8): Moduł obsługujący hunspella dla Enchanta
131 Requires: %{name} = %{version}-%{release}
132 Provides: %{name}-backend
134 %description hunspell
135 hunspell provider module for Enchant.
137 %description hunspell -l pl.UTF-8
138 Moduł obsługujący hunspella dla Enchanta.
141 Summary: nuspell provider module for Enchant
142 Summary(pl.UTF-8): Moduł obsługujący nuspella dla Enchanta
144 Requires: %{name} = %{version}-%{release}
145 Provides: %{name}-backend
148 nuspell provider module for Enchant.
150 %description nuspell -l pl.UTF-8
151 Moduł obsługujący nuspella dla Enchanta.
154 Summary: Voikko provider module for Enchant
155 Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta
157 Requires: %{name} = %{version}-%{release}
158 Provides: %{name}-backend
161 Voikko (Finnish) provider module for Enchant.
163 %description voikko -l pl.UTF-8
164 Moduł obsługujący backend voikko (fiński) dla Enchanta.
167 Summary: Zemberek provider module for Enchant
168 Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta
170 Requires: %{name} = %{version}-%{release}
171 Requires: dbus-glib >= 0.62
172 Provides: %{name}-backend
174 %description zemberek
175 Zemberek (Turkish) provider module for Enchant.
177 %description zemberek -l pl.UTF-8
178 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
181 %setup -q -n enchant-%{version}
190 %{!?with_static_libs:--disable-static} \
194 --with-hunspell-dir=/usr/share/myspell \
199 pkgdatadir=%{_datadir}/enchant-2
202 rm -rf $RPM_BUILD_ROOT
205 DESTDIR=$RPM_BUILD_ROOT \
206 pkgdatadir=%{_datadir}/enchant-2
208 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
210 # useless - modules loaded through libgmodule
211 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.la
212 %if %{with static_libs}
213 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.a
217 rm -rf $RPM_BUILD_ROOT
219 %post -p /sbin/ldconfig
220 %postun -p /sbin/ldconfig
223 %defattr(644,root,root,755)
224 %doc AUTHORS HACKING NEWS README
225 %attr(755,root,root) %{_bindir}/enchant-2
226 %attr(755,root,root) %{_bindir}/enchant-lsmod-2
227 %attr(755,root,root) %{_libdir}/libenchant-2.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libenchant-2.so.2
229 %dir %{_libdir}/enchant-2
230 %{_datadir}/enchant-2
231 %{_mandir}/man1/enchant-2.1*
232 %{_mandir}/man1/enchant-lsmod-2.1*
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_libdir}/libenchant-2.so
237 %{_includedir}/enchant-2
238 %{_pkgconfigdir}/enchant-2.pc
240 %if %{with static_libs}
242 %defattr(644,root,root,755)
243 %{_libdir}/libenchant-2.a
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/enchant-2/enchant_aspell.so
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hspell.so
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hunspell.so
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/enchant-2/enchant_nuspell.so
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_libdir}/enchant-2/enchant_voikko.so
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/enchant-2/enchant_zemberek.so