%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} 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 %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} %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.* %changelog * Sat Mar 07 2026 Parag Nemade - 26.2.2.1-1 - Initial version