%define languageenglazy Punjabi %define languagecode pa %define lc_ctype pa_IN Name: hunspell-%{languagecode} Version: 20050726 Release: %mkrel 8 Summary: %{languageenglazy} hunspell dictionaries License: GPLv2+ Group: System/Internationalization URL: http://hunspell.sourceforge.net Source0: http://hunspell.sourceforge.net/pa-demo.tar.gz BuildArch: noarch Suggests: hunspell Requires: locales-pa #Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific Provides: enchant-dictionary = 2 Provides: hunspell-dictionary Provides: hunspell-%{lc_ctype} = %{version}-%{release} #Generic providing - see Mageia values Provides: dictionary-%{languagecode} = 2 Provides: dictionary-%{lc_ctype} = 2 #MySpell is deprecated Obsoletes: myspell-%{languagecode} < 1.0.3 Provides: myspell-%{languagecode} Obsoletes: myspell-pa_PA < 1.0.3 Provides: myspell-pa_PA AutoReqProv: no %description %{languageenglazy} hunspell dictionaries. %prep %setup -q -c %build iconv -f ISO-8859-1 -t UTF-8 pa/Copyright > pa/Copyright.utf8 mv pa/Copyright.utf8 pa/Copyright %install install -D -m 0644 -p pa/pa.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p pa/pa.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff #backward compatibility mkdir -p %{buildroot}%{_datadir}/myspell pushd %{buildroot}%{_datadir}/myspell ln -s ../hunspell/%{lc_ctype}.dic %{lc_ctype}.dic ln -s ../hunspell/%{lc_ctype}.aff %{lc_ctype}.aff popd #%%{buildroot}%%{_datadir}/myspell %files %doc pa/README pa/COPYING pa/Copyright %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Tue Mar 20 2012 kamil <kamil> 20050726-8.mga2 + Revision: 224804 - add requirement on locales (mga#4632) * Wed Feb 15 2012 kamil <kamil> 20050726-7.mga2 + Revision: 209048 - use better obsoleting of myspell * Wed Feb 08 2012 kamil <kamil> 20050726-6.mga2 + Revision: 206297 - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 20050726-5.mga1 + Revision: 69024 - imported package hunspell-pa