diff --git a/hunspell-fr.spec b/hunspell-fr.spec new file mode 100644 index 0000000..cfc59ae --- /dev/null +++ b/hunspell-fr.spec @@ -0,0 +1,36 @@ +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 - 6.2-3 +- Package init diff --git a/hunspell-french-dictionaries-v6.2.zip b/hunspell-french-dictionaries-v6.2.zip new file mode 100644 index 0000000..41babff Binary files /dev/null and b/hunspell-french-dictionaries-v6.2.zip differ