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