diff --git a/hunspell-km.spec b/hunspell-km.spec new file mode 100644 index 0000000..6a97d6a --- /dev/null +++ b/hunspell-km.spec @@ -0,0 +1,35 @@ +Name: hunspell-km +Summary: Khmer hunspell dictionaries for hunspell used in OpenOffice +Version: 1.82 +Release: 3 +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 +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 +* Sat Apr 18 2020 Jeffery.Gao - 1.82-3 +- Package init diff --git a/sbbic-khmer-spelling-checker-1.82.oxt b/sbbic-khmer-spelling-checker-1.82.oxt new file mode 100644 index 0000000..5ffdc3e Binary files /dev/null and b/sbbic-khmer-spelling-checker-1.82.oxt differ