3 %bcond_without static_libs # don't build static library
5 Summary: libenchant - generic spell checking library
6 Summary(pl): libenchant - ogólna biblioteka sprawdzania pisowni
12 Source0: http://www.abisource.com/downloads/enchant/1.2.6/%{name}-%{version}.tar.gz
13 # Source0-md5: 617cfe8910245cc0c4d363b54dd6d207
14 URL: http://www.abisource.com/enchant/
15 BuildRequires: aspell-devel >= 2:0.50.0
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: glib2-devel >= 1:2.12.0
19 BuildRequires: hspell-devel >= 0.9-3
20 BuildRequires: libtool
21 BuildRequires: pkgconfig
22 BuildRequires: uspell-devel >= 1.1.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This project aims to provide an efficient, extensible abstraction for
27 dealing with different spell checking libraries. Enchant is meant to
28 provide a generic interface into various existing spell checking
29 libraries. These include, but are not limited to: Aspell/Pspell,
30 Ispell, Hspell, Uspell.
32 Enchant is also meant to be used in a cross-platform environment. Part
33 of this means that Enchant wants to limit its number of external
34 dependencies to 0, or as close is as humanly possible. Also, any
35 enchant consumer (i.e. a Word Processor) should not need to know about
36 what backend providers Enchant knows about. In fact, Enchant shouldn't
37 even need to know this information itself. To accomplish this, all of
38 Enchant's providers are dynamically loaded modules.
40 Enchant is also meant to be used in a multi-user environment, such as
41 Unix. It is preferable to have both a $USER and a $GLOBAL location for
42 both provider modules and for dictionaries themselves, when possible.
43 Enchant's module location algorithm takes this into account, and gives
44 preference to the $USER resources, when found.
47 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
48 do obs³ugi ró¿nych bibliotek kontroli pisowni. Enchant ma dostarczaæ
49 ogólny interfejs do ró¿nych istniej±cych bibliotek. Obejmuj± one (ale
50 nie s± ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella.
52 Enchant ma byæ tak¿e u¿ywany w ¶rodowisku wieloplatformowym. Oznacza
53 to miêdzy innymi, ¿e Enchant ma mieæ ograniczon± liczbê zewnêtrznych
54 zale¿no¶ci do zera lub najbli¿ej jak to mo¿liwe. Tak¿e dowolny klient
55 enchanta (czyli procesor tekstu) nie powinien potrzebowaæ wiedzy,
56 jakie backendy s± dostêpne dla Enchanta. W rzeczywisto¶ci nawet
57 Enchant nie powinien potrzebowaæ takiej informacji. Aby to osi±gn±æ,
58 wszystkie backendy Enchanta s± dynamicznie ³adowanymi modu³ami.
60 Enchant ma byæ tak¿e u¿ywany w ¶rodowisku wielou¿ytkownikowym, takim
61 jak Unix. Preferuje siê, ¿eby istnia³y zarówno specyficzne dla
62 u¿ytkownika jak i globalne lokalizacje zarówno dla modu³ów jak i
63 samych s³owników, je¶li to mo¿liwe. Algorytm poszukiwania modu³ów
64 Enchanta bierze to pod uwagê i preferuje zasoby u¿ytkownika, je¶li
68 Summary: Header files for enchant library
69 Summary(pl): Pliki nag³ówkowe biblioteki enchant
70 Group: Development/Libraries
71 Requires: %{name} = %{version}-%{release}
72 Requires: glib2-devel >= 1:2.12.0
75 Header files for enchant library.
77 %description devel -l pl
78 Pliki nag³ówkowe biblioteki enchant.
81 Summary: Static enchant library
82 Summary(pl): Statyczna biblioteka enchant
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 Static enchant library.
89 %description static -l pl
90 Statyczna biblioteka enchant.
93 Summary: aspell provider module for Enchant
94 Summary(pl): Modu³ obs³uguj±cy aspella dla Enchanta
96 Requires: %{name} = %{version}-%{release}
97 Requires: aspell >= 2:0.50.0
100 aspell provider module for Enchant.
102 %description aspell -l pl
103 Modu³ obs³uguj±cy aspella dla Enchanta.
106 Summary: hspell provider module for Enchant
107 Summary(pl): Modu³ obs³uguj±cy hspella dla Enchanta
109 Requires: %{name} = %{version}-%{release}
112 hspell provider module for Enchant.
114 %description hspell -l pl
115 Modu³ obs³uguj±cy hspella dla Enchanta.
118 Summary: ispell provider module for Enchant
119 Summary(pl): Modu³ obs³uguj±cy ispella dla Enchanta
121 Requires: %{name} = %{version}-%{release}
124 ispell provider module for Enchant.
126 %description ispell -l pl
127 Modu³ obs³uguj±cy ispella dla Enchanta.
130 Summary: myspell provider module for Enchant
131 Summary(pl): Modu³ obs³uguj±cy myspella dla Enchanta
133 Requires: %{name} = %{version}-%{release}
136 myspell provider module for Enchant.
138 %description myspell -l pl
139 Modu³ obs³uguj±cy myspella dla Enchanta.
142 Summary: uspell provider module for Enchant
143 Summary(pl): Modu³ obs³uguj±cy uspella dla Enchanta
145 Requires: %{name} = %{version}-%{release}
148 uspell provider module for Enchant.
150 %description uspell -l pl
151 Modu³ obs³uguj±cy uspella dla Enchanta.
158 %{__aclocal} -I ac-helpers
161 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
164 %{!?with_static_libs:--disable-static} \
165 --with-ispell-dir=/usr/lib/ispell \
166 --with-uspell-dir=/usr/share/uspell
167 # --with-myspell-dir=/some/where
172 rm -rf $RPM_BUILD_ROOT
175 DESTDIR=$RPM_BUILD_ROOT
177 # useless - modules loaded through libgmodule
178 rm -f $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
181 rm -rf $RPM_BUILD_ROOT
185 %banner %{name} -e << EOF
186 you should install one of the backends for enchant:
192 and appropriate dictionaries
194 %postun -p /sbin/ldconfig
197 %defattr(644,root,root,755)
198 %doc AUTHORS MAINTAINERS NEWS README TODO
199 %attr(755,root,root) %{_bindir}/enchant
200 %attr(755,root,root) %{_bindir}/enchant-lsmod
201 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
202 %dir %{_libdir}/enchant
204 %{_mandir}/man1/enchant.1*
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/lib*.so
210 %{_includedir}/enchant
211 %{_pkgconfigdir}/*.pc
213 %if %{with static_libs}
215 %defattr(644,root,root,755)
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so*
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so*
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so*
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so*
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so*