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