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