]> git.pld-linux.org Git - packages/enchant.git/blob - enchant.spec
- rebuild with hunspell 1.6
[packages/enchant.git] / enchant.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        libenchant - generic spell checking library
6 Summary(pl.UTF-8):      libenchant - ogólna biblioteka sprawdzania pisowni
7 Name:           enchant
8 Version:        1.6.0
9 Release:        6
10 License:        LGPL v2
11 Group:          Libraries
12 Source0:        http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  de11011aff801dc61042828041fb59c7
14 Patch0:         hunspell-1.4.patch
15 URL:            http://www.abisource.com/enchant/
16 BuildRequires:  aspell-devel >= 2:0.50.0
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  dbus-glib-devel >= 0.62
20 BuildRequires:  glib2-devel >= 1:2.12.0
21 BuildRequires:  hspell-devel >= 0.9-3
22 BuildRequires:  libtool
23 BuildRequires:  libvoikko-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  uspell-devel >= 1.1.0
26 Requires:       glib2 >= 1:2.12.0
27 Suggests:       %{name}-backend
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
51 %description -l pl.UTF-8
52 Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji
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
70 takie znajdzie.
71
72 %package devel
73 Summary:        Header files for enchant library
74 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki enchant
75 Group:          Development/Libraries
76 Requires:       %{name} = %{version}-%{release}
77 Requires:       glib2-devel >= 1:2.12.0
78
79 %description devel
80 Header files for enchant library.
81
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki enchant.
84
85 %package static
86 Summary:        Static enchant library
87 Summary(pl.UTF-8):      Statyczna biblioteka enchant
88 Group:          Development/Libraries
89 Requires:       %{name}-devel = %{version}-%{release}
90
91 %description static
92 Static enchant library.
93
94 %description static -l pl.UTF-8
95 Statyczna biblioteka enchant.
96
97 %package aspell
98 Summary:        aspell provider module for Enchant
99 Summary(pl.UTF-8):      Moduł obsługujący aspella dla Enchanta
100 Group:          Libraries
101 Requires:       %{name} = %{version}-%{release}
102 Requires:       aspell >= 2:0.50.0
103 Provides:       %{name}-backend
104
105 %description aspell
106 aspell provider module for Enchant.
107
108 %description aspell -l pl.UTF-8
109 Moduł obsługujący aspella dla Enchanta.
110
111 %package hspell
112 Summary:        hspell provider module for Enchant
113 Summary(pl.UTF-8):      Moduł obsługujący hspella dla Enchanta
114 Group:          Libraries
115 Requires:       %{name} = %{version}-%{release}
116 Provides:       %{name}-backend
117
118 %description hspell
119 hspell provider module for Enchant.
120
121 %description hspell -l pl.UTF-8
122 Moduł obsługujący hspella dla Enchanta.
123
124 %package ispell
125 Summary:        ispell provider module for Enchant
126 Summary(pl.UTF-8):      Moduł obsługujący ispella dla Enchanta
127 Group:          Libraries
128 Requires:       %{name} = %{version}-%{release}
129 Provides:       %{name}-backend
130
131 %description ispell
132 ispell provider module for Enchant.
133
134 %description ispell -l pl.UTF-8
135 Moduł obsługujący ispella dla Enchanta.
136
137 %package myspell
138 Summary:        myspell provider module for Enchant
139 Summary(pl.UTF-8):      Moduł obsługujący myspella dla Enchanta
140 Group:          Libraries
141 Requires:       %{name} = %{version}-%{release}
142 Provides:       %{name}-backend
143
144 %description myspell
145 myspell provider module for Enchant.
146
147 %description myspell -l pl.UTF-8
148 Moduł obsługujący myspella dla Enchanta.
149
150 %package uspell
151 Summary:        uspell provider module for Enchant
152 Summary(pl.UTF-8):      Moduł obsługujący uspella dla Enchanta
153 Group:          Libraries
154 Requires:       %{name} = %{version}-%{release}
155 Provides:       %{name}-backend
156
157 %description uspell
158 uspell provider module for Enchant.
159
160 %description uspell -l pl.UTF-8
161 Moduł obsługujący uspella dla Enchanta.
162
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
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
190 %prep
191 %setup -q
192 %patch0 -p1
193
194 %build
195 %{__libtoolize}
196 %{__aclocal} -I ac-helpers
197 %{__autoconf}
198 %{__automake}
199 %configure \
200         --disable-binreloc \
201         %{!?with_static_libs:--disable-static} \
202         --enable-zemberek \
203         --with-ispell-dir=/usr/%{_lib}/ispell \
204         --with-myspell-dir=/usr/share/myspell \
205         --with-uspell-dir=/usr/share/uspell
206
207 %{__make}
208
209 %install
210 rm -rf $RPM_BUILD_ROOT
211
212 %{__make} install \
213         DESTDIR=$RPM_BUILD_ROOT
214
215 # useless - modules loaded through libgmodule
216 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
217
218 %clean
219 rm -rf $RPM_BUILD_ROOT
220
221 %post   -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
223
224 %files
225 %defattr(644,root,root,755)
226 %doc AUTHORS MAINTAINERS NEWS README TODO
227 %attr(755,root,root) %{_bindir}/enchant
228 %attr(755,root,root) %{_bindir}/enchant-lsmod
229 %attr(755,root,root) %{_libdir}/libenchant.so.*.*.*
230 %attr(755,root,root) %ghost %{_libdir}/libenchant.so.1
231 %dir %{_libdir}/enchant
232 %{_datadir}/enchant
233 %{_mandir}/man1/enchant.1*
234
235 %files devel
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libenchant.so
238 %{_libdir}/libenchant.la
239 %{_includedir}/enchant
240 %{_pkgconfigdir}/enchant.pc
241
242 %if %{with static_libs}
243 %files static
244 %defattr(644,root,root,755)
245 %{_libdir}/libenchant.a
246 %endif
247
248 %files aspell
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so
251
252 %files hspell
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so
255
256 %files ispell
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so
259
260 %files myspell
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so
263
264 %files uspell
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so
267
268 %files voikko
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/enchant/libenchant_voikko.so
271
272 %files zemberek
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/enchant/libenchant_zemberek.so
This page took 0.094103 seconds and 4 git commands to generate.