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: f7edafae875616b83e7a17a7e5c2d585
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.
46 %description -l pl.UTF-8
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.UTF-8): 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.UTF-8
78 Pliki nagłówkowe biblioteki enchant.
81 Summary: Static enchant library
82 Summary(pl.UTF-8): Statyczna biblioteka enchant
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 Static enchant library.
89 %description static -l pl.UTF-8
90 Statyczna biblioteka enchant.
93 Summary: aspell provider module for Enchant
94 Summary(pl.UTF-8): 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.UTF-8
103 Moduł obsługujący aspella dla Enchanta.
106 Summary: hspell provider module for Enchant
107 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
109 Requires: %{name} = %{version}-%{release}
112 hspell provider module for Enchant.
114 %description hspell -l pl.UTF-8
115 Moduł obsługujący hspella dla Enchanta.
118 Summary: ispell provider module for Enchant
119 Summary(pl.UTF-8): Moduł obsługujący ispella dla Enchanta
121 Requires: %{name} = %{version}-%{release}
124 ispell provider module for Enchant.
126 %description ispell -l pl.UTF-8
127 Moduł obsługujący ispella dla Enchanta.
130 Summary: myspell provider module for Enchant
131 Summary(pl.UTF-8): Moduł obsługujący myspella dla Enchanta
133 Requires: %{name} = %{version}-%{release}
136 myspell provider module for Enchant.
138 %description myspell -l pl.UTF-8
139 Moduł obsługujący myspella dla Enchanta.
142 Summary: uspell provider module for Enchant
143 Summary(pl.UTF-8): Moduł obsługujący uspella dla Enchanta
145 Requires: %{name} = %{version}-%{release}
148 uspell provider module for Enchant.
150 %description uspell -l pl.UTF-8
151 Moduł obsługujący uspella dla Enchanta.
158 %{__aclocal} -I ac-helpers
163 %{!?with_static_libs:--disable-static} \
164 --with-ispell-dir=/usr/lib/ispell \
165 --with-uspell-dir=/usr/share/uspell
166 # --with-myspell-dir=/some/where
171 rm -rf $RPM_BUILD_ROOT
174 DESTDIR=$RPM_BUILD_ROOT
176 # useless - modules loaded through libgmodule
177 rm -f $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
180 rm -rf $RPM_BUILD_ROOT
184 %banner %{name} -e << EOF
185 you should install one of the backends for enchant:
191 and appropriate dictionaries
193 %postun -p /sbin/ldconfig
196 %defattr(644,root,root,755)
197 %doc AUTHORS MAINTAINERS NEWS README TODO
198 %attr(755,root,root) %{_bindir}/enchant
199 %attr(755,root,root) %{_bindir}/enchant-lsmod
200 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
201 %dir %{_libdir}/enchant
203 %{_mandir}/man1/enchant.1*
206 %defattr(644,root,root,755)
207 %attr(755,root,root) %{_libdir}/lib*.so
209 %{_includedir}/enchant
210 %{_pkgconfigdir}/*.pc
212 %if %{with static_libs}
214 %defattr(644,root,root,755)
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so*
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so*
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so*
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so*