From 3cf6d5bc9ddd07f94bf18227aa36368ba3292069 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Mon, 15 Apr 2024 18:08:56 +0530 Subject: [PATCH] Resolves: RHEL-32832 - The mythes package is not present in RHEL10 --- hunspell-no.spec | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/hunspell-no.spec b/hunspell-no.spec index c7a25ed..8310206 100644 --- a/hunspell-no.spec +++ b/hunspell-no.spec @@ -1,3 +1,9 @@ +%if 0%{?rhel} && 0%{?rhel} > 9 +%bcond_with mythes +%else +%bcond_without mythes +%endif + %if 0%{?fedora} > 35 %global dict_dirname hunspell %else @@ -7,7 +13,7 @@ Name: hunspell-no Summary: Norwegian hunspell dictionaries Epoch: 1 Version: 2.0.10 -Release: 22%{?dist} +Release: 23%{?dist} Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/ @@ -51,6 +57,7 @@ Supplements: (hyphen and langpacks-nn) %description -n hyphen-nn Nynorsk hyphenation rules +%if %{with mythes} %package -n mythes-nb Summary: Bokmaal thesaurus Requires: mythes @@ -66,6 +73,7 @@ Supplements: (mythes and langpacks-nn) %description -n mythes-nn Nynorsk thesaurus. +%endif %prep %setup -q -c @@ -75,7 +83,7 @@ unzip -q hyph_nb_NO.zip unzip -q hyph_nn_NO.zip unzip -q th_nb_NO_v2.zip unzip -q th_nn_NO_v2.zip -%patch1 -p0 -b .rhbz959989 +%patch -P 1 -b .rhbz959989 %build for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \ @@ -95,9 +103,10 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen +%if %{with mythes} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes - +%endif %files -n hunspell-nb %doc README_nb_NO.txt @@ -115,6 +124,7 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD %doc README_hyph_nn_NO.txt %{_datadir}/hyphen/hyph_nn_NO.* +%if %{with mythes} %files -n mythes-nb %doc README_th_nb_NO_v2.txt %{_datadir}/mythes/th_nb_NO_v2.* @@ -122,8 +132,11 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD %files -n mythes-nn %doc README_th_nb_NO_v2.txt %{_datadir}/mythes/th_nn_NO_v2.* - +%endif %changelog +* Mon Apr 15 2024 Parag Nemade - 1:2.0.10-23 +- Resolves: RHEL-32832 - The mythes package is not present in RHEL10 + * Wed Jan 24 2024 Fedora Release Engineering - 1:2.0.10-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild