hunspell-ak/hunspell-ak.spec
2020-07-07 18:58:02 +08:00

36 lines
1.0 KiB
RPMSpec

Name: hunspell-ak
Summary: Hunspell dictionaries for Akan
Version: 0.9.1
Release: 3
Source: https://addons.mozilla.org/firefox/downloads/file/376172/akan_spelling_dictionary-0.9.1-typefix-fx.xpi
URL: http://kasahorow.org/content/akan-nsɛmfuaasekyerɛ
License: LGPLv3
BuildArch: noarch
BuildRequires: redland
Requires: hunspell
Supplements: (hunspell and langpacks-ak)
%description
Hunspell dictionaries for Akan.
%prep
%autosetup -c -p1
%build
rdfproc hunspell-oc parse install.rdf
rdfproc hunspell-oc print | grep install-manifest | grep -v targetApplication | sed -e 's/.*#//' | sed -e 's/], "/: /'| sed -e 's/"}//' > CREDITS
chmod -x dictionaries/ak-GH.*
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
install -Dp dictionaries/ak-GH.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ak_GH.aff
install -Dp dictionaries/ak-GH.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ak_GH.dic
%files
%doc CREDITS
%{_datadir}/myspell/*
%changelog
* Tue Apr 28 2020 wutao <wutao61@huawei.com> - 0.9.1-3
- Package init