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