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