Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 29898e5126ea58e6e4c771e359f675cf > files > 2

ispell-eo-2.0-6mdk.src.rpm

%define src_ver 2.0
%define languagelocal eo
%define languageeng esperanto
%define languagecode eo

Summary: 	Esperanto files for ispell
Summary(eo): Esperantaj dosieroj por ispell
Name: 		ispell-%{languagecode} 
Version: 	2.0
Release: 	6mdk
URL: 		http://www.esperanto.mv.ru/
Source:		http://www.esperanto.mv.ru/Download/ispell/eo-spell.tar.bz2
Copyright: 	GPL
Group: 		System/Internationalization
BuildRoot: 	%{_tmppath}/%{name}-buildroot
Prefix: 	%{_prefix}
BuildArchitectures: noarch
Autoreqprov: no

Requires: locales-%{languagecode}
Requires: ispell
Provides: ispell-dictionary

Obsoletes: iesperan
Obsoletes: ispell-esperanto

%description
ispell-eo has the spelling data for Esperanto which is used by
the ispell program. With this extension, you can compose a document
in Esperanto and check it for the typos easily.

Ispell can be used directly from command line to check a file; 
or used by several text dealing programs, like LyX, etc.

%description -l eo
ispell-eo enhavas la literumada dateno por Esperanto kiu la ispell programo
uzas.  Kun æi tiu etenda¼o, vi povas skribi dokumenton Esperante kaj
kontroli øin por literumadaj eraroj facile.

Vi povas uzi ispell rekte de la komandlinio por kontroli dosieron;
aý de kelkaj tekstprilaboriloj, kiel LyX, ktp.

%prep
%setup -n eo
sort -u -f -o eo.txt *.txt
mv -f eo.txt %{languagelocal}.hash

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ispell

install -m 644 %{languagelocal}.aff $RPM_BUILD_ROOT%{_libdir}/ispell/%{languagelocal}.aff
install -m 644 %{languagelocal}.hash $RPM_BUILD_ROOT%{_libdir}/ispell/%{languagelocal}.hash

# LaTeX babel
if [ "%{languagelocal}" != "%{languageeng}" ];then
 cd $RPM_BUILD_ROOT%{_libdir}/ispell
 ln -s %{languagelocal}.aff %{languageeng}.aff
 ln -s %{languagelocal}.hash %{languageeng}.hash
fi

%clean
rm -rf $RPM_BUILD_ROOT

%post
cd %{_libdir}/ispell
mv -f %{languagelocal}.hash %{languagelocal}.ispell
buildhash %{languagelocal}.ispell %{languagelocal}.aff %{languagelocal}.hash &> /dev/null
rm -f %{languagelocal}.ispell.stat %{languagelocal}.ispell.cnt %{languagelocal}.ispell

%files
%defattr(644, root, root,755)
%doc README* legumin.l3
%{_libdir}/ispell/*

%changelog
* Sat Aug 26 2000 Troels Liebe Bentsen <tlb@iname.com> 2.0-6mdk
- Small fix to the spec, no output on buildhash.

* Sun Aug 13 2000 Troels Liebe Bentsen <tlb@iname.com> 2.0-5mdk
- Cleaned up the spec and moved to standard template.

* Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.0-4mdk
- BM

* Thu Mar 30 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 2.0-3mdk
- adapted to new Group: naming

* Wed Jan 12 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
- added Provides: ispell-dictionary 

* Mon Dec 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- added Obsoletes: for easier installation over other rpms of same language

* Fri Dec 03 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- First version for Mandrake.