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