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