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