]>
Commit | Line | Data |
---|---|---|
29fb431e KK |
1 | # |
2 | # Conditional build: | |
8f217d7a | 3 | %bcond_without static_libs # static library |
29fb431e | 4 | # |
aadb9f29 | 5 | Summary: libenchant - generic spell checking library |
d096dd10 | 6 | Summary(pl.UTF-8): libenchant - ogólna biblioteka sprawdzania pisowni |
6396d84b | 7 | Name: enchant2 |
75ee35b8 | 8 | Version: 2.6.1 |
e3be4d8c | 9 | Release: 1 |
6396d84b | 10 | License: LGPL v2+ |
aadb9f29 | 11 | Group: Libraries |
75302901 | 12 | #Source0Download: https://github.com/AbiWord/enchant/releases |
6396d84b | 13 | Source0: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz |
75ee35b8 | 14 | # Source0-md5: b22bc2ce92f74456f40acc9ce87be1a9 |
49d9329f | 15 | Patch0: %{name}-link.patch |
6396d84b | 16 | URL: https://github.com/AbiWord/enchant |
78624d38 | 17 | BuildRequires: aspell-devel >= 2:0.50.0 |
e3be4d8c | 18 | BuildRequires: autoconf >= 2.71 |
d7679d93 | 19 | BuildRequires: automake |
1c670fa4 | 20 | BuildRequires: dbus-glib-devel >= 0.62 |
0584148a | 21 | BuildRequires: glib2-devel >= 1:2.12.0 |
a85ee585 | 22 | BuildRequires: groff |
29fb431e | 23 | BuildRequires: hspell-devel >= 0.9-3 |
6396d84b | 24 | BuildRequires: hunspell-devel |
d3d02b70 | 25 | BuildRequires: libltdl-devel |
49d9329f JB |
26 | BuildRequires: libstdc++-devel >= 6:4.7 |
27 | BuildRequires: libtool >= 2:2 | |
ba35e5de | 28 | BuildRequires: libvoikko-devel |
0c89cc49 | 29 | BuildRequires: nuspell-devel >= 5.1.0 |
aadb9f29 | 30 | BuildRequires: pkgconfig |
1c670fa4 | 31 | Requires: glib2 >= 1:2.12.0 |
f0ccf25e | 32 | Suggests: %{name}-backend |
aadb9f29 JB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | This project aims to provide an efficient, extensible abstraction for | |
37 | dealing with different spell checking libraries. Enchant is meant to | |
38 | provide a generic interface into various existing spell checking | |
39 | libraries. These include, but are not limited to: Aspell/Pspell, | |
6396d84b | 40 | Hunspell, Hspell. |
aadb9f29 JB |
41 | |
42 | Enchant is also meant to be used in a cross-platform environment. Part | |
43 | of this means that Enchant wants to limit its number of external | |
44 | dependencies to 0, or as close is as humanly possible. Also, any | |
45 | enchant consumer (i.e. a Word Processor) should not need to know about | |
46 | what backend providers Enchant knows about. In fact, Enchant shouldn't | |
47 | even need to know this information itself. To accomplish this, all of | |
48 | Enchant's providers are dynamically loaded modules. | |
49 | ||
50 | Enchant is also meant to be used in a multi-user environment, such as | |
51 | Unix. It is preferable to have both a $USER and a $GLOBAL location for | |
52 | both provider modules and for dictionaries themselves, when possible. | |
53 | Enchant's module location algorithm takes this into account, and gives | |
54 | preference to the $USER resources, when found. | |
55 | ||
a35cdb5e | 56 | %description -l pl.UTF-8 |
aadb9f29 | 57 | Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji |
a35cdb5e JR |
58 | do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać |
59 | ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale | |
6396d84b | 60 | nie są ograniczone do): Aspella/Pspella, Hunspella, Hspella. |
a35cdb5e JR |
61 | |
62 | Enchant ma być także używany w środowisku wieloplatformowym. Oznacza | |
63 | to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych | |
64 | zależności do zera lub najbliżej jak to możliwe. Także dowolny klient | |
65 | enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy, | |
66 | jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet | |
67 | Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć, | |
68 | wszystkie backendy Enchanta są dynamicznie ładowanymi modułami. | |
69 | ||
70 | Enchant ma być także używany w środowisku wieloużytkownikowym, takim | |
71 | jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla | |
72 | użytkownika jak i globalne lokalizacje zarówno dla modułów jak i | |
73 | samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów | |
74 | Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli | |
aadb9f29 JB |
75 | takie znajdzie. |
76 | ||
77 | %package devel | |
78 | Summary: Header files for enchant library | |
d096dd10 | 79 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki enchant |
aadb9f29 | 80 | Group: Development/Libraries |
78624d38 | 81 | Requires: %{name} = %{version}-%{release} |
0584148a | 82 | Requires: glib2-devel >= 1:2.12.0 |
aadb9f29 JB |
83 | |
84 | %description devel | |
85 | Header files for enchant library. | |
86 | ||
a35cdb5e JR |
87 | %description devel -l pl.UTF-8 |
88 | Pliki nagłówkowe biblioteki enchant. | |
aadb9f29 JB |
89 | |
90 | %package static | |
91 | Summary: Static enchant library | |
d096dd10 | 92 | Summary(pl.UTF-8): Statyczna biblioteka enchant |
aadb9f29 | 93 | Group: Development/Libraries |
78624d38 | 94 | Requires: %{name}-devel = %{version}-%{release} |
aadb9f29 JB |
95 | |
96 | %description static | |
97 | Static enchant library. | |
98 | ||
a35cdb5e | 99 | %description static -l pl.UTF-8 |
aadb9f29 JB |
100 | Statyczna biblioteka enchant. |
101 | ||
102 | %package aspell | |
103 | Summary: aspell provider module for Enchant | |
d096dd10 | 104 | Summary(pl.UTF-8): Moduł obsługujący aspella dla Enchanta |
aadb9f29 | 105 | Group: Libraries |
78624d38 JB |
106 | Requires: %{name} = %{version}-%{release} |
107 | Requires: aspell >= 2:0.50.0 | |
f0ccf25e | 108 | Provides: %{name}-backend |
aadb9f29 JB |
109 | |
110 | %description aspell | |
111 | aspell provider module for Enchant. | |
112 | ||
a35cdb5e JR |
113 | %description aspell -l pl.UTF-8 |
114 | Moduł obsługujący aspella dla Enchanta. | |
aadb9f29 | 115 | |
e800cd19 | 116 | %package hspell |
e5a855bb | 117 | Summary: hspell provider module for Enchant |
d096dd10 | 118 | Summary(pl.UTF-8): Moduł obsługujący hspella dla Enchanta |
e800cd19 | 119 | Group: Libraries |
120 | Requires: %{name} = %{version}-%{release} | |
f0ccf25e | 121 | Provides: %{name}-backend |
e800cd19 | 122 | |
123 | %description hspell | |
124 | hspell provider module for Enchant. | |
125 | ||
a35cdb5e JR |
126 | %description hspell -l pl.UTF-8 |
127 | Moduł obsługujący hspella dla Enchanta. | |
e800cd19 | 128 | |
6396d84b MB |
129 | %package hunspell |
130 | Summary: hunspell provider module for Enchant | |
131 | Summary(pl.UTF-8): Moduł obsługujący hunspella dla Enchanta | |
aadb9f29 | 132 | Group: Libraries |
78624d38 | 133 | Requires: %{name} = %{version}-%{release} |
f0ccf25e | 134 | Provides: %{name}-backend |
aadb9f29 | 135 | |
6396d84b MB |
136 | %description hunspell |
137 | hunspell provider module for Enchant. | |
aadb9f29 | 138 | |
6396d84b MB |
139 | %description hunspell -l pl.UTF-8 |
140 | Moduł obsługujący hunspella dla Enchanta. | |
aadb9f29 | 141 | |
49d9329f JB |
142 | %package nuspell |
143 | Summary: nuspell provider module for Enchant | |
144 | Summary(pl.UTF-8): Moduł obsługujący nuspella dla Enchanta | |
145 | Group: Libraries | |
146 | Requires: %{name} = %{version}-%{release} | |
0c89cc49 | 147 | Requires: nuspell-libs >= 5.1.0 |
49d9329f JB |
148 | Provides: %{name}-backend |
149 | ||
150 | %description nuspell | |
151 | nuspell provider module for Enchant. | |
152 | ||
153 | %description nuspell -l pl.UTF-8 | |
154 | Moduł obsługujący nuspella dla Enchanta. | |
155 | ||
ba35e5de JB |
156 | %package voikko |
157 | Summary: Voikko provider module for Enchant | |
158 | Summary(pl.UTF-8): Moduł obsługujący backend voikko dla Enchanta | |
159 | Group: Libraries | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | Provides: %{name}-backend | |
162 | ||
163 | %description voikko | |
164 | Voikko (Finnish) provider module for Enchant. | |
165 | ||
166 | %description voikko -l pl.UTF-8 | |
167 | Moduł obsługujący backend voikko (fiński) dla Enchanta. | |
168 | ||
1c670fa4 JB |
169 | %package zemberek |
170 | Summary: Zemberek provider module for Enchant | |
171 | Summary(pl.UTF-8): Moduł obsługujący backend zemberek dla Enchanta | |
172 | Group: Libraries | |
173 | Requires: %{name} = %{version}-%{release} | |
174 | Requires: dbus-glib >= 0.62 | |
175 | Provides: %{name}-backend | |
176 | ||
177 | %description zemberek | |
178 | Zemberek (Turkish) provider module for Enchant. | |
179 | ||
180 | %description zemberek -l pl.UTF-8 | |
181 | Moduł obsługujący backend zemberek (turecki) dla Enchanta. | |
182 | ||
aadb9f29 | 183 | %prep |
6396d84b | 184 | %setup -q -n enchant-%{version} |
49d9329f | 185 | %patch0 -p1 |
aadb9f29 JB |
186 | |
187 | %build | |
e579ad53 | 188 | %{__libtoolize} |
6396d84b | 189 | %{__aclocal} -I m4 |
e579ad53 | 190 | %{__autoconf} |
191 | %{__automake} | |
aadb9f29 | 192 | %configure \ |
29fb431e | 193 | %{!?with_static_libs:--disable-static} \ |
6396d84b MB |
194 | --with-aspell \ |
195 | --with-hspell \ | |
6396d84b | 196 | --with-hunspell \ |
49d9329f JB |
197 | --with-hunspell-dir=/usr/share/myspell \ |
198 | --with-nuspell \ | |
199 | --with-zemberek | |
aadb9f29 | 200 | |
6396d84b MB |
201 | %{__make} \ |
202 | pkgdatadir=%{_datadir}/enchant-2 | |
aadb9f29 JB |
203 | |
204 | %install | |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
207 | %{__make} install \ | |
6396d84b MB |
208 | DESTDIR=$RPM_BUILD_ROOT \ |
209 | pkgdatadir=%{_datadir}/enchant-2 | |
210 | ||
211 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
aadb9f29 JB |
212 | |
213 | # useless - modules loaded through libgmodule | |
a972afb4 JP |
214 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.la |
215 | %if %{with static_libs} | |
216 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant-2/*.a | |
217 | %endif | |
aadb9f29 JB |
218 | |
219 | %clean | |
220 | rm -rf $RPM_BUILD_ROOT | |
221 | ||
f0ccf25e | 222 | %post -p /sbin/ldconfig |
aadb9f29 JB |
223 | %postun -p /sbin/ldconfig |
224 | ||
225 | %files | |
226 | %defattr(644,root,root,755) | |
6396d84b MB |
227 | %doc AUTHORS HACKING NEWS README |
228 | %attr(755,root,root) %{_bindir}/enchant-2 | |
229 | %attr(755,root,root) %{_bindir}/enchant-lsmod-2 | |
230 | %attr(755,root,root) %{_libdir}/libenchant-2.so.*.*.* | |
231 | %attr(755,root,root) %ghost %{_libdir}/libenchant-2.so.2 | |
232 | %dir %{_libdir}/enchant-2 | |
233 | %{_datadir}/enchant-2 | |
234 | %{_mandir}/man1/enchant-2.1* | |
235 | %{_mandir}/man1/enchant-lsmod-2.1* | |
e3be4d8c | 236 | %{_mandir}/man5/enchant.5* |
aadb9f29 JB |
237 | |
238 | %files devel | |
239 | %defattr(644,root,root,755) | |
6396d84b MB |
240 | %attr(755,root,root) %{_libdir}/libenchant-2.so |
241 | %{_includedir}/enchant-2 | |
242 | %{_pkgconfigdir}/enchant-2.pc | |
aadb9f29 | 243 | |
29fb431e | 244 | %if %{with static_libs} |
aadb9f29 JB |
245 | %files static |
246 | %defattr(644,root,root,755) | |
6396d84b | 247 | %{_libdir}/libenchant-2.a |
29fb431e | 248 | %endif |
aadb9f29 JB |
249 | |
250 | %files aspell | |
251 | %defattr(644,root,root,755) | |
6396d84b | 252 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_aspell.so |
aadb9f29 | 253 | |
e800cd19 | 254 | %files hspell |
255 | %defattr(644,root,root,755) | |
6396d84b | 256 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_hspell.so |
aadb9f29 | 257 | |
6396d84b | 258 | %files hunspell |
40f5fa13 | 259 | %defattr(644,root,root,755) |
6396d84b | 260 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_hunspell.so |
1c670fa4 | 261 | |
49d9329f JB |
262 | %files nuspell |
263 | %defattr(644,root,root,755) | |
264 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_nuspell.so | |
265 | ||
ba35e5de JB |
266 | %files voikko |
267 | %defattr(644,root,root,755) | |
6396d84b | 268 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_voikko.so |
ba35e5de | 269 | |
1c670fa4 JB |
270 | %files zemberek |
271 | %defattr(644,root,root,755) | |
6396d84b | 272 | %attr(755,root,root) %{_libdir}/enchant-2/enchant_zemberek.so |