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