]> git.pld-linux.org Git - packages/enchant.git/blob - enchant.spec
- converted to UTF-8
[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:        1.3.0
9 Release:        1
10 License:        LGPL
11 Group:          Libraries
12 Source0:        http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  f7edafae875616b83e7a17a7e5c2d585
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 >= 1:2.12.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.UTF-8
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.UTF-8):   Pliki nagłówkowe biblioteki enchant
70 Group:          Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72 Requires:       glib2-devel >= 1:2.12.0
73
74 %description devel
75 Header files for enchant library.
76
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki enchant.
79
80 %package static
81 Summary:        Static enchant library
82 Summary(pl.UTF-8):   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.UTF-8
90 Statyczna biblioteka enchant.
91
92 %package aspell
93 Summary:        aspell provider module for Enchant
94 Summary(pl.UTF-8):   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.UTF-8
103 Moduł obsługujący aspella dla Enchanta.
104
105 %package hspell
106 Summary:        hspell provider module for Enchant
107 Summary(pl.UTF-8):   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.UTF-8
115 Moduł obsługujący hspella dla Enchanta.
116
117 %package ispell
118 Summary:        ispell provider module for Enchant
119 Summary(pl.UTF-8):   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.UTF-8
127 Moduł obsługujący ispella dla Enchanta.
128
129 %package myspell
130 Summary:        myspell provider module for Enchant
131 Summary(pl.UTF-8):   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.UTF-8
139 Moduł obsługujący myspella dla Enchanta.
140
141 %package uspell
142 Summary:        uspell provider module for Enchant
143 Summary(pl.UTF-8):   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.UTF-8
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.148888 seconds and 4 git commands to generate.