From 479031a0015ac1943704885f1cc5521780563ef9 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Mar 22 2022 04:59:58 +0000 Subject: Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- diff --git a/hunspell-be.spec b/hunspell-be.spec index 49cc131..cc397bd 100644 --- a/hunspell-be.spec +++ b/hunspell-be.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-be Summary: Belarusian hunspell dictionaries Version: 1.1 -Release: 23%{?dist} +Release: 24%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/2412/1/dict-be-official.oxt URL: http://extensions.services.openoffice.org/project/dict-be-official License: GPL+ and LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-be) %description @@ -29,21 +35,25 @@ sed -i -e "s/microsoft-cp1251/CP1251/g" be-official.aff hyph_be_BY.dic tail -n +3 hyph_be_BY.dic| head -n 3 > README_hyph_be_BY %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p be-official.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/be_BY.aff -cp -p be-official.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/be_BY.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p be-official.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/be_BY.aff +cp -p be-official.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/be_BY.dic mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p hyph_be_BY.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_be_BY.dic %files -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %files -n hyphen-be %doc README_hyph_be_BY %{_datadir}/hyphen/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.1-24 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.1-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild