From ac9da2207105a23e07bbd872d577bb7a6575ff9e Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Mar 22 2022 08:26:13 +0000 Subject: Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- diff --git a/hunspell-ti.spec b/hunspell-ti.spec index 2b59c84..e3cb551 100644 --- a/hunspell-ti.spec +++ b/hunspell-ti.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ti Summary: Tigrigna hunspell dictionaries %global upstreamid 20090911 Version: 0.%{upstreamid} -Release: 21%{?dist} +Release: 22%{?dist} Source: http://www.cs.ru.nl/~biniam/geez/dict/ti_ER.zip URL: http://www.cs.ru.nl/~biniam/geez/index.php License: GPL+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ti) %description @@ -23,9 +29,9 @@ touch -r README.txt README.txt.new mv -f README.txt.new README.txt %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p ti_ER.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p ti_ER.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ +pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ ti_ER_aliases="ti_ET" for lang in $ti_ER_aliases; do ln -s ti_ER.aff $lang.aff @@ -35,9 +41,13 @@ done %files %doc README.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20090911-22 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20090911-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild