package init

This commit is contained in:
hht8 2020-07-08 09:02:16 +08:00
parent 69fdbbef81
commit 427ccaaeef
2 changed files with 36 additions and 0 deletions

BIN
dicts-sw.oxt Normal file

Binary file not shown.

36
hunspell-sw.spec Normal file
View File

@ -0,0 +1,36 @@
Name: hunspell-sw
Version: 0.20050819
Release: 19
Summary: Hunspell dictionaries for Swahili
License: LGPLv2+
URL: https://extensions.libreoffice.org/extensions/swahili-dictionary
Source: https://extensions.libreoffice.org/assets/downloads/z/dicts-sw.oxt
BuildArch: noarch
Requires: hunspell
BuildRequires: hunspell-devel
Supplements: (hunspell and langpacks-sw)
%description
Hunspell dictionaries for Swahili.
%prep
%autosetup -c -n hunspell-sw -p1
%build
iconv README_sw_TZ.txt -f ISO-8859-1 -t UTF-8 -o README_sw_TZ.txt.new
touch -r README_sw_TZ.txt README_sw_TZ.txt.new
mv -f README_sw_TZ.txt.new README_sw_TZ.txt
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p *.aff *.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
cd -
%files
%doc README_sw_TZ.txt
%{_datadir}/myspell/*
%changelog
* Tue Apr 21 2020 huanghaitao <huanghaitao8@huawei.com> - 0.20050819-19
- Package init