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