From 230b9efefef65d5d1736ebb2031b3d545f6123b0 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:58:44 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-tk.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-tk.spec b/hunspell-tk.spec index d4421f4..09a5ba4 100644 --- a/hunspell-tk.spec +++ b/hunspell-tk.spec @@ -1,8 +1,14 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-tk Summary: Turkmen hunspell dictionaries Version: 0.02 Epoch: 1 -Release: 20%{?dist} +Release: 21%{?dist} # Following link is dead now # Do not report bugs to fix it Source: http://releases.mozilla.org/pub/mozilla.org/addons/204314/turkmen_spell_checker-%{version}-tb+fx+sm.xpi @@ -10,7 +16,7 @@ URL: http://borel.slu.edu/crubadan/apps.html License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-tk) %description @@ -22,16 +28,20 @@ Turkmen hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/tk-TM.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/tk.aff -cp -p dictionaries/tk-TM.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/tk.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/tk-TM.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tk.aff +cp -p dictionaries/tk-TM.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tk.dic %files %doc dictionaries/README_tk_TM.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:0.02-21 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:0.02-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild