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