%define languageenglazy Turkmen %define languagecode tk %define lc_ctype tk_TM Name: hunspell-%{languagecode} Epoch: 1 Version: 0.02 Release: %mkrel 2 Summary: %{languageenglazy} hunspell dictionaries License: GPLv2+ Group: System/Internationalization URL: http://borel.slu.edu/crubadan/apps.html Source0: http://releases.mozilla.org/pub/mozilla.org/addons/204314/turkmen_spell_checker-%{version}-tb+fx+sm.xpi BuildArch: noarch Suggests: hunspell Requires: locales-tk #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 # there is nothing to obsolete #Obsoletes: myspell-%{languagecode} <= 1.0.2-30 #Provides: myspell-%{languagecode} #Obsoletes: myspell-%{lc_ctype} <= 1.0.2-30 #Provides: myspell-%{lc_ctype} AutoReqProv: no %description %{languageenglazy} hunspell dictionaries. %prep %setup -q -c %build %install install -D -m 0644 -p dictionaries/tk-TM.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p dictionaries/tk-TM.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 dictionaries/README_tk_TM.txt %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 1:0.02-2.mga3 + Revision: 353743 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 kamil <kamil> 1:0.02-1.mga3 + Revision: 344033 - update dicts names from sources - sync with Fedora: new version 0.02 - update Source * Tue Mar 20 2012 kamil <kamil> 1:0.01-4.mga2 + Revision: 224888 - add requirement on locales (mga#4632) - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 1:0.01-2.mga1 + Revision: 69159 - imported package hunspell-tk