From eaf6d7199a3609320e9decd6cd4a4679753d443e Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:53:56 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-da.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-da.spec b/hunspell-da.spec index 9f5c572..135024f 100644 --- a/hunspell-da.spec +++ b/hunspell-da.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-da Summary: Danish hunspell dictionaries Version: 1.7.42 -Release: 17%{?dist} +Release: 18%{?dist} Source: http://da.speling.org/filer/myspell-da-%{version}.tar.bz2 URL: http://da.speling.org/ License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-da) %description @@ -19,15 +25,19 @@ Danish hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README Copyright contributors COPYING -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.7.42-18 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.7.42-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild