diff --git a/dicts-sw.oxt b/dicts-sw.oxt new file mode 100644 index 0000000..6c4790e Binary files /dev/null and b/dicts-sw.oxt differ diff --git a/hunspell-sw.spec b/hunspell-sw.spec new file mode 100644 index 0000000..fcdffc9 --- /dev/null +++ b/hunspell-sw.spec @@ -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 - 0.20050819-19 +- Package init