%define languageenglazy Zulu %define languagecode zu %define lc_ctype zu_ZA %define upstream_version 20100126 Name: hunspell-%{languagecode} Version: 0.%{upstream_version}.1 Release: %mkrel 7 Summary: %{languageenglazy} hunspell dictionaries License: LGPLv2+ Group: System/Internationalization URL: http://www.translate.org.za/ Source0: http://releases.mozilla.org/pub/mozilla.org/addons/46490/zulu__south_africa__dictionary-20100125-fx+tb.xpi BuildArch: noarch Suggests: hunspell Requires: locales-zu #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 %build for i in README-zu-ZA.txt; do if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then iconv -f ISO-8859-2 -t UTF-8 $i > $i.new touch -r $i $i.new mv -f $i.new $i fi tr -d '\r' < $i > $i.new touch -r $i $i.new mv -f $i.new $i done %install install -D -m 0644 -p dictionaries/zu-ZA.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p dictionaries/zu-ZA.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-zu-ZA.txt %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 0.20100126.1-7.mga3 + Revision: 353774 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Mar 20 2012 kamil <kamil> 0.20100126.1-6.mga2 + Revision: 224930 - add requirement on locales (mga#4632) * Wed Feb 15 2012 kamil <kamil> 0.20100126.1-5.mga2 + Revision: 209160 - use better obsoleting of myspell - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 0.20100126.1-3.mga1 + Revision: 69219 - imported package hunspell-zu