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