Name: hunspell-bm Summary: Bambara hunspell dictionaries %global upstreamid 2.4 Version: %{upstreamid} Release: 1%{?dist} Source: https://extensions.openoffice.org/de/download/18920 URL: https://extensions.libreoffice.org/en/extensions/show/bambara-bamanakan-spell-checker License: BSD BuildArch: noarch Requires: hunspell BuildRequires: unzip Supplements: (hunspell and langpacks-bm) %description Bambara hunspell dictionaries. %prep %autosetup -c -n hunspell-bm %build for i in desc*.txt LICENCES*.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 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p bm.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/bm.dic cp -p bm.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/bm.aff %files %doc desc*.txt %license LICENCES*.txt %{_datadir}/myspell/* %changelog * Wed Apr 14 2021 Boyd Kelly - 2.4-1 - hunspell for Bambara - initial build 2.4-1