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