Name:                hunspell-fr
Version:             6.2
Release:             3
Summary:             hunspell dictionaries for French
License:             MPLv2.0
URL:                 http://www.dicollecte.org/home.php?prj=fr
Source:              https://sources.voidlinux.org/hunspell-fr_FR-6.2/hunspell-french-dictionaries-v%{version}.zip
BuildArch:           noarch
Requires:            hunspell
Supplements:         (hunspell and langpacks-fr)
%description
hunspell dictionaries for French (France, Belgium, etc.).

%prep
%autosetup  -c -n hunspell-fr -p1

%build

%install
install -Dp  fr-toutesvariantes.dic  %{buildroot}/%{_datadir}/myspell/fr_FR.dic
install -Dp  fr-toutesvariantes.aff  %{buildroot}/%{_datadir}/myspell/fr_FR.aff
cd  %{buildroot}/%{_datadir}/myspell/
fr_FR_aliases="fr_BE fr_CA fr_CH fr_LU fr_MC"
for lang in $fr_FR_aliases; do
        ln -s fr_FR.aff $lang.aff 
        ln -s fr_FR.dic $lang.dic
done
cd -

%files
%doc README_dict_fr.txt
%{_datadir}/myspell/*

%changelog
* Mon Apr 27 2020 yanan li <liyanan032@huawei.com> - 6.2-3
- Package init
