diff --git a/openoffice-lv.spec b/openoffice-lv.spec index aa62d91..438065a 100644 --- a/openoffice-lv.spec +++ b/openoffice-lv.spec @@ -1,7 +1,13 @@ +%if 0%{?rhel} && 0%{?rhel} > 9 +%bcond_with mythes +%else +%bcond_without mythes +%endif + Name: openoffice-lv Summary: Latvian linguistic dictionaries Version: 1.4.0 -Release: 7%{?dist} +Release: 8%{?dist} Source: http://dict.dv.lv/download/lv_LV-%{version}.oxt URL: http://dict.dv.lv/ License: LGPL-2.1-or-later @@ -24,12 +30,14 @@ Requires: hyphen %description -n hyphen-lv Latvian hyphenation rules. +%if %{with mythes} %package -n mythes-lv Summary: Latvian thesaurus Requires: mythes %description -n mythes-lv Latvian thesaurus. +%endif %prep %autosetup -c @@ -49,10 +57,13 @@ done %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hunspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p lv_LV.dic lv_LV.aff $RPM_BUILD_ROOT/%{_datadir}/hunspell cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +%if %{with mythes} +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p th_lv_LV_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes +%endif %files -n hunspell-lv %doc README_lv_LV.txt @@ -64,12 +75,17 @@ cp -p th_lv_LV_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes %license license.txt %{_datadir}/hyphen/* +%if %{with mythes} %files -n mythes-lv %doc package-description.txt %license license.txt %{_datadir}/mythes/* +%endif %changelog +* Mon Apr 15 2024 Parag Nemade - 1.4.0-8 +- Resolves: RHEL-32831 - The mythes package is not present in RHEL10 + * Thu Jan 25 2024 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild