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