Name: hunspell-ca Version: 2.3 Release: 13 Summary: The dictionaries for Catalan hunspell License: GPLv2+ URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt BuildArch: noarch Requires: hunspell Supplements: (hunspell and langpacks-ca) %description The dictionaries for Catalan hunspell %prep %autosetup -c -n hunspell-ca-%{version} -p1 %build tr -d '\r' < dictionaries/catalan.aff > ca_ES.aff touch -r dictionaries/catalan.aff ca_ES.aff tr -d '\r' < dictionaries/catalan.dic > ca_ES.dic touch -r dictionaries/catalan.dic ca_ES.dic %install install -d $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cd $RPM_BUILD_ROOT/%{_datadir}/myspell/ ca_ES_aliases="ca_AD ca_FR ca_IT" for lang in $ca_ES_aliases; do ln -s ca_ES.aff $lang.aff ln -s ca_ES.dic $lang.dic done cd .. %files %doc LICENSES-en.txt LLICENCIES-ca.txt %{_datadir}/myspell/* %changelog * Fri Jul 03 2020 yaokai - 2.3-13 - Package init