%define _enable_debug_packages %{nil} %define debug_package %{nil} # NOTE: the word list wrongly uses arabic kaf instead of farsi kaf, # it is fixed trough a script in the make section (pablo) %define src_ver 0.11-0 %define fname aspell6-%{languagecode} %define aspell_ver 0.60 %define languageenglazy Persian %define languagecode fa %define lc_ctype fa_IR Summary: %{languageenglazy} files for aspell Name: aspell-%{languagecode} Version: 0.11.0 Release: 16 Group: System/Internationalization License: GPLv2 Url: http://aspell.net/ Source0: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2 BuildRequires: aspell >= %{aspell_ver} Requires: aspell >= %{aspell_ver} # Mandriva Stuff Requires: locales-%{languagecode} # aspell = 1, myspell = 2, lang-specific = 3 Provides: enchant-dictionary = 1 Provides: aspell-dictionary Provides: aspell-%{lc_ctype} Provides: spell-%{languagecode} Autoreqprov: no %description A %{languageenglazy} dictionary for use with aspell, a spelling checker. %prep %setup -qn %{fname}-%{src_ver} %build # don't use configure macro ./configure #%make # the word list wrongly uses arabic kaf instead of farsi kaf, fixing it cat << EOF > fixkaf.sh #!/bin/bash cat - | \ sed 's/ك/ک/g' EOF preunzip -c %{languagecode}.cwl | sh ./fixkaf.sh | (LC_ALL=C sort) > %{languagecode}.wl aspell --lang=%{languagecode} create master ./%{languagecode}.rws < %{languagecode}.wl %install %makeinstall_std chmod 644 Copyright README* %files %doc README* Copyright %{_libdir}/aspell-%{aspell_ver}/*