hunspell-oc/hunspell-oc.spec
2020-07-09 20:28:45 +08:00

36 lines
1.1 KiB
RPMSpec

Name: hunspell-oc
Summary: Occitan hunspell dictionaries for spell check
Version: 0.6.2
Release: 3
Source: https://addons.mozilla.org/firefox/downloads/file/233710/correcteur_occitan_languedocien-%{version}-tb+sm+fx.xpi
URL: https://addons.mozilla.org/en-US/firefox/addon/8235
License: GPLv3+
BuildArch: noarch
BuildRequires: redland
Requires: hunspell
Supplements: (hunspell and langpacks-oc)
%description
Occitan hunspell dictionaries for spell check.
%prep
%autosetup -c -p1 -n hunspell-oc
%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
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
install -Dp dictionaries/oc-FR.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/oc_FR.aff
install -Dp dictionaries/oc-FR.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/oc_FR.dic
%files
%doc CREDITS
%{_datadir}/myspell/*
%changelog
* Fri Apr 17 2020 Captain Wei <captain.a.wei@gmail.com> 0.6.2-3
- Package init