%define languageenglazy Macedonian %define languagecode mk %define lc_ctype mk_MK %define upstream_version 20051126 Name: hunspell-%{languagecode} Version: 0.%{upstream_version}.1 Release: %mkrel 6 Summary: %{languageenglazy} hunspell dictionaries License: GPL+ Group: System/Internationalization URL: http://mk.openoffice.org Source0: http://mk.openoffice.org/files/documents/215/3053/mk_MK.zip Patch0: %{name}-iconv.patch BuildArch: noarch Suggests: hunspell Requires: locales-mk #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 # 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 #change encoding name to use the name that iconv knows this under %patch0 -p1 -b .iconv.patch %build %install install -D -m 0644 -p *.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p *.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_mk_MK.txt %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Tue Mar 20 2012 kamil <kamil> 0.20051126.1-6.mga2 + Revision: 224749 - add requirement on locales (mga#4632) - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 0.20051126.1-4.mga1 + Revision: 68939 - imported package hunspell-mk