From 556fc1ced84245f14a3d8866697b10893f3c2230 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:50:56 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-cy.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-cy.spec b/hunspell-cy.spec index 254d965..97fc0dd 100644 --- a/hunspell-cy.spec +++ b/hunspell-cy.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-cy Summary: Welsh hunspell dictionaries %global upstreamid 20040425 Version: 0.%{upstreamid} -Release: 26%{?dist} +Release: 27%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/cy_GB.zip URL: http://www.e-gymraeg.co.uk/ License: GPL+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-cy) %description @@ -31,15 +37,19 @@ for i in README_cy_GB.txt; do 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_cy_GB.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20040425-27 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20040425-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild