%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: %mkrel 6 Group: System/Internationalization Source: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2 URL: http://aspell.net/ License: GPL Provides: spell-%{languagecode} BuildRequires: aspell >= %{aspell_ver} BuildRequires: make Requires: aspell >= %{aspell_ver} # Mageia Stuff Requires: locales-%{languagecode} # aspell = 1, myspell = 2, lang-specific = 3 Provides: aspell-dictionary Provides: aspell-%{lc_ctype} Autoreqprov: no %description A %{languageenglazy} dictionary for use with aspell, a spelling checker. %prep %setup -q -n %{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}/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.11.0-6.mga3 + Revision: 346241 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Feb 04 2012 kamil <kamil> 0.11.0-5.mga2 + Revision: 204397 - drop providing of enchant-dictionary - clean .spec a bit + dmorgan <dmorgan> - Remove mandriva occurencies + ahmad <ahmad> - imported package aspell-fa