From 61df0e21a9f566140b51b678de9634f2e7fecd90 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 11:28:40 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-fo.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-fo.spec b/hunspell-fo.spec index 377ae19..5b0c512 100644 --- a/hunspell-fo.spec +++ b/hunspell-fo.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-fo Summary: Faroese hunspell dictionaries Version: 0.4.2 -Release: 16%{?dist} +Release: 17%{?dist} Source: http://fo.speling.org/filer/myspell-fo-%{version}.tar.bz2 URL: http://fo.speling.org/ License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-fo) %description @@ -30,15 +36,19 @@ done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README Copyright contributors COPYING -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.4.2-17 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.4.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild