%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 %global dict_dirname hunspell %else %global dict_dirname myspell %endif Name: libreoffice-dictionaries Summary: Hungarian hunspell dictionaries Version: 26.2.2.1 Release: 1%{?dist} Epoch: 1 Source0: https://github.com/LibreOffice/dictionaries/archive/refs/tags/libreoffice-%{version}.tar.gz URL: https://github.com/LibreOffice/dictionaries License: LGPL-2.1-or-later OR GPL-2.0-or-later OR MPL-1.1 BuildArch: noarch Requires: hunspell-filesystem Supplements: (hunspell and langpacks-hu) %description Hungarian hunspell dictionaries. %package -n hunspell-af Requires: hunspell-filesystem Supplements: (hunspell and langpacks-af) Summary: Afrikaans hunspell dictionary %description -n hunspell-af Afrikaans hunspell dictionary %package -n hunspell-an Requires: hunspell-filesystem Supplements: (hunspell and langpacks-an) Summary: Aragonese hunspell dictionary %description -n hunspell-an Aragonese hunspell dictionary %package -n hunspell-ar Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ar) Summary: Arabic hunspell dictionary %description -n hunspell-ar Arabic hunspell dictionary %package -n hunspell-as Requires: hunspell-filesystem Supplements: (hunspell and langpacks-as) Summary: Assamese hunspell dictionary %description -n hunspell-as Assamese hunspell dictionary %package -n hunspell-be Requires: hunspell-filesystem Supplements: (hunspell and langpacks-be) Summary: Belarusian hunspell dictionary %description -n hunspell-be Belarusian hunspell dictionary %package -n hunspell-bg Requires: hunspell-filesystem Supplements: (hunspell and langpacks-bg) Summary: Bulgarian hunspell dictionary %description -n hunspell-bg Bulgarian hunspell dictionary %package -n hunspell-bo Requires: hunspell-filesystem Supplements: (hunspell and langpacks-bo) Summary: Aragonese hunspell dictionary %description -n hunspell-bo Aragonese hunspell dictionary %package -n hunspell-br Requires: hunspell-filesystem Supplements: (hunspell and langpacks-br) Summary: Breton hunspell dictionary %description -n hunspell-br Breton hunspell dictionary %package -n hunspell-bs Requires: hunspell-filesystem Supplements: (hunspell and langpacks-bs) Summary: Bosnian hunspell dictionary %description -n hunspell-bs Bosnian hunspell dictionary %package -n hunspell-ca Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ca) Summary: Catalan hunspell dictionary %description -n hunspell-ca Catalan hunspell dictionary %package -n hunspell-ckb Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ckb) Summary: Central Kurdish hunspell dictionary %description -n hunspell-ckb Central Kurdish hunspell dictionary %package -n hunspell-cs Requires: hunspell-filesystem Supplements: (hunspell and langpacks-cs) Summary: Czech hunspell dictionary %description -n hunspell-cs Czech hunspell dictionary %package -n hunspell-da Requires: hunspell-filesystem Supplements: (hunspell and langpacks-da) Summary: Danish hunspell dictionary %description -n hunspell-da Danish hunspell dictionary %package -n hunspell-de Requires: hunspell-filesystem Supplements: (hunspell and langpacks-de) Summary: German hunspell dictionary %description -n hunspell-de German hunspell dictionary %package -n hunspell-el Requires: hunspell-filesystem Supplements: (hunspell and langpacks-el) Summary: Greek hunspell dictionary %description -n hunspell-el Greek hunspell dictionary %package -n hunspell-eo Requires: hunspell-filesystem Supplements: (hunspell and langpacks-eo) Summary: Esperanto hunspell dictionary %description -n hunspell-eo Esperanto hunspell dictionary %package -n hunspell-es Requires: hunspell-filesystem Supplements: (hunspell and langpacks-es) Summary: Spanish hunspell dictionary %description -n hunspell-es Spanish hunspell dictionary %package -n hunspell-et Requires: hunspell-filesystem Supplements: (hunspell and langpacks-et) Summary: Estonian hunspell dictionary %description -n hunspell-et Estonian hunspell dictionary %package -n hunspell-fa Requires: hunspell-filesystem Supplements: (hunspell and langpacks-fa) Summary: Farsi hunspell dictionary %description -n hunspell-fa Farsi hunspell dictionary %package -n hunspell-fr Requires: hunspell-filesystem Supplements: (hunspell and langpacks-fr) Summary: French hunspell dictionary %description -n hunspell-fr French hunspell dictionary %package -n hunspell-gd Requires: hunspell-filesystem Supplements: (hunspell and langpacks-gd) Summary: Scots Gaelic hunspell dictionary %description -n hunspell-gd Scots Gaelic hunspell dictionary %package -n hunspell-gl Requires: hunspell-filesystem Supplements: (hunspell and langpacks-gl) Summary: Galician hunspell dictionary %description -n hunspell-gl Galician hunspell dictionary %package -n hunspell-gug Requires: hunspell-filesystem Supplements: (hunspell and langpacks-gug) Summary: Guarani hunspell dictionary %description -n hunspell-gug Guarani hunspell dictionary %package -n hunspell-gu Requires: hunspell-filesystem Supplements: (hunspell and langpacks-gu) Summary: Gujarati hunspell dictionary %description -n hunspell-gu Gujarati hunspell dictionary %prep %autosetup -n dictionaries-libreoffice-%{version} %build # nothing to build here %install mkdir -p %{buildroot}%{_datadir}/%{dict_dirname} ls # af cp -p af_ZA/af_ZA.* %{buildroot}%{_datadir}/%{dict_dirname} pushd %{buildroot}%{_datadir}/%{dict_dirname}/ af_ZA_aliases="af_NA" for lang in $af_ZA_aliases; do ln -s af_ZA.aff $lang.aff ln -s af_ZA.dic $lang.dic done popd # an cp -p an_ES/an_ES.* %{buildroot}%{_datadir}/%{dict_dirname} # ar cp -p ar/ar.* %{buildroot}%{_datadir}/%{dict_dirname} # as_IN cp -p as_IN/as_IN.* %{buildroot}%{_datadir}/%{dict_dirname} # be cp -p be_BY/be-official.aff %{buildroot}%{_datadir}/%{dict_dirname}/be_BY.aff cp -p be_BY/be-official.dic %{buildroot}%{_datadir}/%{dict_dirname}/be_BY.dic # bg_BG cp -p bg_BG/bg_BG.* %{buildroot}%{_datadir}/%{dict_dirname} # bo cp -p bo/bo.* %{buildroot}%{_datadir}/%{dict_dirname} # br_FR cp -p br_FR/br_FR.* %{buildroot}%{_datadir}/%{dict_dirname} # bs_BA cp -p bs_BA/bs_BA.* %{buildroot}%{_datadir}/%{dict_dirname} # ca cp -p ca/dictionaries/ca.* %{buildroot}%{_datadir}/%{dict_dirname} # ckb cp -p ckb/dictionaries/ckb.* %{buildroot}%{_datadir}/%{dict_dirname} # cs_CZ cp -p cs_CZ/cs_CZ.* %{buildroot}%{_datadir}/%{dict_dirname} # da_DK cp -p da_DK/da_DK.* %{buildroot}%{_datadir}/%{dict_dirname} # de cp -p de/de_*.* %{buildroot}%{_datadir}/%{dict_dirname} # el_GR cp -p el_GR/el_GR.* %{buildroot}%{_datadir}/%{dict_dirname} #eo cp -p eo/eo.* %{buildroot}%{_datadir}/%{dict_dirname} #es cp -p es/es_*.* %{buildroot}%{_datadir}/%{dict_dirname} # et_EE cp -p et_EE/et_EE.* %{buildroot}%{_datadir}/%{dict_dirname} # fa_IR cp -p fa_IR/fa-IR.* %{buildroot}%{_datadir}/%{dict_dirname} # fr_FR cp -p fr_FR/fr.* %{buildroot}%{_datadir}/%{dict_dirname} # gd_GB cp -p gd_GB/gd_GB.* %{buildroot}%{_datadir}/%{dict_dirname} # gl cp -p gl/gl_ES.* %{buildroot}%{_datadir}/%{dict_dirname} # gug cp -p gug/gug.* %{buildroot}%{_datadir}/%{dict_dirname} # gu_IN cp -p gu_IN/gu_IN.* %{buildroot}%{_datadir}/%{dict_dirname} %files -n hunspell-af %doc af_ZA/README_af_ZA.txt %{_datadir}/%{dict_dirname}/af_* %files -n hunspell-an %doc an_ES/LICENSES-en.txt %{_datadir}/%{dict_dirname}/an_ES* %files -n hunspell-ar %doc ar/*.txt %{_datadir}/%{dict_dirname}/ar.* %files -n hunspell-as %doc as_IN/README_as_IN.txt %{_datadir}/%{dict_dirname}/as_IN.* %files -n hunspell-be %doc be_BY/README_be_BY.txt %{_datadir}/%{dict_dirname}/be_BY.* %files -n hunspell-bg %license bg_BG/COPYING %{_datadir}/%{dict_dirname}/bg_BG* %files -n hunspell-bo %doc bo/*.md %{_datadir}/%{dict_dirname}/bo.* %files -n hunspell-br %doc br_FR/LICENSES-en.txt %{_datadir}/%{dict_dirname}/br_FR.* %files -n hunspell-bs %doc bs_BA/README.txt %{_datadir}/%{dict_dirname}/bs_BA.* %files -n hunspell-ca %doc ca/LICENSES-en.txt %{_datadir}/%{dict_dirname}/ca.* %files -n hunspell-ckb %doc ckb/LICENSES-en.txt %{_datadir}/%{dict_dirname}/ckb.* %files -n hunspell-cs %doc cs_CZ/README_en.txt %{_datadir}/%{dict_dirname}/cs_CZ.* %files -n hunspell-da %doc da_DK/README_da_DK.txt %{_datadir}/%{dict_dirname}/da_DK.* %files -n hunspell-de %doc %{_datadir}/%{dict_dirname}/de_*.* %files -n hunspell-el %doc el_GR/README_el_GR.txt %{_datadir}/%{dict_dirname}/el_GR.* %files -n hunspell-eo %license eo/license-en.txt %{_datadir}/%{dict_dirname}/eo.* %files -n hunspell-es %doc es/README_hunspell_es.txt %{_datadir}/%{dict_dirname}/es_*.* %files -n hunspell-et %doc et_EE/README_et_EE.txt %{_datadir}/%{dict_dirname}/et_EE.* %files -n hunspell-fa %doc fa_IR/README_fa_IR.txt %{_datadir}/%{dict_dirname}/fa-IR.* %files -n hunspell-fr %doc fr_FR/README_fr.txt %{_datadir}/%{dict_dirname}/fr.* %files -n hunspell-gd %doc gd_GB/LICENSES-en.txt gd_GB/README_gd_GB.txt %{_datadir}/%{dict_dirname}/gd_GB.* %files -n hunspell-gl %doc gl/README %{_datadir}/%{dict_dirname}/gl_ES.* %files -n hunspell-gug %doc gug/description/desc_en_US.txt %{_datadir}/%{dict_dirname}/gug.* %files -n hunspell-gu %doc gu_IN/README_gu_IN.txt %{_datadir}/%{dict_dirname}/gu_IN.* %changelog * Fri Apr 03 2026 Parag Nemade - 26.2.2.1-1 - Initial version