%define languageenglazy Marathi %define languagecode mr %define lc_ctype mr_IN Name: hunspell-%{languagecode} Version: 20060920 Release: %mkrel 11 Summary: %{languageenglazy} hunspell dictionaries License: LGPLv2+ Group: System/Internationalization URL: http://wiki.services.openoffice.org/wiki/Dictionaries Source0: http://ftp.freepark.org/OpenOffice.org/contrib/dictionaries/mr_IN.zip Patch0: %{name}-get-rid-of-broken-line.patch BuildArch: noarch Suggests: hunspell Requires: locales-mr #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-%{lc_ctype} < 1.0.3 Provides: myspell-%{lc_ctype} AutoReqProv: no %description %{languageenglazy} hunspell dictionaries. %prep %setup -q -c %patch0 -p1 %build %install install -D -m 0644 -p mr_IN.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p mr_IN.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 README_mr_IN.txt LICENCE %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 20060920-11.mga3 + Revision: 353582 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Mar 20 2012 kamil <kamil> 20060920-10.mga2 + Revision: 224764 - add requirement on locales (mga#4632) * Tue Feb 14 2012 kamil <kamil> 20060920-9.mga2 + Revision: 208581 - use better obsoleting of myspell * Sun Feb 05 2012 kamil <kamil> 20060920-8.mga2 + Revision: 205026 - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 20060920-7.mga1 + Revision: 68959 - imported package hunspell-mr