From df5b604259ddea64563c5efb65833b212ed2d1c1 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:27:01 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ber.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-ber.spec b/hunspell-ber.spec index 4caedf8..9d980eb 100644 --- a/hunspell-ber.spec +++ b/hunspell-ber.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ber Summary: Amazigh hunspell dictionaries %global upstreamid 20080210 Version: 0.%{upstreamid} -Release: 23%{?dist} +Release: 24%{?dist} Source: http://ayaspell.sourceforge.net/data/hunspell-am_test.tar.gz URL: http://ayaspell.sourceforge.net/am.html License: GPL+ or LGPLv2+ or MPLv1.1 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ber) %description @@ -20,16 +26,20 @@ Amazigh hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p tifinagh.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ber_MA.dic -cp -p tifinagh.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ber_MA.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p tifinagh.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ber_MA.dic +cp -p tifinagh.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ber_MA.aff %files %doc README -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20080210-24 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20080210-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild