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