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