From 5140eec652d0c91e25410e53735cc9f3da28aa70 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:38:13 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-br.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-br.spec b/hunspell-br.spec index 91ee0d3..fb6f19a 100644 --- a/hunspell-br.spec +++ b/hunspell-br.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-br Summary: Breton hunspell dictionaries Epoch: 1 Version: 0.15 -Release: 9%{?dist} +Release: 10%{?dist} URL: http://www.drouizig.org/ Source: https://downloads.sourceforge.net/project/aoo-extensions/2207/7/dict-br-0.15.oxt License: LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-br) %description @@ -21,16 +27,20 @@ Breton hunspell dictionaries. chmod -x dictionaries/* %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/br_FR.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/br_FR.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc package-description.txt %license LICENSES-en.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:0.15-10 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:0.15-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild