From 183831e55fc2936123b679550a38e1ae56847803 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:50:57 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-tet.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-tet.spec b/hunspell-tet.spec index 14a018c..4058e03 100644 --- a/hunspell-tet.spec +++ b/hunspell-tet.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-tet Summary: Tetum hunspell dictionaries %global upstreamid 20050108 Version: 0.%{upstreamid} -Release: 26%{?dist} +Release: 27%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/tet_ID.zip URL: http://borel.slu.edu/crubadan/apps.html License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-tet) %description @@ -30,9 +36,9 @@ for i in README_tet_ID.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p tet_ID.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p tet_ID.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ +pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ tet_ID_aliases="tet_TL" for lang in $tet_ID_aliases; do ln -s tet_ID.aff $lang.aff @@ -43,9 +49,13 @@ popd %files %doc README_tet_ID.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20050108-27 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20050108-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild