package init

This commit is contained in:
small_leek 2020-07-09 14:25:31 +08:00
parent 46455faf65
commit 08efce120e
2 changed files with 35 additions and 0 deletions

35
hunspell-km.spec Normal file
View File

@ -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 <gaojianxing@huawei.com> - 1.82-3
- Package init

Binary file not shown.