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