From bc529edd1b86c20d5b3a7137e63539006d5b1f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 23 Jun 2022 08:49:00 +0100 Subject: [PATCH] make this conditional on the fedora version --- libreoffice.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libreoffice.spec b/libreoffice.spec index 8d5027d..308611c 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -839,9 +839,18 @@ Rules for auto-correcting common %{langname} typing errors. \ %langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -g pa_IN -X %langpack -l pl -n Polish -F -H -Y -M -A -T -X +%if 0%{?fedora} > 36 || 0%{?rhel} > 9 + %define langpack_lang Brazilian Portuguese %langpack -l pt-BR -n %{langpack_lang} -f pt_BR -h pt_BR -y pt_BR -m pt -a pt -p pt_BR -T -X -g pt_BR +else + +%define langpack_lang Brazilian Portuguese +%langpack -l pt-BR -n %{langpack_lang} -f pt_BR -h pt -y pt -m pt -a pt -p pt_BR -T -X -g pt_BR + +%endif + %langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -x pt %langpack -l ro -n Romanian -A -F -H -Y -M -T -X %langpack -l ru -n Russian -F -H -Y -M -A -T -X