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
8 # version 2.x packaged as enchant2
13 Source0: http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: de11011aff801dc61042828041fb59c7
15 Patch0: hunspell-1.4.patch
16 URL: http://www.abisource.com/enchant/
17 BuildRequires: aspell-devel >= 2:0.50.0
18 BuildRequires: autoconf
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: libtool
24 BuildRequires: libvoikko-devel
25 BuildRequires: pkgconfig
26 BuildRequires: uspell-devel >= 1.1.0
27 Requires: glib2 >= 1:2.12.0
28 Suggests: %{name}-backend
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This project aims to provide an efficient, extensible abstraction for
33 dealing with different spell checking libraries. Enchant is meant to
34 provide a generic interface into various existing spell checking
35 libraries. These include, but are not limited to: Aspell/Pspell,
36 Ispell, Hspell, Uspell.
38 Enchant is also meant to be used in a cross-platform environment. Part
39 of this means that Enchant wants to limit its number of external
40 dependencies to 0, or as close is as humanly possible. Also, any
41 enchant consumer (i.e. a Word Processor) should not need to know about
42 what backend providers Enchant knows about. In fact, Enchant shouldn't
43 even need to know this information itself. To accomplish this, all of
44 Enchant's providers are dynamically loaded modules.
46 Enchant is also meant to be used in a multi-user environment, such as
47 Unix. It is preferable to have both a $USER and a $GLOBAL location for
48 both provider modules and for dictionaries themselves, when possible.
49 Enchant's module location algorithm takes this into account, and gives
50 preference to the $USER resources, when found.
52 %description -l pl.UTF-8
53 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
54 do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
55 ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
56 nie są ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella.
58 Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
59 to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
60 zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
61 enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
62 jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
63 Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
64 wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
66 Enchant ma być także używany w środowisku wieloużytkownikowym, takim
67 jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
68 użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
69 samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
70 Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
74 Summary: Header files for enchant library
75 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
78 Requires: glib2-devel >= 1:2.12.0
81 Header files for enchant library.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki enchant.
87 Summary: Static enchant library
88 Summary(pl.UTF-8): Statyczna biblioteka enchant
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Static enchant library.
95 %description static -l pl.UTF-8
96 Statyczna biblioteka enchant.
99 Summary: aspell provider module for Enchant
100 Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta
102 Requires: %{name} = %{version}-%{release}
103 Requires: aspell >= 2:0.50.0
104 Provides: %{name}-backend
107 aspell provider module for Enchant.
109 %description aspell -l pl.UTF-8
110 Moduł obsługujący aspella dla Enchanta.
113 Summary: hspell provider module for Enchant
114 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
116 Requires: %{name} = %{version}-%{release}
117 Provides: %{name}-backend
120 hspell provider module for Enchant.
122 %description hspell -l pl.UTF-8
123 Moduł obsługujący hspella dla Enchanta.
126 Summary: ispell provider module for Enchant
127 Summary(pl.UTF-8): Moduł obsługujący ispella dla Enchanta
129 Requires: %{name} = %{version}-%{release}
130 Provides: %{name}-backend
133 ispell provider module for Enchant.
135 %description ispell -l pl.UTF-8
136 Moduł obsługujący ispella dla Enchanta.
139 Summary: myspell provider module for Enchant
140 Summary(pl.UTF-8): Moduł obsługujący myspella dla Enchanta
142 Requires: %{name} = %{version}-%{release}
143 Provides: %{name}-backend
146 myspell provider module for Enchant.
148 %description myspell -l pl.UTF-8
149 Moduł obsługujący myspella dla Enchanta.
152 Summary: uspell provider module for Enchant
153 Summary(pl.UTF-8): Moduł obsługujący uspella dla Enchanta
155 Requires: %{name} = %{version}-%{release}
156 Provides: %{name}-backend
159 uspell provider module for Enchant.
161 %description uspell -l pl.UTF-8
162 Moduł obsługujący uspella dla Enchanta.
165 Summary: Voikko provider module for Enchant
166 Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta
168 Requires: %{name} = %{version}-%{release}
169 Provides: %{name}-backend
172 Voikko (Finnish) provider module for Enchant.
174 %description voikko -l pl.UTF-8
175 Moduł obsługujący backend voikko (fiński) dla Enchanta.
178 Summary: Zemberek provider module for Enchant
179 Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta
181 Requires: %{name} = %{version}-%{release}
182 Requires: dbus-glib >= 0.62
183 Provides: %{name}-backend
185 %description zemberek
186 Zemberek (Turkish) provider module for Enchant.
188 %description zemberek -l pl.UTF-8
189 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
197 %{__aclocal} -I ac-helpers
200 export CFLAGS="%{rpmcflags} -fpermissive"
201 export CXXFLAGS="%{rpmcxxflags} -fpermissive"
204 %{!?with_static_libs:--disable-static} \
206 --with-ispell-dir=/usr/%{_lib}/ispell \
207 --with-myspell-dir=/usr/share/myspell \
208 --with-uspell-dir=/usr/share/uspell
213 rm -rf $RPM_BUILD_ROOT
216 DESTDIR=$RPM_BUILD_ROOT
218 # useless - modules loaded through libgmodule
219 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
222 rm -rf $RPM_BUILD_ROOT
224 %post -p /sbin/ldconfig
225 %postun -p /sbin/ldconfig
228 %defattr(644,root,root,755)
229 %doc AUTHORS MAINTAINERS NEWS README TODO
230 %attr(755,root,root) %{_bindir}/enchant
231 %attr(755,root,root) %{_bindir}/enchant-lsmod
232 %attr(755,root,root) %{_libdir}/libenchant.so.*.*.*
233 %attr(755,root,root) %ghost %{_libdir}/libenchant.so.1
234 %dir %{_libdir}/enchant
236 %{_mandir}/man1/enchant.1*
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libenchant.so
241 %{_libdir}/libenchant.la
242 %{_includedir}/enchant
243 %{_pkgconfigdir}/enchant.pc
245 %if %{with static_libs}
247 %defattr(644,root,root,755)
248 %{_libdir}/libenchant.a
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/enchant/libenchant_voikko.so
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_libdir}/enchant/libenchant_zemberek.so