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