%define languageenglazy Hiligaynon %define languagecode hil %define lc_ctype hil_PH Name: hunspell-%{languagecode} Epoch: 1 Version: 0.14 Release: %mkrel 5 Summary: %{languageenglazy} hunspell dictionaries License: GPLv3+ Group: System/Internationalization URL: http://extensions.services.openoffice.org/project/hunspell-hil Source0: http://borel.slu.edu/obair/%{name}-%{version}.oxt BuildArch: noarch Suggests: hunspell #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 %build for i in dictionaries/README_hil_PH.txt; do if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then iconv -f ISO-8859-1 -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/hil_PH.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic install -D -m 0644 -p dictionaries/hil_PH.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 LICENSES-en.txt dictionaries/README_hil_PH.txt %{_datadir}/hunspell/* %{_datadir}/myspell/* %changelog * Sat Jan 12 2013 umeabot <umeabot> 1:0.14-5.mga3 + Revision: 353497 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 02 2012 kamil <kamil> 1:0.14-4.mga3 + Revision: 325358 - rebuild for Mga3 Beta1 * Fri Jan 20 2012 kamil <kamil> 1:0.14-3.mga2 + Revision: 198556 - adapt .spec to the current policies * Sat Mar 12 2011 dmorgan <dmorgan> 1:0.14-2.mga1 + Revision: 68819 - imported package hunspell-hil