From f39088257e75af710a11ec27cce9d8dddaec5658 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 14:11:57 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-uk.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-uk.spec b/hunspell-uk.spec index b38b634..7bcd621 100644 --- a/hunspell-uk.spec +++ b/hunspell-uk.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-uk Summary: Ukrainian hunspell dictionaries Version: 1.8.0 -Release: 9%{?dist} +Release: 10%{?dist} Source: https://downloads.sourceforge.net/project/ispell-uk/spell-uk/%{version}/dict-uk_UA-%{version}.oxt URL: http://sourceforge.net/projects/ispell-uk License: GPLv2+ or LGPLv2+ or MPLv1.1 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-uk) %description @@ -19,16 +25,20 @@ Ukrainian hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc uk_UA/README_uk_UA.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.8.0-10 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.8.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild