Summary: libenchant - generic spell checking library Summary(pl): libenchant - ogólna biblioteka sprawdzania pisowni Name: enchant Version: 1.1.5 Release: 2 License: LGPL Group: Libraries Source0: http://dl.sourceforge.net/abiword/%{name}-%{version}.tar.gz # Source0-md5: b7f266ca9241797839929972395a76cf URL: http://www.abisource.com/enchant/ BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRequires: aspell-devel >= 2:0.50.0 BuildRequires: glib2-devel >= 2.0 BuildRequires: pkgconfig BuildRequires: uspell-devel >= 1.1.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This project aims to provide an efficient, extensible abstraction for dealing with different spell checking libraries. Enchant is meant to provide a generic interface into various existing spell checking libraries. These include, but are not limited to: Aspell/Pspell, Ispell, Hspell, Uspell. Enchant is also meant to be used in a cross-platform environment. Part of this means that Enchant wants to limit its number of external dependencies to 0, or as close is as humanly possible. Also, any enchant consumer (i.e. a Word Processor) should not need to know about what backend providers Enchant knows about. In fact, Enchant shouldn't even need to know this information itself. To accomplish this, all of Enchant's providers are dynamically loaded modules. Enchant is also meant to be used in a multi-user environment, such as Unix. It is preferable to have both a $USER and a $GLOBAL location for both provider modules and for dictionaries themselves, when possible. Enchant's module location algorithm takes this into account, and gives preference to the $USER resources, when found. %description -l pl Celem projektu jest dostarczenie wydajnej i rozszerzalnej abstrakcji do obsługi różnych bibliotek kontroli pisowni. Enchant ma dostarczać ogólny interfejs do różnych istniejących bibliotek. Obejmują one (ale nie są ograniczone do): Aspella/Pspella, Ispella, Hspella, Uspella. Enchant ma być także używany w środowisku wieloplatformowym. Oznacza to między innymi, że Enchant ma mieć ograniczoną liczbę zewnętrznych zależności do zera lub najbliżej jak to możliwe. Także dowolny klient enchanta (czyli procesor tekstu) nie powinien potrzebować wiedzy, jakie backendy są dostępne dla Enchanta. W rzeczywistości nawet Enchant nie powinien potrzebować takiej informacji. Aby to osiągnąć, wszystkie backendy Enchanta są dynamicznie ładowanymi modułami. Enchant ma być także używany w środowisku wieloużytkownikowym, takim jak Unix. Preferuje się, żeby istniały zarówno specyficzne dla użytkownika jak i globalne lokalizacje zarówno dla modułów jak i samych słowników, jeśli to możliwe. Algorytm poszukiwania modułów Enchanta bierze to pod uwagę i preferuje zasoby użytkownika, jeśli takie znajdzie. %package devel Summary: Header files for enchant library Summary(pl): Pliki nagłówkowe biblioteki enchant Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glib2-devel >= 2.0 %description devel Header files for enchant library. %description devel -l pl Pliki nagłówkowe biblioteki enchant. %package static Summary: Static enchant library Summary(pl): Statyczna biblioteka enchant Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static enchant library. %description static -l pl Statyczna biblioteka enchant. %package aspell Summary: aspell provider module for Enchant Summary(pl): Moduł obsługujący aspella dla Enchanta Group: Libraries Requires: %{name} = %{version}-%{release} Requires: aspell >= 2:0.50.0 %description aspell aspell provider module for Enchant. %description aspell -l pl Moduł obsługujący aspella dla Enchanta. %package ispell Summary: ispell provider module for Enchant Summary(pl): Moduł obsługujący ispella dla Enchanta Group: Libraries Requires: %{name} = %{version}-%{release} %description ispell ispell provider module for Enchant. %description ispell -l pl Moduł obsługujący ispella dla Enchanta. %package myspell Summary: myspell provider module for Enchant Summary(pl): Moduł obsługujący myspella dla Enchanta Group: Libraries Requires: %{name} = %{version}-%{release} %description myspell myspell provider module for Enchant. %description myspell -l pl Moduł obsługujący myspella dla Enchanta. %package uspell Summary: uspell provider module for Enchant Summary(pl): Moduł obsługujący uspella dla Enchanta Group: Libraries Requires: %{name} = %{version}-%{release} %description uspell uspell provider module for Enchant. %description uspell -l pl Moduł obsługujący uspella dla Enchanta. %prep %setup -q %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} %configure \ --with-ispell-dir=/usr/lib/ispell \ --with-uspell-dir=/usr/share/uspell # --with-myspell-dir=/some/where %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # useless - modules loaded through libgmodule rm -f $RPM_BUILD_ROOT%{_libdir}/enchant/*.{la,a} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS MAINTAINERS NEWS README TODO %attr(755,root,root) %{_bindir}/enchant %attr(755,root,root) %{_bindir}/enchant-lsmod %attr(755,root,root) %{_libdir}/lib*.so.*.*.* %dir %{_libdir}/enchant %{_mandir}/man1/enchant.1* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/enchant %{_pkgconfigdir}/*.pc %files static %defattr(644,root,root,755) %{_libdir}/lib*.a %files aspell %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/enchant/libenchant_aspell.so* %files ispell %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/enchant/libenchant_ispell.so* %files myspell %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/enchant/libenchant_myspell.so* %files uspell %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/enchant/libenchant_uspell.so*