From 54d1622ea94d700830279e996165a131e15b9643 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:35:48 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-bn.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-bn.spec b/hunspell-bn.spec index da5237c..29fefdf 100644 --- a/hunspell-bn.spec +++ b/hunspell-bn.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-bn Summary: Bengali hunspell dictionaries Version: 1.0.0 -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 1 Source: http://anishpatil.fedorapeople.org/bn_in.%{version}.tar.gz URL: https://gitorious.org/hunspell_dictionaries/hunspell_dictionaries.git License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-bn) %description @@ -22,16 +28,20 @@ chmod 644 bn_IN/* %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p bn_IN/*.dic bn_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p bn_IN/*.dic bn_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc bn_IN/README %license bn_IN/COPYING bn_IN/Copyright -%{_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