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