Name: hunspell-km Summary: Khmer hunspell dictionaries for hunspell used in OpenOffice Version: 1.82 Release: 4 Source: https://downloads.sourceforge.net/project/aoo-extensions/2250/6/sbbic-khmer-spelling-checker-1.82.oxt URL: http://www.sbbic.org/ License: GPLv3 BuildArch: noarch BuildRequires: git Requires: hunspell Supplements: (hunspell and langpacks-km) %description Khmer hunspell dictionaries for hunspell used in OpenOffice. %prep %autosetup -c -n hunspell-km -p1 -S git %build if ! iconv -f utf-8 -t utf-8 -o /dev/null CHANGELOG > /dev/null 2>&1; then iconv -f ISO-8859-1 -t UTF-8 CHANGELOG > CHANGELOG.new;touch -r CHANGELOG CHANGELOG.new mv -f CHANGELOG.new CHANGELOG fi tr -d '\r' < CHANGELOG > CHANGELOG.new;touch -r CHANGELOG CHANGELOG.new;mv -f CHANGELOG.new CHANGELOG %install install -d $RPM_BUILD_ROOT/%{_datadir}/myspell install -p km_KH.* $RPM_BUILD_ROOT/%{_datadir}/myspell %files %doc CHANGELOG LICENCES-*.txt %{_datadir}/myspell/* %changelog * Mon Jun 7 2021 baizhonggui - 1.82-4 - Fix building error: /usr/bin/git: No such file or directory - Add git in BuildRequires * Sat Apr 18 2020 Jeffery.Gao - 1.82-3 - Package init