From 1f63d2c8da23e6e755115153a8225a8f0f3892c2 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 12:42:57 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ko.spec | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/hunspell-ko.spec b/hunspell-ko.spec index 99b7efa..f7d6f09 100644 --- a/hunspell-ko.spec +++ b/hunspell-ko.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ko Summary: Korean hunspell dictionaries Version: 0.7.0 -Release: 12%{?dist} +Release: 13%{?dist} Source: https://github.com/spellcheck-ko/hunspell-dict-ko/archive/%{version}.tar.gz URL: https://github.com/spellcheck-ko/hunspell-dict-ko License: MPLv1.1 or GPLv2 or LGPLv2 BuildArch: noarch BuildRequires: python3 -BuildRequires: hunspell +BuildRequires: hunspell-filesystem BuildRequires: make -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ko) %description @@ -22,9 +28,9 @@ Korean hunspell dictionaries. make %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.aff -cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.aff +cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.dic %check make test @@ -32,9 +38,13 @@ make test %files %doc README.md %license LICENSE LICENSE.GPL LICENSE.LGPL LICENSE.MPL -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.7.0-13 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.7.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild