From 19f046b60fc2748bf477546b15a685c8c7effcc3 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:43:30 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-cop.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-cop.spec b/hunspell-cop.spec index 743e3cb..5ed8d19 100644 --- a/hunspell-cop.spec +++ b/hunspell-cop.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-cop Summary: Coptic hunspell dictionaries Version: 0.3 -Release: 21%{?dist} +Release: 22%{?dist} Source: http://www.moheb.de/download/dict-cop_EG_v03.oxt URL: http://www.moheb.de/coptic_oo.html License: GPLv3+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-cop) %description @@ -24,16 +30,20 @@ for i in README.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p cop_EG-Bohairic/cop_EG.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p cop_EG-Bohairic/cop_EG.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README.txt %license license-gpl.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.3-22 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.3-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild