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