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 Source0: http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: de11011aff801dc61042828041fb59c7
14 Patch0: hunspell-1.4.patch
15 URL: http://www.abisource.com/enchant/
16 BuildRequires: aspell-devel >= 2:0.50.0
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: dbus-glib-devel >= 0.62
20 BuildRequires: glib2-devel >= 1:2.12.0
21 BuildRequires: hspell-devel >= 0.9-3
22 BuildRequires: libtool
23 BuildRequires: libvoikko-devel
24 BuildRequires: pkgconfig
25 BuildRequires: uspell-devel >= 1.1.0
26 Requires: glib2 >= 1:2.12.0
27 Suggests: %{name}-backend
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This project aims to provide an efficient, extensible abstraction for
32 dealing with different spell checking libraries. Enchant is meant to
33 provide a generic interface into various existing spell checking
34 libraries. These include, but are not limited to: Aspell/Pspell,
35 Ispell, Hspell, Uspell.
37 Enchant is also meant to be used in a cross-platform environment. Part
38 of this means that Enchant wants to limit its number of external
39 dependencies to 0, or as close is as humanly possible. Also, any
40 enchant consumer (i.e. a Word Processor) should not need to know about
41 what backend providers Enchant knows about. In fact, Enchant shouldn't
42 even need to know this information itself. To accomplish this, all of
43 Enchant's providers are dynamically loaded modules.
45 Enchant is also meant to be used in a multi-user environment, such as
46 Unix. It is preferable to have both a $USER and a $GLOBAL location for
47 both provider modules and for dictionaries themselves, when possible.
48 Enchant's module location algorithm takes this into account, and gives
49 preference to the $USER resources, when found.
51 %description -l pl.UTF-8
52 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
53 do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
54 ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
55 nie są ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella.
57 Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
58 to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
59 zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
60 enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
61 jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
62 Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
63 wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
65 Enchant ma być także używany w środowisku wieloużytkownikowym, takim
66 jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
67 użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
68 samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
69 Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
73 Summary: Header files for enchant library
74 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: glib2-devel >= 1:2.12.0
80 Header files for enchant library.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki enchant.
86 Summary: Static enchant library
87 Summary(pl.UTF-8): Statyczna biblioteka enchant
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
92 Static enchant library.
94 %description static -l pl.UTF-8
95 Statyczna biblioteka enchant.
98 Summary: aspell provider module for Enchant
99 Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta
101 Requires: %{name} = %{version}-%{release}
102 Requires: aspell >= 2:0.50.0
103 Provides: %{name}-backend
106 aspell provider module for Enchant.
108 %description aspell -l pl.UTF-8
109 Moduł obsługujący aspella dla Enchanta.
112 Summary: hspell provider module for Enchant
113 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
115 Requires: %{name} = %{version}-%{release}
116 Provides: %{name}-backend
119 hspell provider module for Enchant.
121 %description hspell -l pl.UTF-8
122 Moduł obsługujący hspella dla Enchanta.
125 Summary: ispell provider module for Enchant
126 Summary(pl.UTF-8): Moduł obsługujący ispella dla Enchanta
128 Requires: %{name} = %{version}-%{release}
129 Provides: %{name}-backend
132 ispell provider module for Enchant.
134 %description ispell -l pl.UTF-8
135 Moduł obsługujący ispella dla Enchanta.
138 Summary: myspell provider module for Enchant
139 Summary(pl.UTF-8): Moduł obsługujący myspella dla Enchanta
141 Requires: %{name} = %{version}-%{release}
142 Provides: %{name}-backend
145 myspell provider module for Enchant.
147 %description myspell -l pl.UTF-8
148 Moduł obsługujący myspella dla Enchanta.
151 Summary: uspell provider module for Enchant
152 Summary(pl.UTF-8): Moduł obsługujący uspella dla Enchanta
154 Requires: %{name} = %{version}-%{release}
155 Provides: %{name}-backend
158 uspell provider module for Enchant.
160 %description uspell -l pl.UTF-8
161 Moduł obsługujący uspella dla Enchanta.
164 Summary: Voikko provider module for Enchant
165 Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta
167 Requires: %{name} = %{version}-%{release}
168 Provides: %{name}-backend
171 Voikko (Finnish) provider module for Enchant.
173 %description voikko -l pl.UTF-8
174 Moduł obsługujący backend voikko (fiński) dla Enchanta.
177 Summary: Zemberek provider module for Enchant
178 Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta
180 Requires: %{name} = %{version}-%{release}
181 Requires: dbus-glib >= 0.62
182 Provides: %{name}-backend
184 %description zemberek
185 Zemberek (Turkish) provider module for Enchant.
187 %description zemberek -l pl.UTF-8
188 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
196 %{__aclocal} -I ac-helpers
201 %{!?with_static_libs:--disable-static} \
203 --with-ispell-dir=/usr/%{_lib}/ispell \
204 --with-myspell-dir=/usr/share/myspell \
205 --with-uspell-dir=/usr/share/uspell
210 rm -rf $RPM_BUILD_ROOT
213 DESTDIR=$RPM_BUILD_ROOT
215 # useless - modules loaded through libgmodule
216 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
219 rm -rf $RPM_BUILD_ROOT
221 %post -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
225 %defattr(644,root,root,755)
226 %doc AUTHORS MAINTAINERS NEWS README TODO
227 %attr(755,root,root) %{_bindir}/enchant
228 %attr(755,root,root) %{_bindir}/enchant-lsmod
229 %attr(755,root,root) %{_libdir}/libenchant.so.*.*.*
230 %attr(755,root,root) %ghost %{_libdir}/libenchant.so.1
231 %dir %{_libdir}/enchant
233 %{_mandir}/man1/enchant.1*
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libenchant.so
238 %{_libdir}/libenchant.la
239 %{_includedir}/enchant
240 %{_pkgconfigdir}/enchant.pc
242 %if %{with static_libs}
244 %defattr(644,root,root,755)
245 %{_libdir}/libenchant.a
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/enchant/libenchant_voikko.so
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/enchant/libenchant_zemberek.so