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