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