]> git.pld-linux.org Git - packages/enchant.git/blob - enchant.spec
- fixed ac rebuild
[packages/enchant.git] / enchant.spec
1 # TODO: voikko backend? (R: libvoikko)
2 #
3 # Conditional build:
4 %bcond_without  static_libs     # don't build static library
5 #
6 Summary:        libenchant - generic spell checking library
7 Summary(pl.UTF-8):      libenchant - ogólna biblioteka sprawdzania pisowni
8 Name:           enchant
9 Version:        1.6.0
10 Release:        1
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 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:  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 zemberek
163 Summary:        Zemberek provider module for Enchant
164 Summary(pl.UTF-8):      Moduł obsługujący backend zemberek dla Enchanta
165 Group:          Libraries
166 Requires:       %{name} = %{version}-%{release}
167 Requires:       dbus-glib >= 0.62
168 Provides:       %{name}-backend
169
170 %description zemberek
171 Zemberek (Turkish) provider module for Enchant.
172
173 %description zemberek -l pl.UTF-8
174 Moduł obsługujący backend zemberek (turecki) dla Enchanta.
175
176 %prep
177 %setup -q
178
179 %build
180 %{__libtoolize}
181 %{__aclocal} -I ac-helpers
182 %{__autoconf}
183 %{__automake}
184 %configure \
185         --disable-binreloc \
186         %{!?with_static_libs:--disable-static} \
187         --enable-zemberek \
188         --with-ispell-dir=/usr/%{_lib}/ispell \
189         --with-myspell-dir=/usr/share/myspell \
190         --with-uspell-dir=/usr/share/uspell
191
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT
199
200 # useless - modules loaded through libgmodule
201 %{__rm} $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a}
202
203 %clean
204 rm -rf $RPM_BUILD_ROOT
205
206 %post   -p /sbin/ldconfig
207 %postun -p /sbin/ldconfig
208
209 %files
210 %defattr(644,root,root,755)
211 %doc AUTHORS MAINTAINERS NEWS README TODO
212 %attr(755,root,root) %{_bindir}/enchant
213 %attr(755,root,root) %{_bindir}/enchant-lsmod
214 %attr(755,root,root) %{_libdir}/libenchant.so.*.*.*
215 %attr(755,root,root) %ghost %{_libdir}/libenchant.so.1
216 %dir %{_libdir}/enchant
217 %{_datadir}/enchant
218 %{_mandir}/man1/enchant.1*
219
220 %files devel
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libenchant.so
223 %{_libdir}/libenchant.la
224 %{_includedir}/enchant
225 %{_pkgconfigdir}/enchant.pc
226
227 %if %{with static_libs}
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/libenchant.a
231 %endif
232
233 %files aspell
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so
236
237 %files hspell
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/enchant/libenchant_hspell.so
240
241 %files ispell
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so
244
245 %files myspell
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so
248
249 %files uspell
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so
252
253 %files zemberek
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_libdir}/enchant/libenchant_zemberek.so
This page took 0.239699 seconds and 4 git commands to generate.