From 959476de83688324d36615d14231cdd1a61ab3a5 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Mar 22 2022 06:11:15 +0000 Subject: Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- diff --git a/hunspell-ga.spec b/hunspell-ga.spec index c2e314c..3afebc7 100644 --- a/hunspell-ga.spec +++ b/hunspell-ga.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ga Summary: Irish hunspell dictionaries Version: 5.0 -Release: 10%{?dist} +Release: 11%{?dist} Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz Source1: myspell-header Source2: hunspell-header @@ -9,10 +15,10 @@ URL: http://borel.slu.edu/ispell/index.html License: GPLv2+ BuildArch: noarch BuildRequires: make -BuildRequires: hunspell-devel +BuildRequires: hunspell-filesystem-devel Patch1: ispell-gaeilge-5.0-buildhunspell.patch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ga) %description @@ -29,16 +35,20 @@ iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1 ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README ChangeLog %license COPYING -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 5.0-11 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 5.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild