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