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: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
13 # Source0-md5: 8a6ea1bb143c64e0edf5e49c7e7cb984
14 URL: https://github.com/AbiWord/enchant
15 BuildRequires: aspell-devel >= 2:0.50.0
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: dbus-glib-devel >= 0.62
19 BuildRequires: glib2-devel >= 1:2.12.0
20 BuildRequires: hspell-devel >= 0.9-3
21 BuildRequires: hunspell-devel
22 BuildRequires: libtool
23 BuildRequires: libvoikko-devel
24 BuildRequires: pkgconfig
25 Requires: glib2 >= 1:2.12.0
26 Suggests: %{name}-backend
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This project aims to provide an efficient, extensible abstraction for
31 dealing with different spell checking libraries. Enchant is meant to
32 provide a generic interface into various existing spell checking
33 libraries. These include, but are not limited to: Aspell/Pspell,
36 Enchant is also meant to be used in a cross-platform environment. Part
37 of this means that Enchant wants to limit its number of external
38 dependencies to 0, or as close is as humanly possible. Also, any
39 enchant consumer (i.e. a Word Processor) should not need to know about
40 what backend providers Enchant knows about. In fact, Enchant shouldn't
41 even need to know this information itself. To accomplish this, all of
42 Enchant's providers are dynamically loaded modules.
44 Enchant is also meant to be used in a multi-user environment, such as
45 Unix. It is preferable to have both a $USER and a $GLOBAL location for
46 both provider modules and for dictionaries themselves, when possible.
47 Enchant's module location algorithm takes this into account, and gives
48 preference to the $USER resources, when found.
50 %description -l pl.UTF-8
51 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
52 do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać
53 ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale
54 nie są ograniczone do): Aspella/Pspella, Hunspella, Hspella.
56 Enchant ma być także używany w środowisku wieloplatformowym. Oznacza
57 to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych
58 zależności do zera lub najbliżej jak to możliwe. Także dowolny klient
59 enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy,
60 jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet
61 Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć,
62 wszystkie backendy Enchanta są dynamicznie ładowanymi modułami.
64 Enchant ma być także używany w środowisku wieloużytkownikowym, takim
65 jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla
66 użytkownika jak i globalne lokalizacje zarówno dla modułów jak i
67 samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów
68 Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli
72 Summary: Header files for enchant library
73 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
76 Requires: glib2-devel >= 1:2.12.0
79 Header files for enchant library.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki enchant.
85 Summary: Static enchant library
86 Summary(pl.UTF-8): Statyczna biblioteka enchant
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
91 Static enchant library.
93 %description static -l pl.UTF-8
94 Statyczna biblioteka enchant.
97 Summary: aspell provider module for Enchant
98 Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta
100 Requires: %{name} = %{version}-%{release}
101 Requires: aspell >= 2:0.50.0
102 Provides: %{name}-backend
105 aspell provider module for Enchant.
107 %description aspell -l pl.UTF-8
108 Moduł obsługujący aspella dla Enchanta.
111 Summary: hspell provider module for Enchant
112 Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta
114 Requires: %{name} = %{version}-%{release}
115 Provides: %{name}-backend
118 hspell provider module for Enchant.
120 %description hspell -l pl.UTF-8
121 Moduł obsługujący hspella dla Enchanta.
124 Summary: hunspell provider module for Enchant
125 Summary(pl.UTF-8): Moduł obsługujący hunspella dla Enchanta
127 Requires: %{name} = %{version}-%{release}
128 Provides: %{name}-backend
130 %description hunspell
131 hunspell provider module for Enchant.
133 %description hunspell -l pl.UTF-8
134 Moduł obsługujący hunspella dla Enchanta.
137 Summary: Voikko provider module for Enchant
138 Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta
140 Requires: %{name} = %{version}-%{release}
141 Provides: %{name}-backend
144 Voikko (Finnish) provider module for Enchant.
146 %description voikko -l pl.UTF-8
147 Moduł obsługujący backend voikko (fiński) dla Enchanta.
150 Summary: Zemberek provider module for Enchant
151 Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta
153 Requires: %{name} = %{version}-%{release}
154 Requires: dbus-glib >= 0.62
155 Provides: %{name}-backend
157 %description zemberek
158 Zemberek (Turkish) provider module for Enchant.
160 %description zemberek -l pl.UTF-8
161 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
164 %setup -q -n enchant-%{version}
171 export CFLAGS="%{rpmcflags} -fpermissive"
172 export CXXFLAGS="%{rpmcxxflags} -fpermissive"
174 --enable-relocatable \
175 %{!?with_static_libs:--disable-static} \
180 --with-hunspell-dir=/usr/share/myspell
183 pkgdatadir=%{_datadir}/enchant-2
186 rm -rf $RPM_BUILD_ROOT
189 DESTDIR=$RPM_BUILD_ROOT \
190 pkgdatadir=%{_datadir}/enchant-2
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
194 # useless - modules loaded through libgmodule
195 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.{la,a}
198 rm -rf $RPM_BUILD_ROOT
200 %post -p /sbin/ldconfig
201 %postun -p /sbin/ldconfig
204 %defattr(644,root,root,755)
205 %doc AUTHORS HACKING NEWS README
206 %attr(755,root,root) %{_bindir}/enchant-2
207 %attr(755,root,root) %{_bindir}/enchant-lsmod-2
208 %attr(755,root,root) %{_libdir}/libenchant-2.so.*.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libenchant-2.so.2
210 %dir %{_libdir}/enchant-2
211 %{_datadir}/enchant-2
212 %{_mandir}/man1/enchant-2.1*
213 %{_mandir}/man1/enchant-lsmod-2.1*
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/libenchant-2.so
218 %{_includedir}/enchant-2
219 %{_pkgconfigdir}/enchant-2.pc
221 %if %{with static_libs}
223 %defattr(644,root,root,755)
224 %{_libdir}/libenchant-2.a
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/enchant-2/enchant_aspell.so
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hspell.so
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/enchant-2/enchant_hunspell.so
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/enchant-2/enchant_voikko.so
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/enchant-2/enchant_zemberek.so