From 7136c4462b8782b8622a81769bbe1735c0790c7e Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 11:53:17 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-gu.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-gu.spec b/hunspell-gu.spec index 95badf5..57a1005 100644 --- a/hunspell-gu.spec +++ b/hunspell-gu.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-gu Summary: Gujarati hunspell dictionaries Version: 1.0.0 -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 1 Source: http://anishpatil.fedorapeople.org/gu_in.%{version}.tar.gz URL: https://gitorious.org/hunspell_dictionaries/hunspell_dictionaries.git License: GPL+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-gu) %description @@ -21,14 +27,18 @@ Gujarati hunspell dictionaries. %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p gu_IN/gu_IN.dic gu_IN/gu_IN.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p gu_IN/gu_IN.dic gu_IN/gu_IN.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc gu_IN/README_gu_IN.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:1.0.0-18 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:1.0.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild