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